diff options
author | rajesh.shah@intel.com <rajesh.shah@intel.com> | 2005-10-13 15:05:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 18:37:00 -0400 |
commit | 424600f9706b20a8a33ad928d3d0326bd88679bc (patch) | |
tree | 364509b512ff4f522b38329df582553a9c8fb6ff /drivers/pci/hotplug/shpchp.h | |
parent | 7e88ed199689f333668b62348051202706b6a74a (diff) |
[PATCH] shpchp: reduce dependence on ACPI
Reduce the SHPC hotplug driver's dependence on ACPI. We don't
walk the acpi namespace anymore to build a list of bridges and
devices. The remaining interaction with ACPI is to run the
_OSHP method to transition control of hotplug hardware from
system BIOS to the shpc 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 shpchp
does not enable the hot-added device or its DMA bus mastering
automatically 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/shpchp.h')
-rw-r--r-- | drivers/pci/hotplug/shpchp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h index deea56c73cf2..1b345ae81ddb 100644 --- a/drivers/pci/hotplug/shpchp.h +++ b/drivers/pci/hotplug/shpchp.h | |||
@@ -122,6 +122,13 @@ struct controller { | |||
122 | u16 vendor_id; | 122 | u16 vendor_id; |
123 | }; | 123 | }; |
124 | 124 | ||
125 | struct hotplug_params { | ||
126 | u8 cache_line_size; | ||
127 | u8 latency_timer; | ||
128 | u8 enable_serr; | ||
129 | u8 enable_perr; | ||
130 | }; | ||
131 | |||
125 | /* Define AMD SHPC ID */ | 132 | /* Define AMD SHPC ID */ |
126 | #define PCI_DEVICE_ID_AMD_GOLAM_7450 0x7450 | 133 | #define PCI_DEVICE_ID_AMD_GOLAM_7450 0x7450 |
127 | 134 | ||
@@ -192,6 +199,11 @@ extern int shpchp_save_config(struct controller *ctrl, int busnumber, int num_ct | |||
192 | extern int shpchp_save_slot_config(struct controller *ctrl, struct pci_func * new_slot); | 199 | extern int shpchp_save_slot_config(struct controller *ctrl, struct pci_func * new_slot); |
193 | extern int shpchp_configure_device(struct slot *p_slot); | 200 | extern int shpchp_configure_device(struct slot *p_slot); |
194 | extern int shpchp_unconfigure_device(struct pci_func* func); | 201 | extern int shpchp_unconfigure_device(struct pci_func* func); |
202 | extern void get_hp_hw_control_from_firmware(struct pci_dev *dev); | ||
203 | extern void get_hp_params_from_firmware(struct pci_dev *dev, | ||
204 | struct hotplug_params *hpp); | ||
205 | extern int shpchprm_get_physical_slot_number(struct controller *ctrl, | ||
206 | u32 *sun, u8 busnum, u8 devnum); | ||
195 | 207 | ||
196 | 208 | ||
197 | /* Global variables */ | 209 | /* Global variables */ |