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 rom.o setup-res.o irq.o vpd.o \ 8 setup-bus.o vc.o mmap.o devres.o 9 10obj-$(CONFIG_PCI) += msi/ 11obj-$(CONFIG_PCI) += pcie/ 12obj-$(CONFIG_PCI) += pwrctl/ 13 14ifdef CONFIG_PCI 15obj-$(CONFIG_PROC_FS) += proc.o 16obj-$(CONFIG_SYSFS) += pci-sysfs.o slot.o 17obj-$(CONFIG_ACPI) += pci-acpi.o 18obj-$(CONFIG_GENERIC_PCI_IOMAP) += iomap.o 19endif 20 21obj-$(CONFIG_OF) += of.o 22obj-$(CONFIG_PCI_QUIRKS) += quirks.o 23obj-$(CONFIG_HOTPLUG_PCI) += hotplug/ 24obj-$(CONFIG_PCI_ATS) += ats.o 25obj-$(CONFIG_PCI_IOV) += iov.o 26obj-$(CONFIG_PCI_BRIDGE_EMUL) += pci-bridge-emul.o 27obj-$(CONFIG_PCI_LABEL) += pci-label.o 28obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o 29obj-$(CONFIG_PCI_SYSCALL) += syscall.o 30obj-$(CONFIG_PCI_STUB) += pci-stub.o 31obj-$(CONFIG_PCI_PF_STUB) += pci-pf-stub.o 32obj-$(CONFIG_PCI_ECAM) += ecam.o 33obj-$(CONFIG_PCI_P2PDMA) += p2pdma.o 34obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o 35obj-$(CONFIG_VGA_ARB) += vgaarb.o 36obj-$(CONFIG_PCI_DOE) += doe.o 37obj-$(CONFIG_PCI_DYNAMIC_OF_NODES) += of_property.o 38 39# Endpoint library must be initialized before its users 40obj-$(CONFIG_PCI_ENDPOINT) += endpoint/ 41 42obj-y += controller/ 43obj-y += switch/ 44 45subdir-ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG 46