summaryrefslogtreecommitdiff
path: root/python/m5/objects/Ide.mpy
diff options
context:
space:
mode:
Diffstat (limited to 'python/m5/objects/Ide.mpy')
-rw-r--r--python/m5/objects/Ide.mpy14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/m5/objects/Ide.mpy b/python/m5/objects/Ide.mpy
new file mode 100644
index 000000000..786109efa
--- /dev/null
+++ b/python/m5/objects/Ide.mpy
@@ -0,0 +1,14 @@
+from Pci import PciDevice
+
+class IdeID(Enum): vals = ['master', 'slave']
+
+simobj IdeDisk(SimObject):
+ type = 'IdeDisk'
+ delay = Param.Tick(1, "Fixed disk delay in microseconds")
+ driveID = Param.IdeID('master', "Drive ID")
+ image = Param.DiskImage("Disk image")
+ physmem = Param.PhysicalMemory(parent.any, "Physical memory")
+
+simobj IdeController(PciDevice):
+ type = 'IdeController'
+ disks = VectorParam.IdeDisk("IDE disks attached to this controller")