diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2015-02-02 15:49:29 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-02-02 15:49:29 -0500 |
commit | 2cd59deaefbc5fb88e6e232664377a02ca3122ed (patch) | |
tree | df886f88d157af744e9d2781628ad3318a05abcf /include/linux/pci.h | |
parent | 341f3a2bcfa25462b55ec72939fd21692fa0d7c9 (diff) | |
parent | 029e2151fc4a5760b4ab963d7613f8603084232a (diff) |
Merge branch 'pci/config' into next
* pci/config:
PCI: xilinx: Convert to use generic config accessors
PCI: xgene: Convert to use generic config accessors
PCI: tegra: Convert to use generic config accessors
PCI: rcar: Convert to use generic config accessors
PCI: generic: Convert to use generic config accessors
powerpc/powermac: Convert PCI to use generic config accessors
powerpc/fsl_pci: Convert PCI to use generic config accessors
ARM: ks8695: Convert PCI to use generic config accessors
ARM: sa1100: Convert PCI to use generic config accessors
ARM: integrator: Convert PCI to use generic config accessors
ARM: cns3xxx: Convert PCI to use generic config accessors
PCI: Add generic config accessors
powerpc/PCI: Add struct pci_ops member names to initialization
mn10300/PCI: Add struct pci_ops member names to initialization
MIPS: PCI: Add struct pci_ops member names to initialization
frv/PCI: Add struct pci_ops member names to initialization
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) |