blob: 952addc7bacfd985c886962772ac92bd888ccb80 [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 \
8 setup-bus.o vc.o mmap.o setup-irq.o
Matthew Minterbe0ce122017-06-28 15:14:02 -05009
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010010ifdef CONFIG_PCI
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060011obj-$(CONFIG_PROC_FS) += proc.o
12obj-$(CONFIG_SYSFS) += slot.o
13obj-$(CONFIG_OF) += of.o
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010014endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060016obj-$(CONFIG_PCI_QUIRKS) += quirks.o
17obj-$(CONFIG_PCIEPORTBUS) += pcie/
18obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
19obj-$(CONFIG_PCI_MSI) += msi.o
20obj-$(CONFIG_PCI_ATS) += ats.o
21obj-$(CONFIG_PCI_IOV) += iov.o
22obj-$(CONFIG_ACPI) += pci-acpi.o
23obj-$(CONFIG_PCI_LABEL) += pci-label.o
24obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o
25obj-$(CONFIG_PCI_SYSCALL) += syscall.o
26obj-$(CONFIG_PCI_STUB) += pci-stub.o
27obj-$(CONFIG_PCI_ECAM) += ecam.o
Ryan Wilson956a9202010-08-02 21:31:05 -040028obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
29
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060030obj-y += host/
31obj-y += switch/
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010032
33# Endpoint library must be initialized before its users
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060034obj-$(CONFIG_PCI_ENDPOINT) += endpoint/
35
Cyrille Pitchen37dddf12018-01-30 21:56:59 +010036obj-$(CONFIG_PCIE_CADENCE) += cadence/
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010037# pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW
38obj-y += dwc/
Bjorn Helgaas3133e6d2018-03-09 13:09:29 -060039
40ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG