Various cosmetic and coding style fixes in src/devices.
[coreboot.git] / src / include / device / pci_ops.h
1 #ifndef PCI_OPS_H
2 #define PCI_OPS_H
3
4 #include <stdint.h>
5 #include <device/device.h>
6 #include <arch/pci_ops.h>
7
8 u8 pci_read_config8(device_t dev, unsigned int where);
9 u16 pci_read_config16(device_t dev, unsigned int where);
10 u32 pci_read_config32(device_t dev, unsigned int where);
11 void pci_write_config8(device_t dev, unsigned int where, u8 val);
12 void pci_write_config16(device_t dev, unsigned int where, u16 val);
13 void pci_write_config32(device_t dev, unsigned int where, u32 val);
14
15 #if CONFIG_MMCONF_SUPPORT
16 u8 pci_mmio_read_config8(device_t dev, unsigned int where);
17 u16 pci_mmio_read_config16(device_t dev, unsigned int where);
18 u32 pci_mmio_read_config32(device_t dev, unsigned int where);
19 void pci_mmio_write_config8(device_t dev, unsigned int where, u8 val);
20 void pci_mmio_write_config16(device_t dev, unsigned int where, u16 val);
21 void pci_mmio_write_config32(device_t dev, unsigned int where, u32 val);
22 #endif
23
24 /* This function lives in pci_ops_auto.c */
25 const struct pci_bus_operations *pci_remember_direct(void);
26
27 #endif /* PCI_OPS_H */