Only issue responses if we aren;t already blocked
[gem5.git] / src / dev / ide_disk.hh
index fb0614d4d343cc182def273f42278f4aed721e0e..2ed860013085e991ea40a2c4d9d8678d552b6ba6 100644 (file)
@@ -43,6 +43,8 @@
 #include "dev/io_device.hh"
 #include "sim/eventq.hh"
 
+class ChunkGenerator;
+
 #define DMA_BACKOFF_PERIOD 200
 
 #define MAX_DMA_SIZE    (131072)  // 128K
@@ -240,6 +242,10 @@ class IdeDisk : public SimObject
     Stats::Scalar<> dmaWriteFullPages;
     Stats::Scalar<> dmaWriteBytes;
     Stats::Scalar<> dmaWriteTxs;
+    Stats::Formula rdBandwidth;
+    Stats::Formula wrBandwidth;
+    Stats::Formula totBandwidth;
+    Stats::Formula totBytes;
 
   public:
     /**