aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci_hotplug.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-09-14 18:35:20 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-14 20:39:05 -0400
commit8838400db5193c37588813c2eb1249b821781950 (patch)
tree9ddd0bfc93c0a0516d9af2aa450e5d41e9786bb7 /include/linux/pci_hotplug.h
parent6a29172ba90e49c046245610caff9848307bfd6a (diff)
PCI hotplug: add pci_configure_slot()
This patch adds a new pci_configure_slot() function that programs the PCI bus characteristics for a newly-added device. This is based on code in pciehp_pci.c, but should be generic enough to be used by pciehp, shpchp, and acpiphp. The hotplug_params struct and the program_hpp_typeX() functions are based on the ACPI definitions, but they aren't really ACPI-specific, and there's no alternate implementation, so I don't see the need to abstract them yet. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Reviewed-by: Alex Chiang <achiang@hp.com> Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci_hotplug.h')
-rw-r--r--include/linux/pci_hotplug.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h
index 0a7c2401d945..1cdef8317377 100644
--- a/include/linux/pci_hotplug.h
+++ b/include/linux/pci_hotplug.h
@@ -232,6 +232,15 @@ int acpi_get_hp_params_from_firmware(struct pci_dev *dev,
232int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags); 232int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags);
233int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle); 233int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle);
234int acpi_pci_detect_ejectable(acpi_handle handle); 234int acpi_pci_detect_ejectable(acpi_handle handle);
235#define pci_get_hp_params(dev, hpp) acpi_get_hp_params_from_firmware(dev, hpp)
236#else
237static inline int pci_get_hp_params(struct pci_dev *dev,
238 struct hotplug_params *hpp)
239{
240 return -ENODEV;
241}
235#endif 242#endif
243
244void pci_configure_slot(struct pci_dev *dev);
236#endif 245#endif
237 246