diff options
-rw-r--r-- | drivers/pci/pci.c | 40 | ||||
-rw-r--r-- | include/linux/pci.h | 13 |
2 files changed, 0 insertions, 53 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 84a24d16778f..6db2f1a441e9 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -2110,46 +2110,6 @@ void pci_configure_ari(struct pci_dev *dev) | |||
2110 | } | 2110 | } |
2111 | } | 2111 | } |
2112 | 2112 | ||
2113 | /** | ||
2114 | * pci_enable_ido - enable ID-based Ordering on a device | ||
2115 | * @dev: the PCI device | ||
2116 | * @type: which types of IDO to enable | ||
2117 | * | ||
2118 | * Enable ID-based ordering on @dev. @type can contain the bits | ||
2119 | * %PCI_EXP_IDO_REQUEST and/or %PCI_EXP_IDO_COMPLETION to indicate | ||
2120 | * which types of transactions are allowed to be re-ordered. | ||
2121 | */ | ||
2122 | void pci_enable_ido(struct pci_dev *dev, unsigned long type) | ||
2123 | { | ||
2124 | u16 ctrl = 0; | ||
2125 | |||
2126 | if (type & PCI_EXP_IDO_REQUEST) | ||
2127 | ctrl |= PCI_EXP_DEVCTL2_IDO_REQ_EN; | ||
2128 | if (type & PCI_EXP_IDO_COMPLETION) | ||
2129 | ctrl |= PCI_EXP_DEVCTL2_IDO_CMP_EN; | ||
2130 | if (ctrl) | ||
2131 | pcie_capability_set_word(dev, PCI_EXP_DEVCTL2, ctrl); | ||
2132 | } | ||
2133 | EXPORT_SYMBOL(pci_enable_ido); | ||
2134 | |||
2135 | /** | ||
2136 | * pci_disable_ido - disable ID-based ordering on a device | ||
2137 | * @dev: the PCI device | ||
2138 | * @type: which types of IDO to disable | ||
2139 | */ | ||
2140 | void pci_disable_ido(struct pci_dev *dev, unsigned long type) | ||
2141 | { | ||
2142 | u16 ctrl = 0; | ||
2143 | |||
2144 | if (type & PCI_EXP_IDO_REQUEST) | ||
2145 | ctrl |= PCI_EXP_DEVCTL2_IDO_REQ_EN; | ||
2146 | if (type & PCI_EXP_IDO_COMPLETION) | ||
2147 | ctrl |= PCI_EXP_DEVCTL2_IDO_CMP_EN; | ||
2148 | if (ctrl) | ||
2149 | pcie_capability_clear_word(dev, PCI_EXP_DEVCTL2, ctrl); | ||
2150 | } | ||
2151 | EXPORT_SYMBOL(pci_disable_ido); | ||
2152 | |||
2153 | static int pci_acs_enable; | 2113 | static int pci_acs_enable; |
2154 | 2114 | ||
2155 | /** | 2115 | /** |
diff --git a/include/linux/pci.h b/include/linux/pci.h index b8cbe52c7a48..f2284f1332db 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -997,11 +997,6 @@ static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, | |||
997 | return __pci_enable_wake(dev, state, false, enable); | 997 | return __pci_enable_wake(dev, state, false, enable); |
998 | } | 998 | } |
999 | 999 | ||
1000 | #define PCI_EXP_IDO_REQUEST (1<<0) | ||
1001 | #define PCI_EXP_IDO_COMPLETION (1<<1) | ||
1002 | void pci_enable_ido(struct pci_dev *dev, unsigned long type); | ||
1003 | void pci_disable_ido(struct pci_dev *dev, unsigned long type); | ||
1004 | |||
1005 | /* For use by arch with custom probe code */ | 1000 | /* For use by arch with custom probe code */ |
1006 | void set_pcie_port_type(struct pci_dev *pdev); | 1001 | void set_pcie_port_type(struct pci_dev *pdev); |
1007 | void set_pcie_hotplug_bridge(struct pci_dev *pdev); | 1002 | void set_pcie_hotplug_bridge(struct pci_dev *pdev); |
@@ -1412,14 +1407,6 @@ static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, | |||
1412 | return 0; | 1407 | return 0; |
1413 | } | 1408 | } |
1414 | 1409 | ||
1415 | static inline void pci_enable_ido(struct pci_dev *dev, unsigned long type) | ||
1416 | { | ||
1417 | } | ||
1418 | |||
1419 | static inline void pci_disable_ido(struct pci_dev *dev, unsigned long type) | ||
1420 | { | ||
1421 | } | ||
1422 | |||
1423 | static inline int pci_request_regions(struct pci_dev *dev, const char *res_name) | 1410 | static inline int pci_request_regions(struct pci_dev *dev, const char *res_name) |
1424 | { | 1411 | { |
1425 | return -EIO; | 1412 | return -EIO; |