From ec06c63cc7a63111e9d21936a302901c552ad36b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 20 Feb 2004 15:23:27 -0500 Subject: [PATCH] make the dma interface useable. make it so that pio devices must respond with some delay. dev/io_device.cc: don't forget to include dma_interface.hh so we could use it. dev/io_device.hh: the generic BusInterface isn't enough for doing DMA we need the actual DMAInterface --HG-- extra : convert_revision : 70298d33c8520a3f4ad11aa600825a8cec7e44bf --- dev/io_device.cc | 1 + dev/io_device.hh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/io_device.cc b/dev/io_device.cc index 65a18aec6..4f53ba48d 100644 --- a/dev/io_device.cc +++ b/dev/io_device.cc @@ -28,6 +28,7 @@ #include "dev/io_device.hh" #include "mem/bus/base_interface.hh" +#include "mem/bus/dma_interface.hh" PioDevice::PioDevice(const std::string &name) : FunctionalMemory(name), pioInterface(NULL) diff --git a/dev/io_device.hh b/dev/io_device.hh index 39e6fa4aa..9300d87e7 100644 --- a/dev/io_device.hh +++ b/dev/io_device.hh @@ -34,6 +34,7 @@ class BaseInterface; class Bus; class HierParams; +template class DMAInterface; class PioDevice : public FunctionalMemory { @@ -48,7 +49,7 @@ class PioDevice : public FunctionalMemory class DmaDevice : public PioDevice { protected: - BaseInterface *dmaInterface; + DMAInterface *dmaInterface; public: DmaDevice(const std::string &name); -- 2.30.2