From: Nathan Binkert Date: Fri, 20 Feb 2004 20:23:27 +0000 (-0500) Subject: make the dma interface useable. X-Git-Tag: m5_1.0_beta2~141 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec06c63cc7a63111e9d21936a302901c552ad36b;hp=695d51e5137f43052dc54e211eb1ab239100008d;p=gem5.git 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 --- 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);