summaryrefslogtreecommitdiff
path: root/python/m5/objects/Ide.py
blob: 6855ec65343b1800307bc5b88daeed2a5970c85d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from m5 import *
from Pci import PciDevice

class IdeID(Enum): vals = ['master', 'slave']

class IdeDisk(SimObject):
    type = 'IdeDisk'
    delay = Param.Latency('1us', "Fixed disk delay in microseconds")
    driveID = Param.IdeID('master', "Drive ID")
    image = Param.DiskImage("Disk image")
    physmem = Param.PhysicalMemory(Parent.any, "Physical memory")

class IdeController(PciDevice):
    type = 'IdeController'
    disks = VectorParam.IdeDisk("IDE disks attached to this controller")