diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-02-20 15:23:27 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-02-20 15:23:27 -0500 |
commit | ec06c63cc7a63111e9d21936a302901c552ad36b (patch) | |
tree | 7a24cbd9835c45eaf34c7fbaf67b0b57644941a6 /dev | |
parent | 695d51e5137f43052dc54e211eb1ab239100008d (diff) | |
download | gem5-ec06c63cc7a63111e9d21936a302901c552ad36b.tar.xz |
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
Diffstat (limited to 'dev')
-rw-r--r-- | dev/io_device.cc | 1 | ||||
-rw-r--r-- | dev/io_device.hh | 3 |
2 files changed, 3 insertions, 1 deletions
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 Bus> class DMAInterface; class PioDevice : public FunctionalMemory { @@ -48,7 +49,7 @@ class PioDevice : public FunctionalMemory class DmaDevice : public PioDevice { protected: - BaseInterface *dmaInterface; + DMAInterface<Bus> *dmaInterface; public: DmaDevice(const std::string &name); |