diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-09-19 13:45:06 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-09-20 02:12:44 -0400 |
commit | c1a2562ac5edcb3965760f4a37368122d85657af (patch) | |
tree | 294311d74c126c18220c897fcaf04cf29effda61 /arch/powerpc/platforms/powernv/pci.h | |
parent | 61305a96fad622ae0f0e78cb06f67ad721d378f9 (diff) |
powerpc/powernv: Implement MSI support for p5ioc2 PCIe
This implements support for MSIs on p5ioc2 PHBs. We only support
MSIs on the PCIe PHBs, not the PCI-X ones as the later hasn't been
properly verified in HW.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/powernv/pci.h')
-rw-r--r-- | arch/powerpc/platforms/powernv/pci.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/pci.h b/arch/powerpc/platforms/powernv/pci.h index 6730a10d7369..d4dbc4950936 100644 --- a/arch/powerpc/platforms/powernv/pci.h +++ b/arch/powerpc/platforms/powernv/pci.h | |||
@@ -16,6 +16,16 @@ struct pnv_phb { | |||
16 | void __iomem *regs; | 16 | void __iomem *regs; |
17 | spinlock_t lock; | 17 | spinlock_t lock; |
18 | 18 | ||
19 | #ifdef CONFIG_PCI_MSI | ||
20 | unsigned long *msi_map; | ||
21 | unsigned int msi_base; | ||
22 | unsigned int msi_count; | ||
23 | unsigned int msi_next; | ||
24 | unsigned int msi32_support; | ||
25 | #endif | ||
26 | int (*msi_setup)(struct pnv_phb *phb, struct pci_dev *dev, | ||
27 | unsigned int hwirq, unsigned int is_64, | ||
28 | struct msi_msg *msg); | ||
19 | void (*dma_dev_setup)(struct pnv_phb *phb, struct pci_dev *pdev); | 29 | void (*dma_dev_setup)(struct pnv_phb *phb, struct pci_dev *pdev); |
20 | void (*fixup_phb)(struct pci_controller *hose); | 30 | void (*fixup_phb)(struct pci_controller *hose); |
21 | u32 (*bdfn_to_pe)(struct pnv_phb *phb, struct pci_bus *bus, u32 devfn); | 31 | u32 (*bdfn_to_pe)(struct pnv_phb *phb, struct pci_bus *bus, u32 devfn); |