blob: 941970936840eadc9c14abcb41fd4627907ff8ba [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.
4#
5
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +01006obj-$(CONFIG_PCI) += access.o bus.o probe.o host-bridge.o remove.o pci.o \
James Bottomley388c8c12008-08-03 13:02:12 -05007 pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \
Matthew Minterbe0ce122017-06-28 15:14:02 -05008 irq.o vpd.o setup-bus.o vc.o mmap.o setup-irq.o
9
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010010ifdef CONFIG_PCI
Linus Torvalds1da177e2005-04-16 15:20:36 -070011obj-$(CONFIG_PROC_FS) += proc.o
Alex Chiang268a03a2009-06-17 19:03:57 -060012obj-$(CONFIG_SYSFS) += slot.o
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010013obj-$(CONFIG_OF) += of.o
14endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Rafael J. Wysocki93177a72010-01-02 22:57:24 +010016obj-$(CONFIG_PCI_QUIRKS) += quirks.o
Andi Kleene8b553b2009-07-24 11:41:15 +020017
Milton Miller52f975e2005-12-16 11:08:48 -080018# Build PCI Express stuff if needed
19obj-$(CONFIG_PCIEPORTBUS) += pcie/
20
Linus Torvalds1da177e2005-04-16 15:20:36 -070021# Build the PCI Hotplug drivers if we were asked to
22obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
23
Eric W. Biederman03571e12006-10-04 02:17:00 -070024# Build the PCI MSI interrupt support
25obj-$(CONFIG_PCI_MSI) += msi.o
26
Joerg Roedeldb3c33c2011-09-27 15:57:13 +020027obj-$(CONFIG_PCI_ATS) += ats.o
Yu Zhaod1b054d2009-03-20 11:25:11 +080028obj-$(CONFIG_PCI_IOV) += iov.o
29
Linus Torvalds1da177e2005-04-16 15:20:36 -070030#
Linus Torvalds1da177e2005-04-16 15:20:36 -070031# ACPI Related PCI FW Functions
Narendra_K@Dell.com60589892011-03-02 22:34:17 +053032# ACPI _DSM provided firmware instance and string name
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#
Randy Dunlap8a226e02011-03-29 09:45:57 -070034obj-$(CONFIG_ACPI) += pci-acpi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
Narendra K911e1c92010-07-26 05:56:50 -050036# SMBIOS provided firmware instance and labels
Randy Dunlap8a226e02011-03-29 09:45:57 -070037obj-$(CONFIG_PCI_LABEL) += pci-label.o
Narendra K911e1c92010-07-26 05:56:50 -050038
Andy Shevchenko5823d0892016-06-14 21:29:45 +030039# Intel MID platform PM support
40obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o
41
Matthew Wilcox36e23592007-07-10 10:54:40 -060042obj-$(CONFIG_PCI_SYSCALL) += syscall.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070043
Chris Wrightc70e0d92008-11-25 21:17:13 -080044obj-$(CONFIG_PCI_STUB) += pci-stub.o
45
Jayachandran C35ff9472016-05-10 17:19:51 +020046obj-$(CONFIG_PCI_ECAM) += ecam.o
47
Ryan Wilson956a9202010-08-02 21:31:05 -040048obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
49
matt mooney350a55e2010-09-24 12:17:26 -070050ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
Thomas Petazzoni45361a42013-05-16 17:55:22 +020051
52# PCI host controller drivers
53obj-y += host/
Logan Gunthorpe080b47d2017-03-06 18:30:54 -060054obj-y += switch/
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010055
56obj-$(CONFIG_PCI_ENDPOINT) += endpoint/
57
58# Endpoint library must be initialized before its users
Cyrille Pitchen37dddf12018-01-30 21:56:59 +010059obj-$(CONFIG_PCIE_CADENCE) += cadence/
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +010060# pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW
61obj-y += dwc/