From d3683440923051607ae96974fb2bdc5783993bf4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 4 Oct 2011 02:26:03 -0700 Subject: 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. --- src/dev/Pci.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dev/Pci.py') diff --git a/src/dev/Pci.py b/src/dev/Pci.py index bd67d82fb..2f9f93a59 100644 --- a/src/dev/Pci.py +++ b/src/dev/Pci.py @@ -33,6 +33,7 @@ from Device import BasicPioDevice, DmaDevice, PioDevice class PciConfigAll(PioDevice): type = 'PciConfigAll' + platform = Param.Platform(Parent.any, "Platform this device is part of.") pio_latency = Param.Tick(1, "Programmed IO latency in simticks") bus = Param.UInt8(0x00, "PCI bus to act as config space for") size = Param.MemorySize32('16MB', "Size of config space") @@ -41,6 +42,7 @@ class PciConfigAll(PioDevice): class PciDevice(DmaDevice): type = 'PciDevice' abstract = True + platform = Param.Platform(Parent.any, "Platform this device is part of.") config = Port(Self.pio.peerObj.port, "PCI configuration space port") pci_bus = Param.Int("PCI bus") pci_dev = Param.Int("PCI device number") -- cgit v1.2.3