summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorMatthew Minter <matt@masarand.com>2017-06-28 15:14:02 -0500
committerBjorn Helgaas <bhelgaas@google.com>2017-07-02 16:14:28 -0500
commit3aa8a41e0bf5565946082d23ae589c1a8559494a (patch)
treeb60a60911aa0975601ce5d21006c688bf6453be9 /include/linux/pci.h
parentbe0ce12e4a2be5b5531a2afcfcb3af397d3539fb (diff)
downloadop-kernel-dev-3aa8a41e0bf5565946082d23ae589c1a8559494a.zip
op-kernel-dev-3aa8a41e0bf5565946082d23ae589c1a8559494a.tar.gz
PCI: Add IRQ mapping function pointers to pci_host_bridge struct
In order to defer IRQ assignment arches must be able to register functions to map and swizzle interrupts. These registered functions are stored in the pci_host_bridge struct. Signed-off-by: Matthew Minter <matt@masarand.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 9022b54..3c5d8b0 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -432,6 +432,8 @@ struct pci_host_bridge {
void *sysdata;
int busnr;
struct list_head windows; /* resource_entry */
+ u8 (*swizzle_irq)(struct pci_dev *, u8 *); /* platform IRQ swizzler */
+ int (*map_irq)(const struct pci_dev *, u8, u8);
void (*release_fn)(struct pci_host_bridge *);
void *release_data;
struct msi_controller *msi;
OpenPOWER on IntegriCloud