Date:2010-07-30 11:59:13 (13 years 7 months ago)
Author:acoul
Commit:8f75cb6fa25e6b4120e7f85958533fc3a70a8de0
Message:[atheros] add missing bits & bytes from r22412

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22416 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: target/linux/atheros/patches-2.6.32/110-ar2313_ethernet.patch (4 diffs)
target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch (4 diffs)
target/linux/atheros/patches-2.6.34/110-ar2313_ethernet.patch (4 diffs)
target/linux/atheros/patches-2.6.35/110-ar2313_ethernet.patch (4 diffs)

Change Details

target/linux/atheros/patches-2.6.32/110-ar2313_ethernet.patch
2525 obj-$(CONFIG_DECLANCE) += declance.o
2626--- /dev/null
2727+++ b/drivers/net/ar231x.c
28@@ -0,0 +1,1266 @@
28@@ -0,0 +1,1278 @@
2929+/*
3030+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
3131+ *
...... 
170170+static void rx_tasklet_func(unsigned long data);
171171+static void rx_tasklet_cleanup(struct net_device *dev);
172172+static void ar231x_multicast_list(struct net_device *dev);
173+static void ar231x_tx_timeout(struct net_device *dev);
173174+
174175+static int ar231x_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum);
175176+static int ar231x_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, u16 value);
...... 
190191+ .ndo_change_mtu = eth_change_mtu,
191192+ .ndo_validate_addr = eth_validate_addr,
192193+ .ndo_set_mac_address = eth_mac_addr,
194+ .ndo_tx_timeout = ar231x_tx_timeout,
193195+};
194196+
195197+int __init ar231x_probe(struct platform_device *pdev)
...... 
10391041+ return 0;
10401042+}
10411043+
1044+static void ar231x_tx_timeout(struct net_device *dev)
1045+{
1046+ struct ar231x_private *sp = netdev_priv(dev);
1047+ unsigned long flags;
1048+
1049+ spin_lock_irqsave(&sp->lock, flags);
1050+ ar231x_restart(dev);
1051+ spin_unlock_irqrestore(&sp->lock, flags);
1052+}
1053+
10421054+static void ar231x_halt(struct net_device *dev)
10431055+{
10441056+ struct ar231x_private *sp = netdev_priv(dev);
target/linux/atheros/patches-2.6.33/110-ar2313_ethernet.patch
2525 obj-$(CONFIG_DECLANCE) += declance.o
2626--- /dev/null
2727+++ b/drivers/net/ar231x.c
28@@ -0,0 +1,1266 @@
28@@ -0,0 +1,1278 @@
2929+/*
3030+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
3131+ *
...... 
170170+static void rx_tasklet_func(unsigned long data);
171171+static void rx_tasklet_cleanup(struct net_device *dev);
172172+static void ar231x_multicast_list(struct net_device *dev);
173+static void ar231x_tx_timeout(struct net_device *dev);
173174+
174175+static int ar231x_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum);
175176+static int ar231x_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, u16 value);
...... 
190191+ .ndo_change_mtu = eth_change_mtu,
191192+ .ndo_validate_addr = eth_validate_addr,
192193+ .ndo_set_mac_address = eth_mac_addr,
194+ .ndo_tx_timeout = ar231x_tx_timeout,
193195+};
194196+
195197+int __init ar231x_probe(struct platform_device *pdev)
...... 
10391041+ return 0;
10401042+}
10411043+
1044+static void ar231x_tx_timeout(struct net_device *dev)
1045+{
1046+ struct ar231x_private *sp = netdev_priv(dev);
1047+ unsigned long flags;
1048+
1049+ spin_lock_irqsave(&sp->lock, flags);
1050+ ar231x_restart(dev);
1051+ spin_unlock_irqrestore(&sp->lock, flags);
1052+}
1053+
10421054+static void ar231x_halt(struct net_device *dev)
10431055+{
10441056+ struct ar231x_private *sp = netdev_priv(dev);
target/linux/atheros/patches-2.6.34/110-ar2313_ethernet.patch
2525 obj-$(CONFIG_DECLANCE) += declance.o
2626--- /dev/null
2727+++ b/drivers/net/ar231x.c
28@@ -0,0 +1,1266 @@
28@@ -0,0 +1,1278 @@
2929+/*
3030+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
3131+ *
...... 
170170+static void rx_tasklet_func(unsigned long data);
171171+static void rx_tasklet_cleanup(struct net_device *dev);
172172+static void ar231x_multicast_list(struct net_device *dev);
173+static void ar231x_tx_timeout(struct net_device *dev);
173174+
174175+static int ar231x_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum);
175176+static int ar231x_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, u16 value);
...... 
190191+ .ndo_change_mtu = eth_change_mtu,
191192+ .ndo_validate_addr = eth_validate_addr,
192193+ .ndo_set_mac_address = eth_mac_addr,
194+ .ndo_tx_timeout = ar231x_tx_timeout,
193195+};
194196+
195197+int __init ar231x_probe(struct platform_device *pdev)
...... 
10391041+ return 0;
10401042+}
10411043+
1044+static void ar231x_tx_timeout(struct net_device *dev)
1045+{
1046+ struct ar231x_private *sp = netdev_priv(dev);
1047+ unsigned long flags;
1048+
1049+ spin_lock_irqsave(&sp->lock, flags);
1050+ ar231x_restart(dev);
1051+ spin_unlock_irqrestore(&sp->lock, flags);
1052+}
1053+
10421054+static void ar231x_halt(struct net_device *dev)
10431055+{
10441056+ struct ar231x_private *sp = netdev_priv(dev);
target/linux/atheros/patches-2.6.35/110-ar2313_ethernet.patch
2525 obj-$(CONFIG_DECLANCE) += declance.o
2626--- /dev/null
2727+++ b/drivers/net/ar231x.c
28@@ -0,0 +1,1266 @@
28@@ -0,0 +1,1278 @@
2929+/*
3030+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
3131+ *
...... 
170170+static void rx_tasklet_func(unsigned long data);
171171+static void rx_tasklet_cleanup(struct net_device *dev);
172172+static void ar231x_multicast_list(struct net_device *dev);
173+static void ar231x_tx_timeout(struct net_device *dev);
173174+
174175+static int ar231x_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum);
175176+static int ar231x_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, u16 value);
...... 
190191+ .ndo_change_mtu = eth_change_mtu,
191192+ .ndo_validate_addr = eth_validate_addr,
192193+ .ndo_set_mac_address = eth_mac_addr,
194+ .ndo_tx_timeout = ar231x_tx_timeout,
193195+};
194196+
195197+int __init ar231x_probe(struct platform_device *pdev)
...... 
10391041+ return 0;
10401042+}
10411043+
1044+static void ar231x_tx_timeout(struct net_device *dev)
1045+{
1046+ struct ar231x_private *sp = netdev_priv(dev);
1047+ unsigned long flags;
1048+
1049+ spin_lock_irqsave(&sp->lock, flags);
1050+ ar231x_restart(dev);
1051+ spin_unlock_irqrestore(&sp->lock, flags);
1052+}
1053+
10421054+static void ar231x_halt(struct net_device *dev)
10431055+{
10441056+ struct ar231x_private *sp = netdev_priv(dev);

Archive Download the corresponding diff file



interactive