diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/pci.h | 15 | ||||
| -rw-r--r-- | include/linux/pstore.h | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index e63112fb55be..353db8dc4c6e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -1178,6 +1178,7 @@ unsigned char pci_bus_max_busnr(struct pci_bus *bus); | |||
| 1178 | void pci_setup_bridge(struct pci_bus *bus); | 1178 | void pci_setup_bridge(struct pci_bus *bus); |
| 1179 | resource_size_t pcibios_window_alignment(struct pci_bus *bus, | 1179 | resource_size_t pcibios_window_alignment(struct pci_bus *bus, |
| 1180 | unsigned long type); | 1180 | unsigned long type); |
| 1181 | resource_size_t pcibios_iov_resource_alignment(struct pci_dev *dev, int resno); | ||
| 1181 | 1182 | ||
| 1182 | #define PCI_VGA_STATE_CHANGE_BRIDGE (1 << 0) | 1183 | #define PCI_VGA_STATE_CHANGE_BRIDGE (1 << 0) |
| 1183 | #define PCI_VGA_STATE_CHANGE_DECODES (1 << 1) | 1184 | #define PCI_VGA_STATE_CHANGE_DECODES (1 << 1) |
| @@ -1673,13 +1674,25 @@ int pci_ext_cfg_avail(void); | |||
| 1673 | void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); | 1674 | void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); |
| 1674 | 1675 | ||
| 1675 | #ifdef CONFIG_PCI_IOV | 1676 | #ifdef CONFIG_PCI_IOV |
| 1677 | int pci_iov_virtfn_bus(struct pci_dev *dev, int id); | ||
| 1678 | int pci_iov_virtfn_devfn(struct pci_dev *dev, int id); | ||
| 1679 | |||
| 1676 | int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); | 1680 | int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); |
| 1677 | void pci_disable_sriov(struct pci_dev *dev); | 1681 | void pci_disable_sriov(struct pci_dev *dev); |
| 1678 | int pci_num_vf(struct pci_dev *dev); | 1682 | int pci_num_vf(struct pci_dev *dev); |
| 1679 | int pci_vfs_assigned(struct pci_dev *dev); | 1683 | int pci_vfs_assigned(struct pci_dev *dev); |
| 1680 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); | 1684 | int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); |
| 1681 | int pci_sriov_get_totalvfs(struct pci_dev *dev); | 1685 | int pci_sriov_get_totalvfs(struct pci_dev *dev); |
| 1686 | resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno); | ||
| 1682 | #else | 1687 | #else |
| 1688 | static inline int pci_iov_virtfn_bus(struct pci_dev *dev, int id) | ||
| 1689 | { | ||
| 1690 | return -ENOSYS; | ||
| 1691 | } | ||
| 1692 | static inline int pci_iov_virtfn_devfn(struct pci_dev *dev, int id) | ||
| 1693 | { | ||
| 1694 | return -ENOSYS; | ||
| 1695 | } | ||
| 1683 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) | 1696 | static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) |
| 1684 | { return -ENODEV; } | 1697 | { return -ENODEV; } |
| 1685 | static inline void pci_disable_sriov(struct pci_dev *dev) { } | 1698 | static inline void pci_disable_sriov(struct pci_dev *dev) { } |
| @@ -1690,6 +1703,8 @@ static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) | |||
| 1690 | { return 0; } | 1703 | { return 0; } |
| 1691 | static inline int pci_sriov_get_totalvfs(struct pci_dev *dev) | 1704 | static inline int pci_sriov_get_totalvfs(struct pci_dev *dev) |
| 1692 | { return 0; } | 1705 | { return 0; } |
| 1706 | static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) | ||
| 1707 | { return 0; } | ||
| 1693 | #endif | 1708 | #endif |
| 1694 | 1709 | ||
| 1695 | #if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) | 1710 | #if defined(CONFIG_HOTPLUG_PCI) || defined(CONFIG_HOTPLUG_PCI_MODULE) |
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index 8884f6e507f7..8e7a25b068b0 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h | |||
| @@ -40,6 +40,7 @@ enum pstore_type_id { | |||
| 40 | PSTORE_TYPE_PPC_OF = 5, | 40 | PSTORE_TYPE_PPC_OF = 5, |
| 41 | PSTORE_TYPE_PPC_COMMON = 6, | 41 | PSTORE_TYPE_PPC_COMMON = 6, |
| 42 | PSTORE_TYPE_PMSG = 7, | 42 | PSTORE_TYPE_PMSG = 7, |
| 43 | PSTORE_TYPE_PPC_OPAL = 8, | ||
| 43 | PSTORE_TYPE_UNKNOWN = 255 | 44 | PSTORE_TYPE_UNKNOWN = 255 |
| 44 | }; | 45 | }; |
| 45 | 46 | ||
