ar71xx: move arch specific files to files-2.6.39
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files-2.6.39 / arch / mips / ar71xx / dev-ap91-pci.h
1 /*
2 * Atheros AP91 reference board PCI initialization
3 *
4 * Copyright (C) 2009 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 _AR71XX_DEV_AP91_PCI_H
12 #define _AR71XX_DEV_AP91_PCI_H
13
14 #include <linux/leds.h>
15
16 #if defined(CONFIG_AR71XX_DEV_AP91_PCI)
17 void ap91_pci_init(u8 *cal_data, u8 *mac_addr) __init;
18 void ap91_pci_setup_wmac_led_pin(int pin) __init;
19 void ap91_pci_setup_wmac_gpio(u32 mask, u32 val) __init;
20 void ap91_pci_setup_wmac_leds(struct gpio_led *leds, int num_leds) __init;
21 #else
22 static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) { }
23 static inline void ap91_pci_setup_wmac_led_pin(int pin) { }
24 static inline void ap91_pci_setup_wmac_gpio(u32 mask, u32 gpio) { }
25 static inline void ap91_pci_setup_wmac_leds(struct gpio_led *leds, int num_leds) { };
26 #endif
27
28 #endif /* _AR71XX_DEV_AP91_PCI_H */
29