1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the Linux kernel pci hotplug controller drivers.
4#
5
6obj-$(CONFIG_HOTPLUG_PCI)		+= pci_hotplug.o
7obj-$(CONFIG_HOTPLUG_PCI_COMPAQ)	+= cpqphp.o
8obj-$(CONFIG_HOTPLUG_PCI_IBM)		+= ibmphp.o
9
10# native drivers should be linked before acpiphp in order to allow the
11# native driver to attempt to bind first. We can then fall back to
12# generic support.
13
14obj-$(CONFIG_HOTPLUG_PCI_PCIE)		+= pciehp.o
15obj-$(CONFIG_HOTPLUG_PCI_CPCI_ZT5550)	+= cpcihp_zt5550.o
16obj-$(CONFIG_HOTPLUG_PCI_CPCI_GENERIC)	+= cpcihp_generic.o
17obj-$(CONFIG_HOTPLUG_PCI_SHPC)		+= shpchp.o
18obj-$(CONFIG_HOTPLUG_PCI_POWERNV)	+= pnv-php.o
19obj-$(CONFIG_HOTPLUG_PCI_RPA)		+= rpaphp.o
20obj-$(CONFIG_HOTPLUG_PCI_RPA_DLPAR)	+= rpadlpar_io.o
21obj-$(CONFIG_HOTPLUG_PCI_ACPI)		+= acpiphp.o
22obj-$(CONFIG_HOTPLUG_PCI_S390)		+= s390_pci_hpc.o
23
24# acpiphp_ibm extends acpiphp, so should be linked afterwards.
25
26obj-$(CONFIG_HOTPLUG_PCI_ACPI_IBM)	+= acpiphp_ibm.o
27
28pci_hotplug-objs	:=	pci_hotplug_core.o
29
30ifdef CONFIG_HOTPLUG_PCI_CPCI
31pci_hotplug-objs	+=	cpci_hotplug_core.o	\
32				cpci_hotplug_pci.o
33endif
34ifdef CONFIG_ACPI
35pci_hotplug-objs	+=	acpi_pcihp.o
36endif
37
38cpqphp-objs		:=	cpqphp_core.o	\
39				cpqphp_ctrl.o	\
40				cpqphp_sysfs.o	\
41				cpqphp_pci.o
42cpqphp-$(CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM) += cpqphp_nvram.o
43cpqphp-objs += $(cpqphp-y)
44
45ibmphp-objs		:=	ibmphp_core.o	\
46				ibmphp_ebda.o	\
47				ibmphp_pci.o	\
48				ibmphp_res.o	\
49				ibmphp_hpc.o
50
51acpiphp-objs		:=	acpiphp_core.o	\
52				acpiphp_glue.o
53
54pnv-php-objs		:=	pnv_php.o
55
56rpaphp-objs		:=	rpaphp_core.o	\
57				rpaphp_pci.o	\
58				rpaphp_slot.o
59
60rpadlpar_io-objs	:=	rpadlpar_core.o \
61				rpadlpar_sysfs.o
62
63pciehp-objs		:=	pciehp_core.o	\
64				pciehp_ctrl.o	\
65				pciehp_pci.o	\
66				pciehp_hpc.o
67
68shpchp-objs		:=	shpchp_core.o	\
69				shpchp_ctrl.o	\
70				shpchp_pci.o	\
71				shpchp_sysfs.o	\
72				shpchp_hpc.o
73