2 * Copyright (C) 2014-2015 Broadcom Corporation
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation version 2.
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
17 #define IPROC_PCIE_MAX_NUM_IRQS 6
21 * @dev: pointer to device data structure
22 * @base: PCIe host controller I/O register base
23 * @sysdata: Per PCI controller data (ARM-specific)
24 * @root_bus: pointer to root bus
25 * @phy: optional PHY device that controls the Serdes
26 * @irqs: interrupt IDs
27 * @map_irq: function callback to map interrupts
33 struct pci_sys_data sysdata
;
35 struct pci_bus
*root_bus
;
37 int irqs
[IPROC_PCIE_MAX_NUM_IRQS
];
38 int (*map_irq
)(const struct pci_dev
*, u8
, u8
);
41 int iproc_pcie_setup(struct iproc_pcie
*pcie
, struct list_head
*res
);
42 int iproc_pcie_remove(struct iproc_pcie
*pcie
);
44 #endif /* _PCIE_IPROC_H */