aboutsummaryrefslogtreecommitdiff
path: root/src/arch/ppc/lib/pci_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/ppc/lib/pci_ops.c')
-rw-r--r--src/arch/ppc/lib/pci_ops.c14
1 files changed, 7 insertions, 7 deletions
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