OSDN Git Service

PCI: Move enum pci_interrupt_pin to linux/pci.h
authorPaul Burton <paul.burton@imgtec.com>
Tue, 15 Aug 2017 19:02:16 +0000 (12:02 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Aug 2017 20:53:50 +0000 (15:53 -0500)
commitb352baf15b66c5799018104d38f9eb77c7445a34
tree91ac9ff71ff87c3526379c943252a6d85c1adfc6
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
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>
include/linux/pci-epf.h
include/linux/pci.h