diff options
| author | Ben Hutchings <ben@decadent.org.uk> | 2014-02-12 17:14:13 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-02-12 17:33:02 -0500 |
| commit | 09fb8bb068c86ff6b79dd7d4cb8f706bedf86d73 (patch) | |
| tree | bc64c0aefb0aa8fdca2ec67c442fd333b5ae6bf7 /include/uapi/linux | |
| parent | 02d59f3fdb6a5d77a12549482811d404842e2c95 (diff) | |
ethtool: Expand documentation of struct ethtool_regs
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/ethtool.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 15a42de87fec..441bd316b850 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
| @@ -209,11 +209,25 @@ struct ethtool_value { | |||
| 209 | __u32 data; | 209 | __u32 data; |
| 210 | }; | 210 | }; |
| 211 | 211 | ||
| 212 | /* for passing big chunks of data */ | 212 | /** |
| 213 | * struct ethtool_regs - hardware register dump | ||
| 214 | * @cmd: Command number = %ETHTOOL_GREGS | ||
| 215 | * @version: Dump format version. This is driver-specific and may | ||
| 216 | * distinguish different chips/revisions. Drivers must use new | ||
| 217 | * version numbers whenever the dump format changes in an | ||
| 218 | * incompatible way. | ||
| 219 | * @len: On entry, the real length of @data. On return, the number of | ||
| 220 | * bytes used. | ||
| 221 | * @data: Buffer for the register dump | ||
| 222 | * | ||
| 223 | * Users should use %ETHTOOL_GDRVINFO to find the maximum length of | ||
| 224 | * a register dump for the interface. They must allocate the buffer | ||
| 225 | * immediately following this structure. | ||
| 226 | */ | ||
| 213 | struct ethtool_regs { | 227 | struct ethtool_regs { |
| 214 | __u32 cmd; | 228 | __u32 cmd; |
| 215 | __u32 version; /* driver-specific, indicates different chips/revs */ | 229 | __u32 version; |
| 216 | __u32 len; /* bytes */ | 230 | __u32 len; |
| 217 | __u8 data[0]; | 231 | __u8 data[0]; |
| 218 | }; | 232 | }; |
| 219 | 233 | ||
