blob: d62c4ac4ae1b3553eec9c582030ebb0b2fcae788 [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 \
Bjorn Helgaascbc40d52020-12-03 12:51:08 -06008 setup-bus.o vc.o mmap.o setup-irq.o msi.o
Matthew Minterbe0ce122017-06-28 15:14:02 -05009
Bjorn Helgaasb7da3d42019-11-06 16:13:43 -060010obj-$(CONFIG_PCI) += pcie/
11
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010012ifdef CONFIG_PCI
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060013obj-$(CONFIG_PROC_FS) += proc.o
14obj-$(CONFIG_SYSFS) += slot.o
Sinan Kaya5d32a662018-12-19 22:46:56 +000015obj-$(CONFIG_ACPI) += pci-acpi.o
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010016endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Kishon Vijay Abraham I40e5d612019-03-25 15:09:37 +053018obj-$(CONFIG_OF) += of.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060019obj-$(CONFIG_PCI_QUIRKS) += quirks.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060020obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060021obj-$(CONFIG_PCI_ATS) += ats.o
22obj-$(CONFIG_PCI_IOV) += iov.o
Thomas Petazzoni23a5fba2018-10-18 17:37:16 +020023obj-$(CONFIG_PCI_BRIDGE_EMUL) += pci-bridge-emul.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060024obj-$(CONFIG_PCI_LABEL) += pci-label.o
25obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o
26obj-$(CONFIG_PCI_SYSCALL) += syscall.o
27obj-$(CONFIG_PCI_STUB) += pci-stub.o
Alexander Duycka8ccf8a2018-04-24 16:47:16 -050028obj-$(CONFIG_PCI_PF_STUB) += pci-pf-stub.o
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060029obj-$(CONFIG_PCI_ECAM) += ecam.o
Logan Gunthorpe52916982018-10-04 15:27:35 -060030obj-$(CONFIG_PCI_P2PDMA) += p2pdma.o
Ryan Wilson956a9202010-08-02 21:31:05 -040031obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
32
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010033# Endpoint library must be initialized before its users
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060034obj-$(CONFIG_PCI_ENDPOINT) += endpoint/
35
Alan Douglas68bb22e2018-06-22 17:17:17 +010036obj-y += controller/
37obj-y += switch/
38
Junhao Hee8e9aab2021-02-04 19:30:15 +080039subdir-ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG