summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/ethtool.h
diff options
context:
space:
mode:
authorBen Hutchings2014-02-12 23:14:07 +0100
committerDavid S. Miller2014-02-12 23:33:02 +0100
commit02d59f3fdb6a5d77a12549482811d404842e2c95 (patch)
tree9f208245cf41f06071f797ca841b9c777b3ab444 /include/uapi/linux/ethtool.h
parentethtool: Expand documentation of struct ethtool_drvinfo (diff)
downloadkernel-qcow2-linux-02d59f3fdb6a5d77a12549482811d404842e2c95.tar.gz
kernel-qcow2-linux-02d59f3fdb6a5d77a12549482811d404842e2c95.tar.xz
kernel-qcow2-linux-02d59f3fdb6a5d77a12549482811d404842e2c95.zip
ethtool: Expand documentation of struct ethtool_wol
Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/ethtool.h')
-rw-r--r--include/uapi/linux/ethtool.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
index cc523cb53b07..15a42de87fec 100644
--- a/include/uapi/linux/ethtool.h
+++ b/include/uapi/linux/ethtool.h
@@ -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 */