Only issue responses if we aren;t already blocked
[gem5.git] / src / dev / ide_disk.hh
index 5379e5e73ffbfab9f1aa0da6f2b0264cab980692..2ed860013085e991ea40a2c4d9d8678d552b6ba6 100644 (file)
@@ -24,6 +24,8 @@
  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Authors: Andrew Schultz
  */
 
 /** @file
@@ -41,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
@@ -238,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:
     /**