X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fio_device.hh;h=bcfd062b964c98911d662c7d57352554f04f7e44;hb=1166d4f0bfe67a9dc178be3454b4f0eac38663ad;hp=e6014e73d5db947ae79ec7788eac39add73d2c3b;hpb=2f316082e44259feb0bbd8e933d736e37244f3b7;p=gem5.git diff --git a/dev/io_device.hh b/dev/io_device.hh index e6014e73d..bcfd062b9 100644 --- a/dev/io_device.hh +++ b/dev/io_device.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004 The Regents of The University of Michigan + * Copyright (c) 2004-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -26,23 +26,26 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef __IO_DEVICE_HH__ -#define __IO_DEVICE_HH__ +#ifndef __DEV_IO_DEVICE_HH__ +#define __DEV_IO_DEVICE_HH__ -#include "mem/functional_mem/functional_memory.hh" +#include "mem/functional/functional.hh" class BaseInterface; class Bus; class HierParams; -template class DMAInterface; +class Platform; +template class DMAInterface; class PioDevice : public FunctionalMemory { protected: + Platform *platform; BaseInterface *pioInterface; + Tick pioLatency; public: - PioDevice(const std::string &name); + PioDevice(const std::string &name, Platform *p); virtual ~PioDevice(); }; @@ -52,8 +55,8 @@ class DmaDevice : public PioDevice DMAInterface *dmaInterface; public: - DmaDevice(const std::string &name); + DmaDevice(const std::string &name, Platform *p); virtual ~DmaDevice(); }; -#endif // __IO_DEVICE_HH__ +#endif // __DEV_IO_DEVICE_HH__