From 0b9ded43ee424791d9283cee2a33dcb4a97da57d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Feb 2002 20:10:21 -0800 Subject: v2.4.8.3 -> v2.4.8.4 - Tim Hockin: NatSemi ethernet update - Kurt Garloff: make PS/2 mouse reconnect adjustable like 2.2.x - Daniel Phillips: unlazy use-once - David Miller: undo poll() limit braindamage - me: make return value from do_try_to_free_pages() meaningful --- include/linux/ethtool.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/linux') diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 20b4afb2d1df..8f4f261eebca 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -38,11 +38,22 @@ struct ethtool_drvinfo { u32 regdump_len; /* Amount of data from ETHTOOL_GREGS */ }; +#define SOPASS_MAX 6 +/* wake-on-lan settings */ +struct ethtool_wolinfo { + u32 cmd; + u32 supported; + u32 wolopts; + u8 sopass[SOPASS_MAX]; /* SecureOn(tm) password */ +}; + /* CMDs currently supported */ #define ETHTOOL_GSET 0x00000001 /* Get settings. */ #define ETHTOOL_SSET 0x00000002 /* Set settings, privileged. */ #define ETHTOOL_GDRVINFO 0x00000003 /* Get driver info. */ #define ETHTOOL_GREGS 0x00000004 /* Get NIC registers, privileged. */ +#define ETHTOOL_GWOL 0x00000005 /* Get wake-on-lan options. */ +#define ETHTOOL_SWOL 0x00000006 /* Set wake-on-lan options. */ /* compatibility with older code */ #define SPARC_ETH_GSET ETHTOOL_GSET @@ -109,4 +120,13 @@ struct ethtool_drvinfo { #define AUTONEG_DISABLE 0x00 #define AUTONEG_ENABLE 0x01 +/* Wake-On-Lan options. */ +#define WAKE_PHY (1 << 0) +#define WAKE_UCAST (1 << 1) +#define WAKE_MCAST (1 << 2) +#define WAKE_BCAST (1 << 3) +#define WAKE_ARP (1 << 4) +#define WAKE_MAGIC (1 << 5) +#define WAKE_MAGICSECURE (1 << 6) /* only meaningful if WAKE_MAGIC */ + #endif /* _LINUX_ETHTOOL_H */ -- cgit v1.2.3