source: trunk/target/linux/ar71xx/files-2.6.39/arch/mips/ar71xx/dev-ap94-pci.h @ 29867

Last change on this file since 29867 was 29867, checked in by juhosg, 5 years ago

ar71xx: move arch specific files to files-2.6.39

  • Property svn:eol-style set to native
File size: 968 bytes
Line 
1/*
2 *  Atheros AP94 reference board PCI initialization
3 *
4 *  Copyright (C) 2009-2010 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_AP94_PCI_H
12#define _AR71XX_DEV_AP94_PCI_H
13
14#if defined(CONFIG_AR71XX_DEV_AP94_PCI)
15void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
16                   u8 *cal_data1, u8 *mac_addr1) __init;
17
18void ap94_pci_setup_wmac_led_pin(unsigned wmac, int pin) __init;
19void ap94_pci_setup_wmac_gpio(unsigned wmac, u32 mask, u32 val) __init;
20
21#else
22static inline void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
23                                 u8 *cal_data1, u8 *mac_addr1) {}
24
25static inline void ap94_pci_setup_wmac_led_pin(unsigned wmac, int pin) {}
26static inline void ap94_pci_setup_wmac_gpio(unsigned wmac,
27                                            u32 mask, u32 val) {}
28#endif
29
30#endif /* _AR71XX_DEV_AP94_PCI_H */
31
Note: See TracBrowser for help on using the repository browser.