Skip to content

Commit 3aa8a41

Browse files
Matthew Minterbjorn-helgaas
authored andcommitted
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>
1 parent be0ce12 commit 3aa8a41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/pci.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ struct pci_host_bridge {
432432
void *sysdata;
433433
int busnr;
434434
struct list_head windows; /* resource_entry */
435+
u8 (*swizzle_irq)(struct pci_dev *, u8 *); /* platform IRQ swizzler */
436+
int (*map_irq)(const struct pci_dev *, u8, u8);
435437
void (*release_fn)(struct pci_host_bridge *);
436438
void *release_data;
437439
struct msi_controller *msi;

0 commit comments

Comments
 (0)