diff options
author | Andrew Schultz <alschult@umich.edu> | 2004-03-22 16:50:09 -0500 |
---|---|---|
committer | Andrew Schultz <alschult@umich.edu> | 2004-03-22 16:50:09 -0500 |
commit | 8baccdc6d3239376e547a391b2adb5c6f1d442ad (patch) | |
tree | 214fa004fcef01d0997c49360a8ad7d2bec3073f /dev/pcidev.hh | |
parent | 1eb0c9626a575dfc9f2e32243610e76614c331d2 (diff) | |
download | gem5-8baccdc6d3239376e547a391b2adb5c6f1d442ad.tar.xz |
Changed to inherit from DmaDevice to avoid multiple inheritance (now
assumes that all PCI devices are DmaDevices, and if not, they can just
ignore the DMA stuff)
--HG--
extra : convert_revision : aa58b658370696674ca4c32b265bc0400e5dda5a
Diffstat (limited to 'dev/pcidev.hh')
-rw-r--r-- | dev/pcidev.hh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/dev/pcidev.hh b/dev/pcidev.hh index 6496791b2..59c582a6c 100644 --- a/dev/pcidev.hh +++ b/dev/pcidev.hh @@ -27,15 +27,14 @@ */ /* @file - * PCI configspace devices + * Interface for devices using PCI configuration */ #ifndef __PCI_DEV_HH__ #define __PCI_DEV_HH__ #include "dev/pcireg.h" -#include "sim/sim_object.hh" -#include "mem/functional_mem/functional_memory.hh" +#include "dev/io_device.hh" class PciConfigAll; class MemoryController; @@ -63,15 +62,15 @@ class PciConfigData : public SimObject * register with it. This object registers with the PCIConfig space * object. */ -class PciDev : public FunctionalMemory +class PciDev : public DmaDevice { protected: MemoryController *MMU; PciConfigAll *ConfigSpace; PciConfigData *ConfigData; - uint32_t Bus; - uint32_t Device; - uint32_t Function; + uint32_t BusNum; + uint32_t DeviceNum; + uint32_t FunctionNum; PCIConfig config; uint32_t BARSize[6]; |