patch-2.4.18 linux/drivers/net/au1000_eth.c
Next file: linux/drivers/net/bmac.c
Previous file: linux/drivers/net/arcnet/com90io.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Wed Feb 6 20:27:18 2002
- Orig file:
linux.orig/drivers/net/au1000_eth.c
- Orig date:
Mon Feb 18 20:18:39 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/net/au1000_eth.c linux/drivers/net/au1000_eth.c
@@ -1150,12 +1150,19 @@
/* fixme */
switch(cmd) {
- case SIOCDEVPRIVATE: /* Get the address of the PHY in use. */
+ case SIOCGMIIPHY: /* Get the address of the PHY in use. */
+ case SIOCDEVPRIVATE: /* binary compat, remove in 2.5 */
data[0] = PHY_ADDRESS;
- case SIOCDEVPRIVATE+1: /* Read the specified MII register. */
+
+ case SIOCGMIIREG: /* Read the specified MII register. */
+ case SIOCDEVPRIVATE+1: /* binary compat, remove in 2.5 */
//data[3] = mdio_read(ioaddr, data[0], data[1]);
return 0;
- case SIOCDEVPRIVATE+2: /* Write the specified MII register */
+
+ case SIOCSMIIREG: /* Write the specified MII register */
+ case SIOCDEVPRIVATE+2: /* binary compat, remove in 2.5 */
+ if (!capable(CAP_NET_ADMIN))
+ return -EPERM;
//mdio_write(ioaddr, data[0], data[1], data[2]);
return 0;
default:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)