diff options
author | rajesh.shah@intel.com <rajesh.shah@intel.com> | 2005-10-31 19:20:07 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-11-10 19:09:14 -0500 |
commit | a8a2be949267cb0d1d933a92d9fb43eda4f4fe88 (patch) | |
tree | 08c0fd1ec2ee5236d201005021021491194f4153 /drivers/pci/hotplug/pciehp.h | |
parent | 71b720c0f96145f5868c87591c286b290bc1a6af (diff) |
[PATCH] pciehp: reduce dependence on ACPI
Reduce the PCI Express hotplug driver's dependence on ACPI.
We don't walk the acpi namespace anymore to build a list of
bridges and devices. We go to ACPI only to run the _OSC or
_OSHP methods to transition control of hotplug hardware from
system BIOS to the hotplug driver, and to run the _HPP
method to get hotplug device parameters like cache line size,
latency timer and SERR/PERR enable from BIOS.
Note that one of the side effects of this patch is that pciehp
does not automatically enable the hot-added device or its DMA
bus mastering capability now. It expects the device driver to
do that. This may break some drivers and we will have to fix
them as they are reported.
Signed-off-by: Rajesh Shah <rajesh.shah@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r-- | drivers/pci/hotplug/pciehp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h index e9480ddd5abf..e9c09566f851 100644 --- a/drivers/pci/hotplug/pciehp.h +++ b/drivers/pci/hotplug/pciehp.h | |||
@@ -49,6 +49,13 @@ extern int pciehp_debug; | |||
49 | #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) | 49 | #define info(format, arg...) printk(KERN_INFO "%s: " format, MY_NAME , ## arg) |
50 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) | 50 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) |
51 | 51 | ||
52 | struct hotplug_params { | ||
53 | u8 cache_line_size; | ||
54 | u8 latency_timer; | ||
55 | u8 enable_serr; | ||
56 | u8 enable_perr; | ||
57 | }; | ||
58 | |||
52 | struct pci_func { | 59 | struct pci_func { |
53 | struct pci_func *next; | 60 | struct pci_func *next; |
54 | u8 bus; | 61 | u8 bus; |
@@ -199,6 +206,10 @@ extern int pciehp_save_config (struct controller *ctrl, int busnumber, int num | |||
199 | extern int pciehp_save_slot_config (struct controller *ctrl, struct pci_func * new_slot); | 206 | extern int pciehp_save_slot_config (struct controller *ctrl, struct pci_func * new_slot); |
200 | extern int pciehp_configure_device (struct slot *ctrl); | 207 | extern int pciehp_configure_device (struct slot *ctrl); |
201 | extern int pciehp_unconfigure_device (struct pci_func* func); | 208 | extern int pciehp_unconfigure_device (struct pci_func* func); |
209 | extern int get_hp_hw_control_from_firmware(struct pci_dev *dev); | ||
210 | extern void get_hp_params_from_firmware(struct pci_dev *dev, | ||
211 | struct hotplug_params *hpp); | ||
212 | |||
202 | 213 | ||
203 | 214 | ||
204 | /* Global variables */ | 215 | /* Global variables */ |