summaryrefslogtreecommitdiff
path: root/objects/Ide.mpy
blob: 816b33c8c76b4775857cf6f0e13a46ce1d9f24ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from Pci import PciDevice

IdeID = Enum('master', 'slave')

simobj IdeDisk(SimObject):
    delay = Param.Tick(1, "Fixed disk delay in microseconds")
    driveID = Param.IdeID('master', "Drive ID")
    image = Param.DiskImage("Disk image")
    physmem = Param.PhysicalMemory(Super, "Physical memory")

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