summaryrefslogtreecommitdiffstats
path: root/include/linux/pci-epf.h
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2017-08-15 12:02:16 -0700
committerBjorn Helgaas <bhelgaas@google.com>2017-08-15 15:53:50 -0500
commitb352baf15b66c5799018104d38f9eb77c7445a34 (patch)
tree91ac9ff71ff87c3526379c943252a6d85c1adfc6 /include/linux/pci-epf.h
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff)
downloadlinux-b352baf15b66c5799018104d38f9eb77c7445a34.tar.gz
linux-b352baf15b66c5799018104d38f9eb77c7445a34.tar.bz2
linux-b352baf15b66c5799018104d38f9eb77c7445a34.zip
PCI: Move enum pci_interrupt_pin to linux/pci.h
We currently have a definition of enum pci_interrupt_pin in a header specific to PCI endpoints - linux/pci-epf.h. In order to allow for use of this enum from PCI host code in a future commit, move its definition to linux/pci.h & include that from linux/pci-epf.h. Additionally we add a PCI_NUM_INTX macro which indicates the number of PCI INTx interrupts, and will be used alongside enum pci_interrupt_pin in further patches. Signed-off-by: Paul Burton <paul.burton@imgtec.com> [bhelgaas: move enum pci_interrupt_pin outside #ifdef CONFIG_PCI] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci-epf.h')
-rw-r--r--include/linux/pci-epf.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/pci-epf.h b/include/linux/pci-epf.h
index 0d529cb90143..bc8750688348 100644
--- a/include/linux/pci-epf.h
+++ b/include/linux/pci-epf.h
@@ -14,17 +14,10 @@
#include <linux/device.h>
#include <linux/mod_devicetable.h>
+#include <linux/pci.h>
struct pci_epf;
-enum pci_interrupt_pin {
- PCI_INTERRUPT_UNKNOWN,
- PCI_INTERRUPT_INTA,
- PCI_INTERRUPT_INTB,
- PCI_INTERRUPT_INTC,
- PCI_INTERRUPT_INTD,
-};
-
enum pci_barno {
BAR_0,
BAR_1,