summaryrefslogtreecommitdiff
path: root/python/m5/objects/Ide.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/m5/objects/Ide.py')
-rw-r--r--python/m5/objects/Ide.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/m5/objects/Ide.py b/python/m5/objects/Ide.py
new file mode 100644
index 000000000..6855ec653
--- /dev/null
+++ b/python/m5/objects/Ide.py
@@ -0,0 +1,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")