[atheros] use stats from net_device structure
[openwrt.git] / target / linux / ixp4xx / patches-2.6.24 / 131-wrt300nv2_mac_plat_info.patch
1 diff -Nur linux-2.6.23/arch/arm/mach-ixp4xx/wrt300nv2-setup.c linux-2.6.23-owrt/arch/arm/mach-ixp4xx/wrt300nv2-setup.c
2 --- linux-2.6.23/arch/arm/mach-ixp4xx/wrt300nv2-setup.c 2007-10-23 19:20:08.000000000 +0200
3 +++ linux-2.6.23-owrt/arch/arm/mach-ixp4xx/wrt300nv2-setup.c 2007-10-23 19:22:19.000000000 +0200
4 @@ -76,9 +76,36 @@
5 .resource = &wrt300nv2_uart_resource,
6 };
7
8 +/* Built-in 10/100 Ethernet MAC interfaces */
9 +static struct eth_plat_info wrt300nv2_plat_eth[] = {
10 + {
11 + .phy = -1,
12 + .rxq = 3,
13 + .txreadyq = 20,
14 + }, {
15 + .phy = 1,
16 + .rxq = 4,
17 + .txreadyq = 21,
18 + }
19 +};
20 +
21 +static struct platform_device wrt300nv2_eth[] = {
22 + {
23 + .name = "ixp4xx_eth",
24 + .id = IXP4XX_ETH_NPEB,
25 + .dev.platform_data = wrt300nv2_plat_eth,
26 + }, {
27 + .name = "ixp4xx_eth",
28 + .id = IXP4XX_ETH_NPEC,
29 + .dev.platform_data = wrt300nv2_plat_eth + 1,
30 + }
31 +};
32 +
33 static struct platform_device *wrt300nv2_devices[] __initdata = {
34 &wrt300nv2_flash,
35 - &wrt300nv2_uart
36 + &wrt300nv2_uart,
37 + &wrt300nv2_eth[0],
38 + &wrt300nv2_eth[1],
39 };
40
41 static void __init wrt300nv2_init(void)
This page took 0.045064 seconds and 5 git commands to generate.