1 #include <console/console.h>
2 #include <arch/pciconf.h>
3 #include <device/device.h>
4 #include <device/pci.h>
5 #include <device/pci_ids.h>
6 #include <device/pci_ops.h>
8 static uint8_t ppc_conf1_read_config8(struct bus *pbus, unsigned char bus, int devfn, int where)
10 return pci_ppc_read_config8(bus, devfn, where);
13 static uint16_t ppc_conf1_read_config16(struct bus *pbus, unsigned char bus, int devfn, int where)
15 return pci_ppc_read_config16(bus, devfn, where);
18 static uint32_t ppc_conf1_read_config32(struct bus *pbus, unsigned char bus, int devfn, int where)
20 return pci_ppc_read_config32(bus, devfn, where);
23 static void ppc_conf1_write_config8(struct bus *pbus, unsigned char bus, int devfn, int where, uint8_t val)
25 pci_ppc_write_config8(bus, devfn, where, val);
28 static void ppc_conf1_write_config16(struct bus *pbus, unsigned char bus, int devfn, int where, uint16_t val)
30 pci_ppc_write_config16(bus, devfn, where, val);
33 static void ppc_conf1_write_config32(struct bus *pbus, unsigned char bus, int devfn, int where, uint32_t val)
35 pci_ppc_write_config32(bus, devfn, where, val);
38 const struct pci_bus_operations pci_ppc_conf1 =
40 .read8 = ppc_conf1_read_config8,
41 .read16 = ppc_conf1_read_config16,
42 .read32 = ppc_conf1_read_config32,
43 .write8 = ppc_conf1_write_config8,
44 .write16 = ppc_conf1_write_config16,
45 .write32 = ppc_conf1_write_config32,