Skip to content

Commit

Permalink
ethtool: Expand documentation of struct ethtool_wol
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
bwhacks authored and davem330 committed Feb 12, 2014
1 parent daba1b6 commit 02d59f3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions include/uapi/linux/ethtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,21 @@ struct ethtool_drvinfo {
};

#define SOPASS_MAX 6
/* wake-on-lan settings */

/**
* struct ethtool_wolinfo - Wake-On-Lan configuration
* @cmd: Command number = %ETHTOOL_GWOL or %ETHTOOL_SWOL
* @supported: Bitmask of %WAKE_* flags for supported Wake-On-Lan modes.
* Read-only.
* @wolopts: Bitmask of %WAKE_* flags for enabled Wake-On-Lan modes.
* @sopass: SecureOn(tm) password; meaningful only if %WAKE_MAGICSECURE
* is set in @wolopts.
*/
struct ethtool_wolinfo {
__u32 cmd;
__u32 supported;
__u32 wolopts;
__u8 sopass[SOPASS_MAX]; /* SecureOn(tm) password */
__u8 sopass[SOPASS_MAX];
};

/* for passing single values */
Expand Down

0 comments on commit 02d59f3

Please sign in to comment.