OpenWrt – Blame information for rev 2
?pathlinks?
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | office | 1 | /* |
| 2 | * Atheros AP9X reference board PCI initialization |
||
| 3 | * |
||
| 4 | * Copyright (C) 2009-2012 Gabor Juhos <juhosg@openwrt.org> |
||
| 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 | |||
| 11 | #ifndef _ATH79_DEV_AP9X_PCI_H |
||
| 12 | #define _ATH79_DEV_AP9X_PCI_H |
||
| 13 | |||
| 14 | struct gpio_led; |
||
| 15 | struct gpio_keys_button; |
||
| 16 | struct ath9k_platform_data; |
||
| 17 | |||
| 18 | #if defined(CONFIG_ATH79_DEV_AP9X_PCI) |
||
| 19 | void ap9x_pci_setup_wmac_led_pin(unsigned wmac, int pin); |
||
| 20 | void ap9x_pci_setup_wmac_gpio(unsigned wmac, u32 mask, u32 val); |
||
| 21 | void ap9x_pci_setup_wmac_leds(unsigned wmac, struct gpio_led *leds, |
||
| 22 | int num_leds); |
||
| 23 | void ap9x_pci_setup_wmac_btns(unsigned wmac, struct gpio_keys_button *btns, |
||
| 24 | unsigned num_btns, unsigned poll_interval); |
||
| 25 | struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac); |
||
| 26 | |||
| 27 | void ap91_pci_init(u8 *cal_data, u8 *mac_addr); |
||
| 28 | void ap91_pci_init_simple(void); |
||
| 29 | void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, |
||
| 30 | u8 *cal_data1, u8 *mac_addr1); |
||
| 31 | |||
| 32 | #else |
||
| 33 | static inline void ap9x_pci_setup_wmac_led_pin(unsigned wmac, int pin) {} |
||
| 34 | static inline void ap9x_pci_setup_wmac_gpio(unsigned wmac, |
||
| 35 | u32 mask, u32 val) {} |
||
| 36 | static inline void ap9x_pci_setup_wmac_leds(unsigned wmac, |
||
| 37 | struct gpio_led *leds, |
||
| 38 | int num_leds) {} |
||
| 39 | static inline void ap9x_pci_setup_wmac_btns(unsigned wmac, |
||
| 40 | struct gpio_keys_button *btns, |
||
| 41 | unsigned num_btns, |
||
| 42 | unsigned poll_interval) {} |
||
| 43 | static inline struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac) |
||
| 44 | { |
||
| 45 | return NULL; |
||
| 46 | } |
||
| 47 | |||
| 48 | static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) {} |
||
| 49 | static inline void ap91_pci_init_simple(void) {} |
||
| 50 | static inline void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, |
||
| 51 | u8 *cal_data1, u8 *mac_addr1) {} |
||
| 52 | #endif |
||
| 53 | |||
| 54 | #endif /* _ATH79_DEV_AP9X_PCI_H */ |
||
| 55 |