162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the Linux kernel pci hotplug controller drivers.
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI)		+= pci_hotplug.o
762306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_COMPAQ)	+= cpqphp.o
862306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_IBM)		+= ibmphp.o
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci# native drivers should be linked before acpiphp in order to allow the
1162306a36Sopenharmony_ci# native driver to attempt to bind first. We can then fall back to
1262306a36Sopenharmony_ci# generic support.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_PCIE)		+= pciehp.o
1562306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_CPCI_ZT5550)	+= cpcihp_zt5550.o
1662306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_CPCI_GENERIC)	+= cpcihp_generic.o
1762306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_SHPC)		+= shpchp.o
1862306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_POWERNV)	+= pnv-php.o
1962306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_RPA)		+= rpaphp.o
2062306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_RPA_DLPAR)	+= rpadlpar_io.o
2162306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_ACPI)		+= acpiphp.o
2262306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_S390)		+= s390_pci_hpc.o
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci# acpiphp_ibm extends acpiphp, so should be linked afterwards.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciobj-$(CONFIG_HOTPLUG_PCI_ACPI_IBM)	+= acpiphp_ibm.o
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_cipci_hotplug-objs	:=	pci_hotplug_core.o
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciifdef CONFIG_HOTPLUG_PCI_CPCI
3162306a36Sopenharmony_cipci_hotplug-objs	+=	cpci_hotplug_core.o	\
3262306a36Sopenharmony_ci				cpci_hotplug_pci.o
3362306a36Sopenharmony_ciendif
3462306a36Sopenharmony_ciifdef CONFIG_ACPI
3562306a36Sopenharmony_cipci_hotplug-objs	+=	acpi_pcihp.o
3662306a36Sopenharmony_ciendif
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_cicpqphp-objs		:=	cpqphp_core.o	\
3962306a36Sopenharmony_ci				cpqphp_ctrl.o	\
4062306a36Sopenharmony_ci				cpqphp_sysfs.o	\
4162306a36Sopenharmony_ci				cpqphp_pci.o
4262306a36Sopenharmony_cicpqphp-$(CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM) += cpqphp_nvram.o
4362306a36Sopenharmony_cicpqphp-objs += $(cpqphp-y)
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciibmphp-objs		:=	ibmphp_core.o	\
4662306a36Sopenharmony_ci				ibmphp_ebda.o	\
4762306a36Sopenharmony_ci				ibmphp_pci.o	\
4862306a36Sopenharmony_ci				ibmphp_res.o	\
4962306a36Sopenharmony_ci				ibmphp_hpc.o
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciacpiphp-objs		:=	acpiphp_core.o	\
5262306a36Sopenharmony_ci				acpiphp_glue.o
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_cipnv-php-objs		:=	pnv_php.o
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_cirpaphp-objs		:=	rpaphp_core.o	\
5762306a36Sopenharmony_ci				rpaphp_pci.o	\
5862306a36Sopenharmony_ci				rpaphp_slot.o
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_cirpadlpar_io-objs	:=	rpadlpar_core.o \
6162306a36Sopenharmony_ci				rpadlpar_sysfs.o
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_cipciehp-objs		:=	pciehp_core.o	\
6462306a36Sopenharmony_ci				pciehp_ctrl.o	\
6562306a36Sopenharmony_ci				pciehp_pci.o	\
6662306a36Sopenharmony_ci				pciehp_hpc.o
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_cishpchp-objs		:=	shpchp_core.o	\
6962306a36Sopenharmony_ci				shpchp_ctrl.o	\
7062306a36Sopenharmony_ci				shpchp_pci.o	\
7162306a36Sopenharmony_ci				shpchp_sysfs.o	\
7262306a36Sopenharmony_ci				shpchp_hpc.o
73