diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 9603094ed59b..421eb6a9e600 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -177,6 +177,8 @@ enum pci_dev_flags { | |||
| 177 | PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS = (__force pci_dev_flags_t) (1 << 5), | 177 | PCI_DEV_FLAG_PCIE_BRIDGE_ALIAS = (__force pci_dev_flags_t) (1 << 5), |
| 178 | /* Do not use bus resets for device */ | 178 | /* Do not use bus resets for device */ |
| 179 | PCI_DEV_FLAGS_NO_BUS_RESET = (__force pci_dev_flags_t) (1 << 6), | 179 | PCI_DEV_FLAGS_NO_BUS_RESET = (__force pci_dev_flags_t) (1 << 6), |
| 180 | /* Do not use PM reset even if device advertises NoSoftRst- */ | ||
| 181 | PCI_DEV_FLAGS_NO_PM_RESET = (__force pci_dev_flags_t) (1 << 7), | ||
| 180 | }; | 182 | }; |
| 181 | 183 | ||
| 182 | enum pci_irq_reroute_variant { | 184 | enum pci_irq_reroute_variant { |
| @@ -562,6 +564,7 @@ static inline int pcibios_err_to_errno(int err) | |||
| 562 | /* Low-level architecture-dependent routines */ | 564 | /* Low-level architecture-dependent routines */ |
| 563 | 565 | ||
| 564 | struct pci_ops { | 566 | struct pci_ops { |
| 567 | void __iomem *(*map_bus)(struct pci_bus *bus, unsigned int devfn, int where); | ||
| 565 | 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); |
| 566 | 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); |
| 567 | }; | 570 | }; |
| @@ -859,6 +862,16 @@ int pci_bus_write_config_word(struct pci_bus *bus, unsigned int devfn, | |||
| 859 | int where, u16 val); | 862 | int where, u16 val); |
| 860 | 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, |
| 861 | 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 | |||
| 862 | 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); |
| 863 | 876 | ||
| 864 | 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) |
| @@ -1850,6 +1863,8 @@ static inline void pci_set_of_node(struct pci_dev *dev) { } | |||
| 1850 | static inline void pci_release_of_node(struct pci_dev *dev) { } | 1863 | static inline void pci_release_of_node(struct pci_dev *dev) { } |
| 1851 | static inline void pci_set_bus_of_node(struct pci_bus *bus) { } | 1864 | static inline void pci_set_bus_of_node(struct pci_bus *bus) { } |
| 1852 | static inline void pci_release_bus_of_node(struct pci_bus *bus) { } | 1865 | static inline void pci_release_bus_of_node(struct pci_bus *bus) { } |
| 1866 | static inline struct device_node * | ||
| 1867 | pci_device_to_OF_node(const struct pci_dev *pdev) { return NULL; } | ||
| 1853 | #endif /* CONFIG_OF */ | 1868 | #endif /* CONFIG_OF */ |
| 1854 | 1869 | ||
| 1855 | #ifdef CONFIG_EEH | 1870 | #ifdef CONFIG_EEH |
