aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/controller/mobiveil/pcie-mobiveil.h
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2020-02-13 12:06:36 +0800
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-02-21 11:53:22 +0000
commited620e96541f3248ad7cfe069f98d43177ae0435 (patch)
tree583be3a016a826584955a0544514098d5407f85d /drivers/pci/controller/mobiveil/pcie-mobiveil.h
parentPCI: mobiveil: Modularize the Mobiveil PCIe Host Bridge IP driver (diff)
downloadwireguard-linux-ed620e96541f3248ad7cfe069f98d43177ae0435.tar.xz
wireguard-linux-ed620e96541f3248ad7cfe069f98d43177ae0435.zip
PCI: mobiveil: Add callback function for interrupt initialization
The Mobiveil GPEX internal MSI/INTx controller is not implemented in all platforms in which the Mobiveil GPEX is integrated. Allow platforms to implement their specific interrupt initialization. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Andrew Murray <amurray@thegoodpenguin.co.uk>
Diffstat (limited to 'drivers/pci/controller/mobiveil/pcie-mobiveil.h')
-rw-r--r--drivers/pci/controller/mobiveil/pcie-mobiveil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pci/controller/mobiveil/pcie-mobiveil.h b/drivers/pci/controller/mobiveil/pcie-mobiveil.h
index 98ad7227b022..1f7d9da76542 100644
--- a/drivers/pci/controller/mobiveil/pcie-mobiveil.h
+++ b/drivers/pci/controller/mobiveil/pcie-mobiveil.h
@@ -130,10 +130,17 @@ struct mobiveil_msi { /* MSI information */
DECLARE_BITMAP(msi_irq_in_use, PCI_NUM_MSI);
};
+struct mobiveil_pcie;
+
+struct mobiveil_rp_ops {
+ int (*interrupt_init)(struct mobiveil_pcie *pcie);
+};
+
struct mobiveil_root_port {
char root_bus_nr;
void __iomem *config_axi_slave_base; /* endpoint config base */
struct resource *ob_io_res;
+ struct mobiveil_rp_ops *ops;
int irq;
raw_spinlock_t intx_mask_lock;
struct irq_domain *intx_domain;