1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the PCI bus specific drivers. 4 5obj-$(CONFIG_PCI) += access.o bus.o probe.o host-bridge.o \ 6 remove.o pci.o pci-driver.o search.o \ 7 pci-sysfs.o rom.o setup-res.o irq.o vpd.o \ 8 setup-bus.o vc.o mmap.o setup-irq.o 9 10obj-$(CONFIG_PCI) += pcie/ 11 12ifdef CONFIG_PCI 13obj-$(CONFIG_PROC_FS) += proc.o 14obj-$(CONFIG_SYSFS) += slot.o 15obj-$(CONFIG_ACPI) += pci-acpi.o 16endif 17 18obj-$(CONFIG_OF) += of.o 19obj-$(CONFIG_PCI_QUIRKS) += quirks.o 20obj-$(CONFIG_HOTPLUG_PCI) += hotplug/ 21obj-$(CONFIG_PCI_MSI) += msi.o 22obj-$(CONFIG_PCI_ATS) += ats.o 23obj-$(CONFIG_PCI_IOV) += iov.o 24obj-$(CONFIG_PCI_BRIDGE_EMUL) += pci-bridge-emul.o 25obj-$(CONFIG_PCI_LABEL) += pci-label.o 26obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o 27obj-$(CONFIG_PCI_SYSCALL) += syscall.o 28obj-$(CONFIG_PCI_STUB) += pci-stub.o 29obj-$(CONFIG_PCI_PF_STUB) += pci-pf-stub.o 30obj-$(CONFIG_PCI_ECAM) += ecam.o 31obj-$(CONFIG_PCI_P2PDMA) += p2pdma.o 32obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o 33 34# Endpoint library must be initialized before its users 35obj-$(CONFIG_PCI_ENDPOINT) += endpoint/ 36 37obj-y += controller/ 38obj-y += switch/ 39 40ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG 41