Eric Biederman | 5899fd8 | 2003-04-24 06:25:08 +0000 | [diff] [blame] | 1 | #ifndef PCI_OPS_H |
| 2 | #define PCI_OPS_H |
| 3 | |
| 4 | #include <stdint.h> |
Eric Biederman | 7a5416a | 2003-06-12 19:23:51 +0000 | [diff] [blame] | 5 | #include <device/device.h> |
Eric Biederman | 018d8dd | 2004-11-04 11:04:33 +0000 | [diff] [blame] | 6 | #include <arch/pci_ops.h> |
Eric Biederman | 5899fd8 | 2003-04-24 06:25:08 +0000 | [diff] [blame] | 7 | |
Uwe Hermann | e487047 | 2010-11-04 23:23:47 +0000 | [diff] [blame] | 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); |
Eric Biederman | 7a5416a | 2003-06-12 19:23:51 +0000 | [diff] [blame] | 14 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 15 | #if CONFIG_MMCONF_SUPPORT |
Uwe Hermann | e487047 | 2010-11-04 23:23:47 +0000 | [diff] [blame] | 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); |
Stefan Reinauer | 43b29cf | 2009-03-06 19:11:52 +0000 | [diff] [blame] | 22 | #endif |
| 23 | |
Eric Biederman | 5899fd8 | 2003-04-24 06:25:08 +0000 | [diff] [blame] | 24 | #endif /* PCI_OPS_H */ |