projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: setup bc2 mac addresses from the generic network script
[openwrt.git]
/
target
/
linux
/
atheros
/
patches-2.6.37
/
110-ar2313_ethernet.patch
diff --git
a/target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch
b/target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch
index
132fd01
..
428bd47
100644
(file)
--- a/
target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch
+++ b/
target/linux/atheros/patches-2.6.37/110-ar2313_ethernet.patch
@@
-25,7
+25,7
@@
obj-$(CONFIG_DECLANCE) += declance.o
--- /dev/null
+++ b/drivers/net/ar231x.c
obj-$(CONFIG_DECLANCE) += declance.o
--- /dev/null
+++ b/drivers/net/ar231x.c
-@@ -0,0 +1,12
78
@@
+@@ -0,0 +1,12
93
@@
+/*
+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
+ *
+/*
+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
+ *
@@
-182,6
+182,18
@@
+#define ERR(fmt, args...) printk("%s: " fmt, __func__, ##args)
+#endif
+
+#define ERR(fmt, args...) printk("%s: " fmt, __func__, ##args)
+#endif
+
++#ifdef CONFIG_NET_POLL_CONTROLLER
++static void
++ar231x_netpoll(struct net_device *dev)
++{
++ unsigned long flags;
++
++ local_irq_save(flags);
++ ar231x_interrupt(dev->irq, dev);
++ local_irq_restore(flags);
++}
++#endif
++
+static const struct net_device_ops ar231x_ops = {
+ .ndo_open = ar231x_open,
+ .ndo_stop = ar231x_close,
+static const struct net_device_ops ar231x_ops = {
+ .ndo_open = ar231x_open,
+ .ndo_stop = ar231x_close,
@@
-192,6
+204,9
@@
+ .ndo_validate_addr = eth_validate_addr,
+ .ndo_set_mac_address = eth_mac_addr,
+ .ndo_tx_timeout = ar231x_tx_timeout,
+ .ndo_validate_addr = eth_validate_addr,
+ .ndo_set_mac_address = eth_mac_addr,
+ .ndo_tx_timeout = ar231x_tx_timeout,
++#ifdef CONFIG_NET_POLL_CONTROLLER
++ .ndo_poll_controller = ar231x_netpoll,
++#endif
+};
+
+int __init ar231x_probe(struct platform_device *pdev)
+};
+
+int __init ar231x_probe(struct platform_device *pdev)
@@
-1183,7
+1198,7
@@
+ case SIOCGMIIPHY:
+ case SIOCGMIIREG:
+ case SIOCSMIIREG:
+ case SIOCGMIIPHY:
+ case SIOCGMIIREG:
+ case SIOCSMIIREG:
-+ return phy_mii_ioctl(sp->phy_dev,
data
, cmd);
++ return phy_mii_ioctl(sp->phy_dev,
ifr
, cmd);
+
+ default:
+ break;
+
+ default:
+ break;
This page took
0.020468 seconds
and
4
git commands to generate.