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>
This commit is contained in:
@@ -16,6 +16,16 @@ struct pnv_phb {
|
||||
void __iomem *regs;
|
||||
spinlock_t lock;
|
||||
|
||||
#ifdef CONFIG_PCI_MSI
|
||||
unsigned long *msi_map;
|
||||
unsigned int msi_base;
|
||||
unsigned int msi_count;
|
||||
unsigned int msi_next;
|
||||
unsigned int msi32_support;
|
||||
#endif
|
||||
int (*msi_setup)(struct pnv_phb *phb, struct pci_dev *dev,
|
||||
unsigned int hwirq, unsigned int is_64,
|
||||
struct msi_msg *msg);
|
||||
void (*dma_dev_setup)(struct pnv_phb *phb, struct pci_dev *pdev);
|
||||
void (*fixup_phb)(struct pci_controller *hose);
|
||||
u32 (*bdfn_to_pe)(struct pnv_phb *phb, struct pci_bus *bus, u32 devfn);
|
||||
|
Reference in New Issue
Block a user