1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# Makefile for the PCI bus specific drivers. 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 69de0eec2SCyrille Pitchenobj-$(CONFIG_PCI) += access.o bus.o probe.o host-bridge.o remove.o pci.o \ 7388c8c16SJames Bottomley pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \ 8be0ce12eSMatthew Minter irq.o vpd.o setup-bus.o vc.o mmap.o setup-irq.o 9be0ce12eSMatthew Minter 109de0eec2SCyrille Pitchenifdef CONFIG_PCI 111da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS) += proc.o 12268a03a4SAlex Chiangobj-$(CONFIG_SYSFS) += slot.o 139de0eec2SCyrille Pitchenobj-$(CONFIG_OF) += of.o 149de0eec2SCyrille Pitchenendif 151da177e4SLinus Torvalds 1693177a74SRafael J. Wysockiobj-$(CONFIG_PCI_QUIRKS) += quirks.o 17e8b553bfSAndi Kleen 1852f975eaSMilton Miller# Build PCI Express stuff if needed 1952f975eaSMilton Millerobj-$(CONFIG_PCIEPORTBUS) += pcie/ 2052f975eaSMilton Miller 211da177e4SLinus Torvalds# Build the PCI Hotplug drivers if we were asked to 221da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI) += hotplug/ 231da177e4SLinus Torvalds 2403571e11SEric W. Biederman# Build the PCI MSI interrupt support 2503571e11SEric W. Biedermanobj-$(CONFIG_PCI_MSI) += msi.o 2603571e11SEric W. Biederman 27db3c33c6SJoerg Roedelobj-$(CONFIG_PCI_ATS) += ats.o 28d1b054daSYu Zhaoobj-$(CONFIG_PCI_IOV) += iov.o 29d1b054daSYu Zhao 301da177e4SLinus Torvalds# 311da177e4SLinus Torvalds# ACPI Related PCI FW Functions 326058989bSNarendra_K@Dell.com# ACPI _DSM provided firmware instance and string name 331da177e4SLinus Torvalds# 348a226e00SRandy Dunlapobj-$(CONFIG_ACPI) += pci-acpi.o 351da177e4SLinus Torvalds 36911e1c9bSNarendra K# SMBIOS provided firmware instance and labels 378a226e00SRandy Dunlapobj-$(CONFIG_PCI_LABEL) += pci-label.o 38911e1c9bSNarendra K 395823d089SAndy Shevchenko# Intel MID platform PM support 405823d089SAndy Shevchenkoobj-$(CONFIG_X86_INTEL_MID) += pci-mid.o 415823d089SAndy Shevchenko 4236e23590SMatthew Wilcoxobj-$(CONFIG_PCI_SYSCALL) += syscall.o 431da177e4SLinus Torvalds 44c70e0d9dSChris Wrightobj-$(CONFIG_PCI_STUB) += pci-stub.o 45c70e0d9dSChris Wright 4635ff9477SJayachandran Cobj-$(CONFIG_PCI_ECAM) += ecam.o 4735ff9477SJayachandran C 48956a9202SRyan Wilsonobj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o 49956a9202SRyan Wilson 50350a55e9Smatt mooneyccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG 5145361a4fSThomas Petazzoni 5245361a4fSThomas Petazzoni# PCI host controller drivers 5345361a4fSThomas Petazzoniobj-y += host/ 54080b47deSLogan Gunthorpeobj-y += switch/ 559de0eec2SCyrille Pitchen 569de0eec2SCyrille Pitchenobj-$(CONFIG_PCI_ENDPOINT) += endpoint/ 579de0eec2SCyrille Pitchen 589de0eec2SCyrille Pitchen# Endpoint library must be initialized before its users 599de0eec2SCyrille Pitchen# pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW 609de0eec2SCyrille Pitchenobj-y += dwc/ 61