diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 7bed32b3fd54..10028a94eeb3 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -564,6 +564,7 @@ static inline int pcibios_err_to_errno(int err) | |||
564 | /* Low-level architecture-dependent routines */ | 564 | /* Low-level architecture-dependent routines */ |
565 | 565 | ||
566 | struct pci_ops { | 566 | struct pci_ops { |
567 | void __iomem *(*map_bus)(struct pci_bus *bus, unsigned int devfn, int where); | ||
567 | int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val); | 568 | int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val); |
568 | int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val); | 569 | int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val); |
569 | }; | 570 | }; |
@@ -861,6 +862,16 @@ int pci_bus_write_config_word(struct pci_bus *bus, unsigned int devfn, | |||
861 | int where, u16 val); | 862 | int where, u16 val); |
862 | int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn, | 863 | int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn, |
863 | int where, u32 val); | 864 | int where, u32 val); |
865 | |||
866 | int pci_generic_config_read(struct pci_bus *bus, unsigned int devfn, | ||
867 | int where, int size, u32 *val); | ||
868 | int pci_generic_config_write(struct pci_bus *bus, unsigned int devfn, | ||
869 | int where, int size, u32 val); | ||
870 | int pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn, | ||
871 | int where, int size, u32 *val); | ||
872 | int pci_generic_config_write32(struct pci_bus *bus, unsigned int devfn, | ||
873 | int where, int size, u32 val); | ||
874 | |||
864 | struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops); | 875 | struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops); |
865 | 876 | ||
866 | static inline int pci_read_config_byte(const struct pci_dev *dev, int where, u8 *val) | 877 | static inline int pci_read_config_byte(const struct pci_dev *dev, int where, u8 *val) |