dev: Add a VirtIO console device model
[gem5.git] / src / dev / pciconfigall.hh
index fbd0223406285de3c2728386e3cecc058b54f484..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:
     typedef PciConfigAllParams Params;
@@ -64,8 +62,8 @@ class PciConfigAll : public PioDevice
 
     /**
      * 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
      */
@@ -73,19 +71,13 @@ class PciConfigAll : public PioDevice
 
     /**
      * 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__