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 | |
Kyösti Mälkki | ef84401 | 2013-06-25 23:17:43 +0300 | [diff] [blame] | 8 | #ifndef __SIMPLE_DEVICE__ |
Edward O'Callaghan | 016732f | 2014-10-29 03:04:40 +1100 | [diff] [blame] | 9 | u8 pci_read_config8(struct device *dev, unsigned int where); |
| 10 | u16 pci_read_config16(struct device *dev, unsigned int where); |
| 11 | u32 pci_read_config32(struct device *dev, unsigned int where); |
| 12 | void pci_write_config8(struct device *dev, unsigned int where, u8 val); |
| 13 | void pci_write_config16(struct device *dev, unsigned int where, u16 val); |
| 14 | void pci_write_config32(struct device *dev, unsigned int where, u32 val); |
Eric Biederman | 7a5416a | 2003-06-12 19:23:51 +0000 | [diff] [blame] | 15 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 16 | #if CONFIG_MMCONF_SUPPORT |
Edward O'Callaghan | 016732f | 2014-10-29 03:04:40 +1100 | [diff] [blame] | 17 | u8 pci_mmio_read_config8(struct device *dev, unsigned int where); |
| 18 | u16 pci_mmio_read_config16(struct device *dev, unsigned int where); |
| 19 | u32 pci_mmio_read_config32(struct device *dev, unsigned int where); |
| 20 | void pci_mmio_write_config8(struct device *dev, unsigned int where, u8 val); |
| 21 | void pci_mmio_write_config16(struct device *dev, unsigned int where, u16 val); |
| 22 | void pci_mmio_write_config32(struct device *dev, unsigned int where, u32 val); |
Stefan Reinauer | 43b29cf | 2009-03-06 19:11:52 +0000 | [diff] [blame] | 23 | #endif |
Stefan Reinauer | 24d1d4b | 2013-03-21 11:51:41 -0700 | [diff] [blame] | 24 | #endif |
Stefan Reinauer | 43b29cf | 2009-03-06 19:11:52 +0000 | [diff] [blame] | 25 | |
Eric Biederman | 5899fd8 | 2003-04-24 06:25:08 +0000 | [diff] [blame] | 26 | #endif /* PCI_OPS_H */ |