Rene Bolldorf | 4ff40d5 | 2011-11-17 14:25:09 +0000 | [diff] [blame] | 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 | |
Gabor Juhos | d624bd3 | 2012-03-14 10:29:26 +0100 | [diff] [blame] | 11 | #ifndef _ATH79_PCI_H |
| 12 | #define _ATH79_PCI_H |
Rene Bolldorf | 4ff40d5 | 2011-11-17 14:25:09 +0000 | [diff] [blame] | 13 | |
Gabor Juhos | d624bd3 | 2012-03-14 10:29:26 +0100 | [diff] [blame] | 14 | struct ar724x_pci_data { |
Rene Bolldorf | 4ff40d5 | 2011-11-17 14:25:09 +0000 | [diff] [blame] | 15 | int irq; |
Rene Bolldorf | 4ff40d5 | 2011-11-17 14:25:09 +0000 | [diff] [blame] | 16 | }; |
| 17 | |
Gabor Juhos | d624bd3 | 2012-03-14 10:29:26 +0100 | [diff] [blame] | 18 | void ar724x_pci_add_data(struct ar724x_pci_data *data, int size); |
Rene Bolldorf | 4ff40d5 | 2011-11-17 14:25:09 +0000 | [diff] [blame] | 19 | |
Gabor Juhos | 6335aef | 2012-03-14 10:29:24 +0100 | [diff] [blame] | 20 | #ifdef CONFIG_PCI |
Gabor Juhos | a68ad4d | 2012-03-14 10:36:09 +0100 | [diff] [blame^] | 21 | void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev)); |
Gabor Juhos | 6335aef | 2012-03-14 10:29:24 +0100 | [diff] [blame] | 22 | int ath79_register_pci(void); |
| 23 | #else |
Gabor Juhos | a68ad4d | 2012-03-14 10:36:09 +0100 | [diff] [blame^] | 24 | static inline void |
| 25 | ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *)) {} |
Gabor Juhos | 6335aef | 2012-03-14 10:29:24 +0100 | [diff] [blame] | 26 | static inline int ath79_register_pci(void) { return 0; } |
| 27 | #endif |
| 28 | |
Gabor Juhos | d624bd3 | 2012-03-14 10:29:26 +0100 | [diff] [blame] | 29 | #endif /* _ATH79_PCI_H */ |