summaryrefslogtreecommitdiff
path: root/dev/io_device.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-04-06 18:04:57 -0400
committerAli Saidi <saidi@eecs.umich.edu>2006-04-06 18:04:57 -0400
commit62ebe251dac998202403bea45ba69345dc5bf42d (patch)
tree779632e0062c10fc0b6c825cf827a69fca5ed6b0 /dev/io_device.hh
parent832311a17094501a6883100ac9dba8c781211782 (diff)
parent61b2bd9d28fa288628d8ef3eb3fd4ab3cef9902f (diff)
downloadgem5-62ebe251dac998202403bea45ba69345dc5bf42d.tar.xz
Merge zizzer:/bk/newmem
into zeep.eecs.umich.edu:/z/saidi/work/m5.newmem --HG-- extra : convert_revision : a0bfc7495ba0f2916214d6712f67c5c239a210a0
Diffstat (limited to 'dev/io_device.hh')
-rw-r--r--dev/io_device.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/dev/io_device.hh b/dev/io_device.hh
index a81dae072..a43527b37 100644
--- a/dev/io_device.hh
+++ b/dev/io_device.hh
@@ -192,11 +192,17 @@ class PioDevice : public SimObject
{ return pkt.cmd == Read ? this->read(pkt) : this->write(pkt); }
/** Pure virtual function that the device must implement. Called when a read
- * command is recieved by the port. */
+ * command is recieved by the port.
+ * @param pkt Packet describing this request
+ * @return number of ticks it took to complete
+ */
virtual Tick read(Packet &pkt) = 0;
/** Pure virtual function that the device must implement. Called when a
- * write command is recieved by the port. */
+ * write command is recieved by the port.
+ * @param pkt Packet describing this request
+ * @return number of ticks it took to complete
+ */
virtual Tick write(Packet &pkt) = 0;
public: