From e9a271e32c53076445ef70da8aec8201c82693ec Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Tue, 2 Sep 2003 03:36:25 +0000 Subject: - Major update of the dynamic device tree so it can handle * subtractive resources * merging with the static device tree * more device types than just pci - The piece to watch out for is the new enable_resources method that was needed in all of the drivers git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1096 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/ppc/lib/pci_ops.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/arch/ppc') diff --git a/src/arch/ppc/lib/pci_ops.c b/src/arch/ppc/lib/pci_ops.c index 69c9915ad6..eef6eef30c 100644 --- a/src/arch/ppc/lib/pci_ops.c +++ b/src/arch/ppc/lib/pci_ops.c @@ -65,34 +65,34 @@ static int pci_sanity_check(const struct pci_ops *o) return 0; } -uint8_t pci_read_config8(struct device *dev, unsigned where) +uint8_t pci_read_config8(device_t dev, unsigned where) { - return conf->read8(dev->bus->secondary, dev->devfn, where); + return conf->read8(dev->bus->secondary, dev->path.u.pci.devfn, where); } uint16_t pci_read_config16(struct device *dev, unsigned where) { - return conf->read16(dev->bus->secondary, dev->devfn, where); + return conf->read16(dev->bus->secondary, dev->path.u.pci.devfn, where); } uint32_t pci_read_config32(struct device *dev, unsigned where) { - return conf->read32(dev->bus->secondary, dev->devfn, where); + return conf->read32(dev->bus->secondary, dev->path.u.pci.devfn, where); } void pci_write_config8(struct device *dev, unsigned where, uint8_t val) { - conf->write8(dev->bus->secondary, dev->devfn, where, val); + conf->write8(dev->bus->secondary, dev->path.u.pci.devfn, where, val); } void pci_write_config16(struct device *dev, unsigned where, uint16_t val) { - conf->write16(dev->bus->secondary, dev->devfn, where, val); + conf->write16(dev->bus->secondary, dev->path.u.pci.devfn, where, val); } void pci_write_config32(struct device *dev, unsigned where, uint32_t val) { - conf->write32(dev->bus->secondary, dev->devfn, where, val); + conf->write32(dev->bus->secondary, dev->path.u.pci.devfn, where, val); } /** Set the method to be used for PCI -- cgit v1.2.3