2 * Atheros AR71xx SoC device definitions
4 * Copyright (C) 2008-2012 Gabor Juhos <juhosg@openwrt.org>
5 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published
9 * by the Free Software Foundation.
12 #ifndef _ATH79_DEV_ETH_H
13 #define _ATH79_DEV_ETH_H
15 #include <asm/mach-ath79/ag71xx_platform.h>
17 struct platform_device
;
19 extern unsigned char ath79_mac_base
[] __initdata
;
20 void ath79_parse_mac_addr(char *mac_str
);
21 void ath79_init_mac(unsigned char *dst
, const unsigned char *src
,
23 void ath79_init_local_mac(unsigned char *dst
, const unsigned char *src
);
25 struct ath79_eth_pll_data
{
31 extern struct ath79_eth_pll_data ath79_eth0_pll_data
;
32 extern struct ath79_eth_pll_data ath79_eth1_pll_data
;
34 extern struct ag71xx_platform_data ath79_eth0_data
;
35 extern struct ag71xx_platform_data ath79_eth1_data
;
36 extern struct platform_device ath79_eth0_device
;
37 extern struct platform_device ath79_eth1_device
;
38 void ath79_register_eth(unsigned int id
);
40 extern struct ag71xx_switch_platform_data ath79_switch_data
;
42 extern struct platform_device ath79_mdio0_device
;
43 extern struct platform_device ath79_mdio1_device
;
44 void ath79_register_mdio(unsigned int id
, u32 phy_mask
);
46 #endif /* _ATH79_DEV_ETH_H */