#ifndef __PCICONFIGALL_HH__
#define __PCICONFIGALL_HH__
-#include "dev/pcireg.h"
-#include "base/range.hh"
#include "dev/io_device.hh"
-
+#include "dev/pcireg.h"
+#include "params/PciConfigAll.hh"
/**
* PCI Config Space
* All of PCI config space needs to return -1 on Tsunami, except
* the devices that exist. This device maps the entire bus config
- * space and passes the requests on to TsunamiPCIDev devices as
+ * space and passes the requests on to TsunamiPCIDevice devices as
* appropriate.
*/
-class PciConfigAll : public PioDevice
+class PciConfigAll : public BasicPioDevice
{
public:
- struct Params : public PioDevice::Params
- {
- Tick pio_delay;
- Addr size;
- int bus;
- };
+ typedef PciConfigAllParams Params;
const Params *params() const { return (const Params *)_params; }
/**
* Constructor for PCIConfigAll
* @param p parameters structure
*/
- PciConfigAll(Params *p);
+ PciConfigAll(const Params *p);
/**
* Read something in PCI config space. If the device does not exist
- * -1 is returned, if the device does exist its PciDev::ReadConfig (or the
- * virtual function that overrides) it is called.
+ * -1 is returned, if the device does exist its PciDevice::ReadConfig
+ * (or the virtual function that overrides) it is called.
* @param pkt Contains information about the read operation
* @return Amount of time to do the read
*/
/**
* Write to PCI config spcae. If the device does not exit the simulator
- * panics. If it does it is passed on the PciDev::WriteConfig (or the virtual
- * function that overrides it).
+ * panics. If it does it is passed on the PciDevice::WriteConfig (or
+ * the virtual function that overrides it).
* @param pkt Contains information about the write operation
* @return Amount of time to do the read
*/
virtual Tick write(PacketPtr pkt);
-
- void addressRanges(AddrRangeList &range_list);
-
- private:
- Addr pioAddr;
-
};
#endif // __PCICONFIGALL_HH__