ARM: Finish the timing translation when taking a fault.
[gem5.git] / src / dev / pciconfigall.hh
index 07eaf811254ae2dde6b62931be9b338cec0a0e79..fbd0223406285de3c2728386e3cecc058b54f484 100644 (file)
@@ -40,6 +40,7 @@
 #include "dev/pcireg.h"
 #include "base/range.hh"
 #include "dev/io_device.hh"
+#include "params/PciConfigAll.hh"
 
 
 /**
 class PciConfigAll : public PioDevice
 {
   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
@@ -73,7 +69,7 @@ class PciConfigAll : public PioDevice
      * @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
@@ -83,7 +79,7 @@ class PciConfigAll : public PioDevice
      * @return Amount of time to do the read
      */
 
-    virtual Tick write(Packet *pkt);
+    virtual Tick write(PacketPtr pkt);
 
     void addressRanges(AddrRangeList &range_list);