]>
Commit | Line | Data |
---|---|---|
4ff40d5a RB |
1 | /* |
2 | * Atheros 724x PCI support | |
3 | * | |
4 | * Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com> | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License version 2 as published | |
8 | * by the Free Software Foundation. | |
9 | */ | |
10 | ||
d624bd3c GJ |
11 | #ifndef _ATH79_PCI_H |
12 | #define _ATH79_PCI_H | |
4ff40d5a | 13 | |
d22ce25f GJ |
14 | struct ath79_pci_irq { |
15 | u8 slot; | |
16 | u8 pin; | |
17 | int irq; | |
18 | }; | |
19 | ||
6335aef5 | 20 | #ifdef CONFIG_PCI |
d22ce25f | 21 | void ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map); |
a68ad4d8 | 22 | void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev)); |
6335aef5 GJ |
23 | int ath79_register_pci(void); |
24 | #else | |
a68ad4d8 | 25 | static inline void |
d22ce25f GJ |
26 | ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map) {} |
27 | static inline void | |
a68ad4d8 | 28 | ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *)) {} |
6335aef5 GJ |
29 | static inline int ath79_register_pci(void) { return 0; } |
30 | #endif | |
31 | ||
d624bd3c | 32 | #endif /* _ATH79_PCI_H */ |