blob: 4a7f11d8f43215af8c10f87f8d08642eac28a339 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the PCI bus specific drivers.
3#
4
Alex Chiang268a03a2009-06-17 19:03:57 -06005obj-y += access.o bus.o probe.o remove.o pci.o quirks.o \
James Bottomley388c8c12008-08-03 13:02:12 -05006 pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \
7 irq.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07008obj-$(CONFIG_PROC_FS) += proc.o
Alex Chiang268a03a2009-06-17 19:03:57 -06009obj-$(CONFIG_SYSFS) += slot.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
Andi Kleene8b553b2009-07-24 11:41:15 +020011obj-$(CONFIG_PCI_LEGACY) += legacy.o
12CFLAGS_legacy.o += -Wno-deprecated-declarations
13
Milton Miller52f975e2005-12-16 11:08:48 -080014# Build PCI Express stuff if needed
15obj-$(CONFIG_PCIEPORTBUS) += pcie/
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017obj-$(CONFIG_HOTPLUG) += hotplug.o
18
19# Build the PCI Hotplug drivers if we were asked to
20obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
Sam Ravnborg41057172008-02-02 22:32:23 +010021ifdef CONFIG_HOTPLUG_PCI
22obj-y += hotplug-pci.o
23endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Eric W. Biederman03571e12006-10-04 02:17:00 -070025# Build the PCI MSI interrupt support
26obj-$(CONFIG_PCI_MSI) += msi.o
27
Eric W. Biederman95d77882006-10-04 02:17:01 -070028# Build the Hypertransport interrupt support
29obj-$(CONFIG_HT_IRQ) += htirq.o
30
Keshavamurthy, Anil S10e52472007-10-21 16:41:41 -070031# Build Intel IOMMU support
Keshavamurthy, Anil Sba395922007-10-21 16:41:49 -070032obj-$(CONFIG_DMAR) += dmar.o iova.o intel-iommu.o
Keshavamurthy, Anil S10e52472007-10-21 16:41:41 -070033
Suresh Siddhaad3ad3f2008-07-10 11:16:40 -070034obj-$(CONFIG_INTR_REMAP) += dmar.o intr_remapping.o
35
Yu Zhaod1b054d2009-03-20 11:25:11 +080036obj-$(CONFIG_PCI_IOV) += iov.o
37
Linus Torvalds1da177e2005-04-16 15:20:36 -070038#
39# Some architectures use the generic PCI setup functions
40#
Andy Whitcroft43a6b762005-06-20 14:29:25 -070041obj-$(CONFIG_X86) += setup-bus.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070042obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
43obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
44obj-$(CONFIG_PARISC) += setup-bus.o
45obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
Kumar Gala03a16b22008-01-23 23:47:39 -060046obj-$(CONFIG_PPC) += setup-bus.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070047obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
48obj-$(CONFIG_X86_VISWS) += setup-irq.o
David Howellsb920de12008-02-08 04:19:31 -080049obj-$(CONFIG_MN10300) += setup-bus.o
Mark Maulefd58e552006-04-10 21:17:48 -050050
Linus Torvalds1da177e2005-04-16 15:20:36 -070051#
52# ACPI Related PCI FW Functions
53#
54obj-$(CONFIG_ACPI) += pci-acpi.o
55
56# Cardbus & CompactPCI use setup-bus
57obj-$(CONFIG_HOTPLUG) += setup-bus.o
58
Matthew Wilcox36e23592007-07-10 10:54:40 -060059obj-$(CONFIG_PCI_SYSCALL) += syscall.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
Chris Wrightc70e0d92008-11-25 21:17:13 -080061obj-$(CONFIG_PCI_STUB) += pci-stub.o
62
Linus Torvalds1da177e2005-04-16 15:20:36 -070063ifeq ($(CONFIG_PCI_DEBUG),y)
64EXTRA_CFLAGS += -DDEBUG
65endif