1#
2# Makefile for the PCI bus specific drivers.
3#
4
5obj-y		+= access.o bus.o probe.o remove.o pci.o \
6			pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \
7			irq.o vpd.o
8obj-$(CONFIG_PROC_FS) += proc.o
9obj-$(CONFIG_SYSFS) += slot.o
10
11obj-$(CONFIG_PCI_QUIRKS) += quirks.o
12
13# Build PCI Express stuff if needed
14obj-$(CONFIG_PCIEPORTBUS) += pcie/
15
16obj-$(CONFIG_PCI_IOAPIC) += ioapic.o
17
18obj-$(CONFIG_HOTPLUG) += hotplug.o
19
20# Build the PCI Hotplug drivers if we were asked to
21obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
22ifdef CONFIG_HOTPLUG_PCI
23obj-y += hotplug-pci.o
24endif
25
26# Build the PCI MSI interrupt support
27obj-$(CONFIG_PCI_MSI) += msi.o
28
29# Build the Hypertransport interrupt support
30obj-$(CONFIG_HT_IRQ) += htirq.o
31
32obj-$(CONFIG_PCI_ATS) += ats.o
33obj-$(CONFIG_PCI_IOV) += iov.o
34
35#
36# Some architectures use the generic PCI setup functions
37#
38obj-$(CONFIG_X86) += setup-bus.o
39obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
40obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
41obj-$(CONFIG_UNICORE32) += setup-bus.o setup-irq.o
42obj-$(CONFIG_PARISC) += setup-bus.o
43obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
44obj-$(CONFIG_PPC) += setup-bus.o
45obj-$(CONFIG_FRV) += setup-bus.o
46obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
47obj-$(CONFIG_X86_VISWS) += setup-irq.o
48obj-$(CONFIG_MN10300) += setup-bus.o
49obj-$(CONFIG_MICROBLAZE) += setup-bus.o
50obj-$(CONFIG_TILE) += setup-bus.o setup-irq.o
51obj-$(CONFIG_SPARC_LEON) += setup-bus.o setup-irq.o
52
53#
54# ACPI Related PCI FW Functions
55# ACPI _DSM provided firmware instance and string name
56#
57obj-$(CONFIG_ACPI)    += pci-acpi.o
58
59# SMBIOS provided firmware instance and labels
60obj-$(CONFIG_PCI_LABEL) += pci-label.o
61
62# Cardbus & CompactPCI use setup-bus
63obj-$(CONFIG_HOTPLUG) += setup-bus.o
64
65obj-$(CONFIG_PCI_SYSCALL) += syscall.o
66
67obj-$(CONFIG_PCI_STUB) += pci-stub.o
68
69obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
70
71obj-$(CONFIG_OF) += of.o
72
73ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
74