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 | |
Eric Biederman | 7a5416a | 2003-06-12 19:23:51 +0000 | [diff] [blame] | 8 | uint8_t pci_read_config8(device_t dev, unsigned where); |
| 9 | uint16_t pci_read_config16(device_t dev, unsigned where); |
| 10 | uint32_t pci_read_config32(device_t dev, unsigned where); |
| 11 | void pci_write_config8(device_t dev, unsigned where, uint8_t val); |
| 12 | void pci_write_config16(device_t dev, unsigned where, uint16_t val); |
| 13 | void pci_write_config32(device_t dev, unsigned where, uint32_t val); |
| 14 | |
Stefan Reinauer | 43b29cf | 2009-03-06 19:11:52 +0000 | [diff] [blame^] | 15 | #if MMCONF_SUPPORT |
| 16 | uint8_t pci_mmio_read_config8(device_t dev, unsigned where); |
| 17 | uint16_t pci_mmio_read_config16(device_t dev, unsigned where); |
| 18 | uint32_t pci_mmio_read_config32(device_t dev, unsigned where); |
| 19 | void pci_mmio_write_config8(device_t dev, unsigned where, uint8_t val); |
| 20 | void pci_mmio_write_config16(device_t dev, unsigned where, uint16_t val); |
| 21 | void pci_mmio_write_config32(device_t dev, unsigned where, uint32_t val); |
| 22 | #endif |
| 23 | |
Eric Biederman | 5899fd8 | 2003-04-24 06:25:08 +0000 | [diff] [blame] | 24 | #endif /* PCI_OPS_H */ |