xref: /openbmc/linux/drivers/pci/Makefile (revision b55ac1b2)
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 \
7b55ac1b2SMatt Carlson			irq.o vpd.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
17204d49a5SBjorn Helgaasobj-$(CONFIG_PCI_IOAPIC) += ioapic.o
18204d49a5SBjorn Helgaas
191da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += hotplug.o
201da177e4SLinus Torvalds
211da177e4SLinus Torvalds# Build the PCI Hotplug drivers if we were asked to
221da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI) += hotplug/
234105717bSSam Ravnborgifdef CONFIG_HOTPLUG_PCI
244105717bSSam Ravnborgobj-y += hotplug-pci.o
254105717bSSam Ravnborgendif
261da177e4SLinus Torvalds
2703571e11SEric W. Biederman# Build the PCI MSI interrupt support
2803571e11SEric W. Biedermanobj-$(CONFIG_PCI_MSI) += msi.o
2903571e11SEric W. Biederman
3095d77884SEric W. Biederman# Build the Hypertransport interrupt support
3195d77884SEric W. Biedermanobj-$(CONFIG_HT_IRQ) += htirq.o
3295d77884SEric W. Biederman
3310e5247fSKeshavamurthy, Anil S# Build Intel IOMMU support
34ba395927SKeshavamurthy, Anil Sobj-$(CONFIG_DMAR) += dmar.o iova.o intel-iommu.o
3510e5247fSKeshavamurthy, Anil S
36ad3ad3f6SSuresh Siddhaobj-$(CONFIG_INTR_REMAP) += dmar.o intr_remapping.o
37ad3ad3f6SSuresh Siddha
38d1b054daSYu Zhaoobj-$(CONFIG_PCI_IOV) += iov.o
39d1b054daSYu Zhao
401da177e4SLinus Torvalds#
411da177e4SLinus Torvalds# Some architectures use the generic PCI setup functions
421da177e4SLinus Torvalds#
4343a6b760SAndy Whitcroftobj-$(CONFIG_X86) += setup-bus.o
441da177e4SLinus Torvaldsobj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
451da177e4SLinus Torvaldsobj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
461da177e4SLinus Torvaldsobj-$(CONFIG_PARISC) += setup-bus.o
471da177e4SLinus Torvaldsobj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
4803a16b27SKumar Galaobj-$(CONFIG_PPC) += setup-bus.o
491da177e4SLinus Torvaldsobj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
501da177e4SLinus Torvaldsobj-$(CONFIG_X86_VISWS) += setup-irq.o
51b920de1bSDavid Howellsobj-$(CONFIG_MN10300) += setup-bus.o
52fd58e55fSMark Maule
531da177e4SLinus Torvalds#
541da177e4SLinus Torvalds# ACPI Related PCI FW Functions
551da177e4SLinus Torvalds#
561da177e4SLinus Torvaldsobj-$(CONFIG_ACPI)    += pci-acpi.o
571da177e4SLinus Torvalds
581da177e4SLinus Torvalds# Cardbus & CompactPCI use setup-bus
591da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += setup-bus.o
601da177e4SLinus Torvalds
6136e23590SMatthew Wilcoxobj-$(CONFIG_PCI_SYSCALL) += syscall.o
621da177e4SLinus Torvalds
63c70e0d9dSChris Wrightobj-$(CONFIG_PCI_STUB) += pci-stub.o
64c70e0d9dSChris Wright
651da177e4SLinus Torvaldsifeq ($(CONFIG_PCI_DEBUG),y)
661da177e4SLinus TorvaldsEXTRA_CFLAGS += -DDEBUG
671da177e4SLinus Torvaldsendif
68