diff options
| author | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:10:21 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@athlon.transmeta.com> | 2002-02-04 20:10:21 -0800 |
| commit | 0b9ded43ee424791d9283cee2a33dcb4a97da57d (patch) | |
| tree | f40d8aa1e4c0d28d8ab4db295403c50b322dce46 /include/linux | |
| parent | a45eec0736717ff951f93b4a30ed605a8d95a3d4 (diff) | |
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
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ethtool.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 */ |
