OSDN Git Service

PCI: Add IRQ mapping function pointers to pci_host_bridge struct
authorMatthew Minter <matt@masarand.com>
Wed, 28 Jun 2017 20:14:02 +0000 (15:14 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 21:14:28 +0000 (16:14 -0500)
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>
include/linux/pci.h

index 9022b54..3c5d8b0 100644 (file)
@@ -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;