12e4529784b65ea025c7351140af29208bdddb85
[coreboot.git] / src / arch / ppc / lib / pci_ppc_conf1_ops.c
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>
7
8 static uint8_t ppc_conf1_read_config8(struct bus *pbus, unsigned char bus, int devfn, int where)
9 {
10         return pci_ppc_read_config8(bus, devfn, where);
11 }
12
13 static uint16_t ppc_conf1_read_config16(struct bus *pbus, unsigned char bus, int devfn, int where)
14 {
15         return pci_ppc_read_config16(bus, devfn, where);
16 }
17
18 static uint32_t ppc_conf1_read_config32(struct bus *pbus, unsigned char bus, int devfn, int where)
19 {
20         return pci_ppc_read_config32(bus, devfn, where);
21 }
22
23 static void ppc_conf1_write_config8(struct bus *pbus, unsigned char bus, int devfn, int where, uint8_t val)
24 {
25         pci_ppc_write_config8(bus, devfn, where, val);
26 }
27
28 static void ppc_conf1_write_config16(struct bus *pbus, unsigned char bus, int devfn, int where, uint16_t val)
29 {
30         pci_ppc_write_config16(bus, devfn, where, val);
31 }
32
33 static void ppc_conf1_write_config32(struct bus *pbus, unsigned char bus, int devfn, int where, uint32_t val)
34 {
35         pci_ppc_write_config32(bus, devfn, where, val);
36 }
37
38 const struct pci_bus_operations pci_ppc_conf1 =
39 {
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,
46 };