blob: 37be95adf169020b70100b43b65775d09cd0b16d [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for the PCI bus specific drivers.
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -06005obj-$(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 \
Thomas Gleixner288c81c2021-12-06 23:27:47 +01008 setup-bus.o vc.o mmap.o setup-irq.o
Matthew Minterbe0ce122017-06-28 15:14:02 -05009
Thomas Gleixner288c81c2021-12-06 23:27:47 +010010obj-$(CONFIG_PCI) += msi/
Bjorn Helgaasb7da3d42019-11-06 16:13:43 -060011obj-$(CONFIG_PCI) += pcie/
12
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010013ifdef CONFIG_PCI
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060014obj-$(CONFIG_PROC_FS) += proc.o
15obj-$(CONFIG_SYSFS) += slot.o
Sinan Kaya5d32a662018-12-19 22:46:56 +000016obj-$(CONFIG_ACPI) += pci-acpi.o
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010017endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Kishon Vijay Abraham I40e5d612019-03-25 15:09:37 +053019obj-$(CONFIG_OF) += of.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060020obj-$(CONFIG_PCI_QUIRKS) += quirks.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060021obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060022obj-$(CONFIG_PCI_ATS) += ats.o
23obj-$(CONFIG_PCI_IOV) += iov.o
Thomas Petazzoni23a5fba2018-10-18 17:37:16 +020024obj-$(CONFIG_PCI_BRIDGE_EMUL) += pci-bridge-emul.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060025obj-$(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
Alexander Duycka8ccf8a2018-04-24 16:47:16 -050029obj-$(CONFIG_PCI_PF_STUB) += pci-pf-stub.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060030obj-$(CONFIG_PCI_ECAM) += ecam.o
Logan Gunthorpe52916982018-10-04 15:27:35 -060031obj-$(CONFIG_PCI_P2PDMA) += p2pdma.o
Ryan Wilson956a9202010-08-02 21:31:05 -040032obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
33
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010034# Endpoint library must be initialized before its users
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060035obj-$(CONFIG_PCI_ENDPOINT) += endpoint/
36
Alan Douglas68bb22e2018-06-22 17:17:17 +010037obj-y += controller/
38obj-y += switch/
39
Junhao Hee8e9aab2021-02-04 19:30:15 +080040subdir-ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG