[PATCH] PCI Hotplug: add common acpi functions to core
shpchprm_acpi.c and pciehprm_acpi.c are nearly identical. In addition, there are functions in both these files that are also in acpiphp_glue.c. This patch will remove duplicate functions from shpchp, pciehp, and acpiphp and move this functionality to pci_hotplug, as it is not hardware specific. Get rid of shpchprm* and pciehprm* files since they are no longer needed. shpchprm_nonacpi.c and pciehprm_nonacpi.c are identical, as well as shpchprm_legacy.c and can be replaced with a macro. This patch also changes acpiphp to use the common hpp code. Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f5afe8064f
commit
783c49fc50
@@ -64,19 +64,6 @@ struct slot {
|
||||
struct acpiphp_slot *acpi_slot;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct hpp_param - ACPI 2.0 _HPP Hot Plug Parameters
|
||||
* @cache_line_size in DWORD
|
||||
* @latency_timer in PCI clock
|
||||
* @enable_SERR 0 or 1
|
||||
* @enable_PERR 0 or 1
|
||||
*/
|
||||
struct hpp_param {
|
||||
u8 cache_line_size;
|
||||
u8 latency_timer;
|
||||
u8 enable_SERR;
|
||||
u8 enable_PERR;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -100,7 +87,7 @@ struct acpiphp_bridge {
|
||||
struct pci_dev *pci_dev;
|
||||
|
||||
/* ACPI 2.0 _HPP parameters */
|
||||
struct hpp_param hpp;
|
||||
struct hotplug_params hpp;
|
||||
|
||||
spinlock_t res_lock;
|
||||
};
|
||||
|
Reference in New Issue
Block a user