1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the PCI bus specific drivers.
6 obj-y
+= access.o bus.o probe.o host-bridge.o remove.o pci.o \
7 pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \
8 irq.o vpd.o setup-bus.o vc.o mmap.o setup-irq.o
10 obj-
$(CONFIG_PROC_FS
) += proc.o
11 obj-
$(CONFIG_SYSFS
) += slot.o
13 obj-
$(CONFIG_PCI_QUIRKS
) += quirks.o
15 # Build PCI Express stuff if needed
16 obj-
$(CONFIG_PCIEPORTBUS
) += pcie
/
18 # Build the PCI Hotplug drivers if we were asked to
19 obj-
$(CONFIG_HOTPLUG_PCI
) += hotplug
/
20 ifdef CONFIG_HOTPLUG_PCI
21 obj-y
+= hotplug-pci.o
24 # Build the PCI MSI interrupt support
25 obj-
$(CONFIG_PCI_MSI
) += msi.o
27 # Build the Hypertransport interrupt support
28 obj-
$(CONFIG_HT_IRQ
) += htirq.o
30 obj-
$(CONFIG_PCI_ATS
) += ats.o
31 obj-
$(CONFIG_PCI_IOV
) += iov.o
34 # ACPI Related PCI FW Functions
35 # ACPI _DSM provided firmware instance and string name
37 obj-
$(CONFIG_ACPI
) += pci-acpi.o
39 # SMBIOS provided firmware instance and labels
40 obj-
$(CONFIG_PCI_LABEL
) += pci-label.o
42 # Intel MID platform PM support
43 obj-
$(CONFIG_X86_INTEL_MID
) += pci-mid.o
45 obj-
$(CONFIG_PCI_SYSCALL
) += syscall.o
47 obj-
$(CONFIG_PCI_STUB
) += pci-stub.o
49 obj-
$(CONFIG_PCI_ECAM
) += ecam.o
51 obj-
$(CONFIG_XEN_PCIDEV_FRONTEND
) += xen-pcifront.o
53 obj-
$(CONFIG_OF
) += of.o
55 ccflags-
$(CONFIG_PCI_DEBUG
) := -DDEBUG
57 # PCI host controller drivers