xref: /openbmc/linux/drivers/pci/Makefile (revision 4105717b)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the PCI bus specific drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
51da177e4SLinus Torvaldsobj-y		+= access.o bus.o probe.o remove.o pci.o quirks.o \
6085ae41fSDavid S. Miller			pci-driver.o search.o pci-sysfs.o rom.o setup-res.o
71da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS) += proc.o
81da177e4SLinus Torvalds
952f975eaSMilton Miller# Build PCI Express stuff if needed
1052f975eaSMilton Millerobj-$(CONFIG_PCIEPORTBUS) += pcie/
1152f975eaSMilton Miller
121da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += hotplug.o
131da177e4SLinus Torvalds
141da177e4SLinus Torvalds# Build the PCI Hotplug drivers if we were asked to
151da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI) += hotplug/
164105717bSSam Ravnborgifdef CONFIG_HOTPLUG_PCI
174105717bSSam Ravnborgobj-y += hotplug-pci.o
184105717bSSam Ravnborgendif
191da177e4SLinus Torvalds
2003571e11SEric W. Biederman# Build the PCI MSI interrupt support
2103571e11SEric W. Biedermanobj-$(CONFIG_PCI_MSI) += msi.o
2203571e11SEric W. Biederman
2395d77884SEric W. Biederman# Build the Hypertransport interrupt support
2495d77884SEric W. Biedermanobj-$(CONFIG_HT_IRQ) += htirq.o
2595d77884SEric W. Biederman
2610e5247fSKeshavamurthy, Anil S# Build Intel IOMMU support
27ba395927SKeshavamurthy, Anil Sobj-$(CONFIG_DMAR) += dmar.o iova.o intel-iommu.o
2810e5247fSKeshavamurthy, Anil S
291da177e4SLinus Torvalds#
301da177e4SLinus Torvalds# Some architectures use the generic PCI setup functions
311da177e4SLinus Torvalds#
3243a6b760SAndy Whitcroftobj-$(CONFIG_X86) += setup-bus.o
331da177e4SLinus Torvaldsobj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
341da177e4SLinus Torvaldsobj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
351da177e4SLinus Torvaldsobj-$(CONFIG_PARISC) += setup-bus.o
361da177e4SLinus Torvaldsobj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
371da177e4SLinus Torvaldsobj-$(CONFIG_PPC32) += setup-irq.o
3803a16b27SKumar Galaobj-$(CONFIG_PPC) += setup-bus.o
391da177e4SLinus Torvaldsobj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
401da177e4SLinus Torvaldsobj-$(CONFIG_X86_VISWS) += setup-irq.o
41fd58e55fSMark Maule
421da177e4SLinus Torvalds#
431da177e4SLinus Torvalds# ACPI Related PCI FW Functions
441da177e4SLinus Torvalds#
451da177e4SLinus Torvaldsobj-$(CONFIG_ACPI)    += pci-acpi.o
461da177e4SLinus Torvalds
471da177e4SLinus Torvalds# Cardbus & CompactPCI use setup-bus
481da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += setup-bus.o
491da177e4SLinus Torvalds
5036e23590SMatthew Wilcoxobj-$(CONFIG_PCI_SYSCALL) += syscall.o
511da177e4SLinus Torvalds
521da177e4SLinus Torvaldsifeq ($(CONFIG_PCI_DEBUG),y)
531da177e4SLinus TorvaldsEXTRA_CFLAGS += -DDEBUG
541da177e4SLinus Torvaldsendif
55