SE/FS: Put platform pointers in fewer objects.
Not all objects need a platform pointer, and having one creates a dependence on their being a platform object. This change removes the platform pointer to from the base device object and moves it into subclasses that actually need it.
This commit is contained in:
@@ -83,7 +83,7 @@ PciDev::PciConfigPort::getDeviceAddressRanges(AddrRangeList &resp,
|
||||
|
||||
|
||||
PciDev::PciDev(const Params *p)
|
||||
: DmaDevice(p), plat(p->platform), pioDelay(p->pio_latency),
|
||||
: DmaDevice(p), platform(p->platform), pioDelay(p->pio_latency),
|
||||
configDelay(p->config_latency), configPort(NULL)
|
||||
{
|
||||
config.vendor = htole(p->VendorID);
|
||||
@@ -143,7 +143,7 @@ PciDev::PciDev(const Params *p)
|
||||
}
|
||||
}
|
||||
|
||||
plat->registerPciDevice(p->pci_bus, p->pci_dev, p->pci_func,
|
||||
platform->registerPciDevice(p->pci_bus, p->pci_dev, p->pci_func,
|
||||
letoh(config.interruptLine));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user