summaryrefslogtreecommitdiff
path: root/dev/io_device.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-02-20 15:23:27 -0500
committerNathan Binkert <binkertn@umich.edu>2004-02-20 15:23:27 -0500
commitec06c63cc7a63111e9d21936a302901c552ad36b (patch)
tree7a24cbd9835c45eaf34c7fbaf67b0b57644941a6 /dev/io_device.hh
parent695d51e5137f43052dc54e211eb1ab239100008d (diff)
downloadgem5-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/io_device.hh')
-rw-r--r--dev/io_device.hh3
1 files changed, 2 insertions, 1 deletions
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);