xref: /openbmc/linux/drivers/pci/Makefile (revision e8b553bf)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the PCI bus specific drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
5268a03a4SAlex Chiangobj-y		+= access.o bus.o probe.o remove.o pci.o quirks.o \
6388c8c16SJames Bottomley			pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \
7388c8c16SJames Bottomley			irq.o
81da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS) += proc.o
9268a03a4SAlex Chiangobj-$(CONFIG_SYSFS) += slot.o
101da177e4SLinus Torvalds
11e8b553bfSAndi Kleenobj-$(CONFIG_PCI_LEGACY) += legacy.o
12e8b553bfSAndi KleenCFLAGS_legacy.o += -Wno-deprecated-declarations
13e8b553bfSAndi Kleen
1452f975eaSMilton Miller# Build PCI Express stuff if needed
1552f975eaSMilton Millerobj-$(CONFIG_PCIEPORTBUS) += pcie/
1652f975eaSMilton Miller
171da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += hotplug.o
181da177e4SLinus Torvalds
191da177e4SLinus Torvalds# Build the PCI Hotplug drivers if we were asked to
201da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI) += hotplug/
214105717bSSam Ravnborgifdef CONFIG_HOTPLUG_PCI
224105717bSSam Ravnborgobj-y += hotplug-pci.o
234105717bSSam Ravnborgendif
241da177e4SLinus Torvalds
2503571e11SEric W. Biederman# Build the PCI MSI interrupt support
2603571e11SEric W. Biedermanobj-$(CONFIG_PCI_MSI) += msi.o
2703571e11SEric W. Biederman
2895d77884SEric W. Biederman# Build the Hypertransport interrupt support
2995d77884SEric W. Biedermanobj-$(CONFIG_HT_IRQ) += htirq.o
3095d77884SEric W. Biederman
3110e5247fSKeshavamurthy, Anil S# Build Intel IOMMU support
32ba395927SKeshavamurthy, Anil Sobj-$(CONFIG_DMAR) += dmar.o iova.o intel-iommu.o
3310e5247fSKeshavamurthy, Anil S
34ad3ad3f6SSuresh Siddhaobj-$(CONFIG_INTR_REMAP) += dmar.o intr_remapping.o
35ad3ad3f6SSuresh Siddha
36d1b054daSYu Zhaoobj-$(CONFIG_PCI_IOV) += iov.o
37d1b054daSYu Zhao
381da177e4SLinus Torvalds#
391da177e4SLinus Torvalds# Some architectures use the generic PCI setup functions
401da177e4SLinus Torvalds#
4143a6b760SAndy Whitcroftobj-$(CONFIG_X86) += setup-bus.o
421da177e4SLinus Torvaldsobj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
431da177e4SLinus Torvaldsobj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
441da177e4SLinus Torvaldsobj-$(CONFIG_PARISC) += setup-bus.o
451da177e4SLinus Torvaldsobj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
4603a16b27SKumar Galaobj-$(CONFIG_PPC) += setup-bus.o
471da177e4SLinus Torvaldsobj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
481da177e4SLinus Torvaldsobj-$(CONFIG_X86_VISWS) += setup-irq.o
49b920de1bSDavid Howellsobj-$(CONFIG_MN10300) += setup-bus.o
50fd58e55fSMark Maule
511da177e4SLinus Torvalds#
521da177e4SLinus Torvalds# ACPI Related PCI FW Functions
531da177e4SLinus Torvalds#
541da177e4SLinus Torvaldsobj-$(CONFIG_ACPI)    += pci-acpi.o
551da177e4SLinus Torvalds
561da177e4SLinus Torvalds# Cardbus & CompactPCI use setup-bus
571da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += setup-bus.o
581da177e4SLinus Torvalds
5936e23590SMatthew Wilcoxobj-$(CONFIG_PCI_SYSCALL) += syscall.o
601da177e4SLinus Torvalds
61c70e0d9dSChris Wrightobj-$(CONFIG_PCI_STUB) += pci-stub.o
62c70e0d9dSChris Wright
631da177e4SLinus Torvaldsifeq ($(CONFIG_PCI_DEBUG),y)
641da177e4SLinus TorvaldsEXTRA_CFLAGS += -DDEBUG
651da177e4SLinus Torvaldsendif
66