ruby: network: garnet: remove functions for computing power
[gem5.git] / src / dev / pciconfigall.hh
index 07eaf811254ae2dde6b62931be9b338cec0a0e79..c9a63d2c5d480d31348bbbc4ee6fc8c76e268d55 100644 (file)
 #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
      */
-    virtual Tick read(Packet *pkt);
+    virtual Tick read(PacketPtr pkt);
 
     /**
      * 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(Packet *pkt);
-
-    void addressRanges(AddrRangeList &range_list);
-
-  private:
-    Addr pioAddr;
-
+    virtual Tick write(PacketPtr pkt);
 };
 
 #endif // __PCICONFIGALL_HH__