Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the Linux kernel pci hotplug controller drivers. |
| 4 | # |
| 5 | |
| 6 | obj-$(CONFIG_HOTPLUG_PCI) += pci_hotplug.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | obj-$(CONFIG_HOTPLUG_PCI_COMPAQ) += cpqphp.o |
| 8 | obj-$(CONFIG_HOTPLUG_PCI_IBM) += ibmphp.o |
Matthew Garrett | 71a082e | 2009-01-27 01:03:35 +0000 | [diff] [blame] | 9 | |
Matthew Garrett | 3368dd2 | 2009-10-26 13:18:22 -0400 | [diff] [blame] | 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. |
Matthew Garrett | 71a082e | 2009-01-27 01:03:35 +0000 | [diff] [blame] | 13 | |
| 14 | obj-$(CONFIG_HOTPLUG_PCI_PCIE) += pciehp.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | obj-$(CONFIG_HOTPLUG_PCI_CPCI_ZT5550) += cpcihp_zt5550.o |
| 16 | obj-$(CONFIG_HOTPLUG_PCI_CPCI_GENERIC) += cpcihp_generic.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | obj-$(CONFIG_HOTPLUG_PCI_SHPC) += shpchp.o |
Gavin Shan | 6672515 | 2016-05-20 16:41:42 +1000 | [diff] [blame] | 18 | obj-$(CONFIG_HOTPLUG_PCI_POWERNV) += pnv-php.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | obj-$(CONFIG_HOTPLUG_PCI_RPA) += rpaphp.o |
| 20 | obj-$(CONFIG_HOTPLUG_PCI_RPA_DLPAR) += rpadlpar_io.o |
Prarit Bhargava | 6f354b0 | 2005-07-06 15:29:53 -0700 | [diff] [blame] | 21 | obj-$(CONFIG_HOTPLUG_PCI_SGI) += sgi_hotplug.o |
Matthew Garrett | 3368dd2 | 2009-10-26 13:18:22 -0400 | [diff] [blame] | 22 | obj-$(CONFIG_HOTPLUG_PCI_ACPI) += acpiphp.o |
Jan Glauber | 7441b06 | 2012-11-29 14:35:47 +0100 | [diff] [blame] | 23 | obj-$(CONFIG_HOTPLUG_PCI_S390) += s390_pci_hpc.o |
Matthew Garrett | 3368dd2 | 2009-10-26 13:18:22 -0400 | [diff] [blame] | 24 | |
| 25 | # acpiphp_ibm extends acpiphp, so should be linked afterwards. |
| 26 | |
| 27 | obj-$(CONFIG_HOTPLUG_PCI_ACPI_IBM) += acpiphp_ibm.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Bjorn Helgaas | 589fcc2 | 2014-09-12 20:02:00 -0600 | [diff] [blame] | 29 | pci_hotplug-objs := pci_hotplug_core.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
| 31 | ifdef CONFIG_HOTPLUG_PCI_CPCI |
| 32 | pci_hotplug-objs += cpci_hotplug_core.o \ |
| 33 | cpci_hotplug_pci.o |
| 34 | endif |
Kristen Accardi | 783c49f | 2006-03-03 10:16:05 -0800 | [diff] [blame] | 35 | ifdef CONFIG_ACPI |
Bjorn Helgaas | f762598 | 2013-11-14 11:28:18 -0700 | [diff] [blame] | 36 | pci_hotplug-objs += acpi_pcihp.o |
Kristen Accardi | 783c49f | 2006-03-03 10:16:05 -0800 | [diff] [blame] | 37 | endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | |
| 39 | cpqphp-objs := cpqphp_core.o \ |
| 40 | cpqphp_ctrl.o \ |
| 41 | cpqphp_sysfs.o \ |
| 42 | cpqphp_pci.o |
| 43 | cpqphp-$(CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM) += cpqphp_nvram.o |
| 44 | cpqphp-objs += $(cpqphp-y) |
| 45 | |
| 46 | ibmphp-objs := ibmphp_core.o \ |
| 47 | ibmphp_ebda.o \ |
| 48 | ibmphp_pci.o \ |
| 49 | ibmphp_res.o \ |
| 50 | ibmphp_hpc.o |
| 51 | |
| 52 | acpiphp-objs := acpiphp_core.o \ |
Kristen Accardi | 4e8662b | 2006-06-28 03:08:06 -0400 | [diff] [blame] | 53 | acpiphp_glue.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | |
Gavin Shan | 6672515 | 2016-05-20 16:41:42 +1000 | [diff] [blame] | 55 | pnv-php-objs := pnv_php.o |
| 56 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | rpaphp-objs := rpaphp_core.o \ |
| 58 | rpaphp_pci.o \ |
John Rose | 5eeb8c6 | 2005-07-25 10:16:42 -0500 | [diff] [blame] | 59 | rpaphp_slot.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | |
| 61 | rpadlpar_io-objs := rpadlpar_core.o \ |
| 62 | rpadlpar_sysfs.o |
| 63 | |
| 64 | pciehp-objs := pciehp_core.o \ |
| 65 | pciehp_ctrl.o \ |
| 66 | pciehp_pci.o \ |
| 67 | pciehp_hpc.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | |
| 69 | shpchp-objs := shpchp_core.o \ |
| 70 | shpchp_ctrl.o \ |
| 71 | shpchp_pci.o \ |
| 72 | shpchp_sysfs.o \ |
| 73 | shpchp_hpc.o |