16 #include <linux/pci.h>
43 static const struct ath79_pci_irq ar724x_pci_irq_map[] __initconst = {
56 if (ath79_pci_nr_irqs == 0 ||
57 ath79_pci_irq_map ==
NULL) {
58 if (soc_is_ar71xx()) {
59 ath79_pci_irq_map = ar71xx_pci_irq_map;
60 ath79_pci_nr_irqs =
ARRAY_SIZE(ar71xx_pci_irq_map);
61 }
else if (soc_is_ar724x() ||
64 ath79_pci_irq_map = ar724x_pci_irq_map;
65 ath79_pci_nr_irqs =
ARRAY_SIZE(ar724x_pci_irq_map);
67 pr_crit(
"pci %s: invalid irq map\n",
68 pci_name((
struct pci_dev *) dev));
73 for (i = 0; i < ath79_pci_nr_irqs; i++) {
76 entry = &ath79_pci_irq_map[
i];
77 if (entry->
slot == slot && entry->
pin == pin) {
84 pr_crit(
"pci %s: no irq found for pin %u\n",
85 pci_name((
struct pci_dev *) dev), pin);
87 pr_info(
"pci %s: using irq %d for pin %u\n",
88 pci_name((
struct pci_dev *) dev), irq, pin);
95 if (ath79_pci_plat_dev_init)
96 return ath79_pci_plat_dev_init(dev);
105 ath79_pci_irq_map =
map;
110 ath79_pci_plat_dev_init =
func;
121 if (soc_is_ar9342() || soc_is_ar9344()) {