blob: a2a2da7c39e75f56200b641bf1caabe3ba2e1731 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_LINUX_ETHTOOL_H
20#define _UAPI_LINUX_ETHTOOL_H
21#include <linux/types.h>
22#include <linux/if_ether.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct ethtool_cmd {
Tao Baod7db5942015-01-28 10:07:51 -080025 __u32 cmd;
26 __u32 supported;
27 __u32 advertising;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u16 speed;
30 __u8 duplex;
31 __u8 port;
32 __u8 phy_address;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u8 transceiver;
35 __u8 autoneg;
36 __u8 mdio_support;
37 __u32 maxtxpkt;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 maxrxpkt;
40 __u16 speed_hi;
41 __u8 eth_tp_mdix;
42 __u8 eth_tp_mdix_ctrl;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __u32 lp_advertising;
45 __u32 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#define ETH_MDIO_SUPPORTS_C22 1
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define ETH_MDIO_SUPPORTS_C45 2
50#define ETHTOOL_FWVERS_LEN 32
51#define ETHTOOL_BUSINFO_LEN 32
Christopher Ferris05d08e92016-02-04 13:16:38 -080052#define ETHTOOL_EROMVERS_LEN 32
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054struct ethtool_drvinfo {
Tao Baod7db5942015-01-28 10:07:51 -080055 __u32 cmd;
56 char driver[32];
57 char version[32];
Christopher Ferris05d08e92016-02-04 13:16:38 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 char fw_version[ETHTOOL_FWVERS_LEN];
Tao Baod7db5942015-01-28 10:07:51 -080060 char bus_info[ETHTOOL_BUSINFO_LEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -080061 char erom_version[ETHTOOL_EROMVERS_LEN];
Tao Baod7db5942015-01-28 10:07:51 -080062 char reserved2[12];
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080064 __u32 n_priv_flags;
Tao Baod7db5942015-01-28 10:07:51 -080065 __u32 n_stats;
66 __u32 testinfo_len;
67 __u32 eedump_len;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069 __u32 regdump_len;
Ben Cheng655a7c02013-10-16 16:09:24 -070070};
71#define SOPASS_MAX 6
72struct ethtool_wolinfo {
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080074 __u32 cmd;
Tao Baod7db5942015-01-28 10:07:51 -080075 __u32 supported;
76 __u32 wolopts;
77 __u8 sopass[SOPASS_MAX];
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079};
Ben Cheng655a7c02013-10-16 16:09:24 -070080struct ethtool_value {
Tao Baod7db5942015-01-28 10:07:51 -080081 __u32 cmd;
82 __u32 data;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084};
Christopher Ferris82d75042015-01-26 10:57:07 -080085enum tunable_id {
Tao Baod7db5942015-01-28 10:07:51 -080086 ETHTOOL_ID_UNSPEC,
87 ETHTOOL_RX_COPYBREAK,
Christopher Ferris82d75042015-01-26 10:57:07 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080089 ETHTOOL_TX_COPYBREAK,
90 __ETHTOOL_TUNABLE_COUNT,
Christopher Ferris82d75042015-01-26 10:57:07 -080091};
92enum tunable_type_id {
Christopher Ferris05d08e92016-02-04 13:16:38 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 ETHTOOL_TUNABLE_UNSPEC,
95 ETHTOOL_TUNABLE_U8,
Tao Baod7db5942015-01-28 10:07:51 -080096 ETHTOOL_TUNABLE_U16,
97 ETHTOOL_TUNABLE_U32,
Christopher Ferris05d08e92016-02-04 13:16:38 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 ETHTOOL_TUNABLE_U64,
100 ETHTOOL_TUNABLE_STRING,
Tao Baod7db5942015-01-28 10:07:51 -0800101 ETHTOOL_TUNABLE_S8,
102 ETHTOOL_TUNABLE_S16,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 ETHTOOL_TUNABLE_S32,
105 ETHTOOL_TUNABLE_S64,
Christopher Ferris82d75042015-01-26 10:57:07 -0800106};
107struct ethtool_tunable {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u32 cmd;
110 __u32 id;
Tao Baod7db5942015-01-28 10:07:51 -0800111 __u32 type_id;
112 __u32 len;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 void * data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800115};
Ben Cheng655a7c02013-10-16 16:09:24 -0700116struct ethtool_regs {
Tao Baod7db5942015-01-28 10:07:51 -0800117 __u32 cmd;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u32 version;
120 __u32 len;
Tao Baod7db5942015-01-28 10:07:51 -0800121 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700122};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124struct ethtool_eeprom {
Tao Baod7db5942015-01-28 10:07:51 -0800125 __u32 cmd;
Tao Baod7db5942015-01-28 10:07:51 -0800126 __u32 magic;
127 __u32 offset;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u32 len;
130 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700131};
132struct ethtool_eee {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u32 cmd;
135 __u32 supported;
Tao Baod7db5942015-01-28 10:07:51 -0800136 __u32 advertised;
137 __u32 lp_advertised;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u32 eee_active;
140 __u32 eee_enabled;
Tao Baod7db5942015-01-28 10:07:51 -0800141 __u32 tx_lpi_enabled;
142 __u32 tx_lpi_timer;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u32 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700145};
Ben Cheng655a7c02013-10-16 16:09:24 -0700146struct ethtool_modinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800147 __u32 cmd;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 type;
150 __u32 eeprom_len;
Tao Baod7db5942015-01-28 10:07:51 -0800151 __u32 reserved[8];
Ben Cheng655a7c02013-10-16 16:09:24 -0700152};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154struct ethtool_coalesce {
Tao Baod7db5942015-01-28 10:07:51 -0800155 __u32 cmd;
Tao Baod7db5942015-01-28 10:07:51 -0800156 __u32 rx_coalesce_usecs;
157 __u32 rx_max_coalesced_frames;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u32 rx_coalesce_usecs_irq;
160 __u32 rx_max_coalesced_frames_irq;
Tao Baod7db5942015-01-28 10:07:51 -0800161 __u32 tx_coalesce_usecs;
162 __u32 tx_max_coalesced_frames;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 tx_coalesce_usecs_irq;
165 __u32 tx_max_coalesced_frames_irq;
Tao Baod7db5942015-01-28 10:07:51 -0800166 __u32 stats_block_coalesce_usecs;
167 __u32 use_adaptive_rx_coalesce;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u32 use_adaptive_tx_coalesce;
170 __u32 pkt_rate_low;
Tao Baod7db5942015-01-28 10:07:51 -0800171 __u32 rx_coalesce_usecs_low;
172 __u32 rx_max_coalesced_frames_low;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u32 tx_coalesce_usecs_low;
175 __u32 tx_max_coalesced_frames_low;
Tao Baod7db5942015-01-28 10:07:51 -0800176 __u32 pkt_rate_high;
177 __u32 rx_coalesce_usecs_high;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u32 rx_max_coalesced_frames_high;
180 __u32 tx_coalesce_usecs_high;
Tao Baod7db5942015-01-28 10:07:51 -0800181 __u32 tx_max_coalesced_frames_high;
182 __u32 rate_sample_interval;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184};
185struct ethtool_ringparam {
Tao Baod7db5942015-01-28 10:07:51 -0800186 __u32 cmd;
187 __u32 rx_max_pending;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 __u32 rx_mini_max_pending;
190 __u32 rx_jumbo_max_pending;
Tao Baod7db5942015-01-28 10:07:51 -0800191 __u32 tx_max_pending;
192 __u32 rx_pending;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 __u32 rx_mini_pending;
195 __u32 rx_jumbo_pending;
Tao Baod7db5942015-01-28 10:07:51 -0800196 __u32 tx_pending;
Ben Cheng655a7c02013-10-16 16:09:24 -0700197};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199struct ethtool_channels {
Tao Baod7db5942015-01-28 10:07:51 -0800200 __u32 cmd;
Tao Baod7db5942015-01-28 10:07:51 -0800201 __u32 max_rx;
202 __u32 max_tx;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 __u32 max_other;
205 __u32 max_combined;
Tao Baod7db5942015-01-28 10:07:51 -0800206 __u32 rx_count;
207 __u32 tx_count;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 __u32 other_count;
210 __u32 combined_count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700211};
212struct ethtool_pauseparam {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 __u32 cmd;
215 __u32 autoneg;
Tao Baod7db5942015-01-28 10:07:51 -0800216 __u32 rx_pause;
217 __u32 tx_pause;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219};
220#define ETH_GSTRING_LEN 32
Ben Cheng655a7c02013-10-16 16:09:24 -0700221enum ethtool_stringset {
Tao Baod7db5942015-01-28 10:07:51 -0800222 ETH_SS_TEST = 0,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 ETH_SS_STATS,
225 ETH_SS_PRIV_FLAGS,
Tao Baod7db5942015-01-28 10:07:51 -0800226 ETH_SS_NTUPLE_FILTERS,
227 ETH_SS_FEATURES,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 ETH_SS_RSS_HASH_FUNCS,
230 ETH_SS_TUNABLES,
Ben Cheng655a7c02013-10-16 16:09:24 -0700231};
232struct ethtool_gstrings {
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 __u32 cmd;
235 __u32 string_set;
236 __u32 len;
237 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239};
240struct ethtool_sset_info {
Tao Baod7db5942015-01-28 10:07:51 -0800241 __u32 cmd;
242 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 __u64 sset_mask;
245 __u32 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700246};
247enum ethtool_test_flags {
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 ETH_TEST_FL_OFFLINE = (1 << 0),
250 ETH_TEST_FL_FAILED = (1 << 1),
251 ETH_TEST_FL_EXTERNAL_LB = (1 << 2),
252 ETH_TEST_FL_EXTERNAL_LB_DONE = (1 << 3),
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254};
255struct ethtool_test {
Tao Baod7db5942015-01-28 10:07:51 -0800256 __u32 cmd;
257 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 __u32 reserved;
260 __u32 len;
261 __u64 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700262};
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264struct ethtool_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800265 __u32 cmd;
266 __u32 n_stats;
267 __u64 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269};
270struct ethtool_perm_addr {
Tao Baod7db5942015-01-28 10:07:51 -0800271 __u32 cmd;
272 __u32 size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700275};
276enum ethtool_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800277 ETH_FLAG_TXVLAN = (1 << 7),
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 ETH_FLAG_RXVLAN = (1 << 8),
280 ETH_FLAG_LRO = (1 << 15),
281 ETH_FLAG_NTUPLE = (1 << 27),
282 ETH_FLAG_RXHASH = (1 << 28),
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284};
285struct ethtool_tcpip4_spec {
Tao Baod7db5942015-01-28 10:07:51 -0800286 __be32 ip4src;
287 __be32 ip4dst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 __be16 psrc;
290 __be16 pdst;
291 __u8 tos;
Ben Cheng655a7c02013-10-16 16:09:24 -0700292};
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294struct ethtool_ah_espip4_spec {
Tao Baod7db5942015-01-28 10:07:51 -0800295 __be32 ip4src;
296 __be32 ip4dst;
297 __be32 spi;
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299 __u8 tos;
Ben Cheng655a7c02013-10-16 16:09:24 -0700300};
301#define ETH_RX_NFC_IP4 1
302struct ethtool_usrip4_spec {
303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800304 __be32 ip4src;
305 __be32 ip4dst;
306 __be32 l4_4_bytes;
307 __u8 tos;
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 __u8 ip_ver;
310 __u8 proto;
Ben Cheng655a7c02013-10-16 16:09:24 -0700311};
312union ethtool_flow_union {
313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 struct ethtool_tcpip4_spec tcp_ip4_spec;
315 struct ethtool_tcpip4_spec udp_ip4_spec;
316 struct ethtool_tcpip4_spec sctp_ip4_spec;
317 struct ethtool_ah_espip4_spec ah_ip4_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800319 struct ethtool_ah_espip4_spec esp_ip4_spec;
320 struct ethtool_usrip4_spec usr_ip4_spec;
321 struct ethhdr ether_spec;
322 __u8 hdata[52];
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324};
325struct ethtool_flow_ext {
Tao Baod7db5942015-01-28 10:07:51 -0800326 __u8 padding[2];
327 unsigned char h_dest[ETH_ALEN];
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329 __be16 vlan_etype;
330 __be16 vlan_tci;
331 __be32 data[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700332};
333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334struct ethtool_rx_flow_spec {
Tao Baod7db5942015-01-28 10:07:51 -0800335 __u32 flow_type;
336 union ethtool_flow_union h_u;
337 struct ethtool_flow_ext h_ext;
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 union ethtool_flow_union m_u;
340 struct ethtool_flow_ext m_ext;
341 __u64 ring_cookie;
342 __u32 location;
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800345#define ETHTOOL_RX_FLOW_SPEC_RING 0x00000000FFFFFFFFLL
346#define ETHTOOL_RX_FLOW_SPEC_RING_VF 0x000000FF00000000LL
347#define ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF 32
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700349struct ethtool_rxfh_indir {
Tao Baod7db5942015-01-28 10:07:51 -0800350 __u32 cmd;
351 __u32 size;
Tao Baod7db5942015-01-28 10:07:51 -0800352 __u32 ring_index[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700355struct ethtool_rxfh {
Tao Baod7db5942015-01-28 10:07:51 -0800356 __u32 cmd;
Tao Baod7db5942015-01-28 10:07:51 -0800357 __u32 rss_context;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 __u32 indir_size;
360 __u32 key_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800361 __u8 hfunc;
362 __u8 rsvd8[3];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800364 __u32 rsvd32;
Tao Baod7db5942015-01-28 10:07:51 -0800365 __u32 rss_config[0];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700366};
367#define ETH_RXFH_INDIR_NO_CHANGE 0xffffffff
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800369struct ethtool_rx_ntuple_flow_spec {
Tao Baod7db5942015-01-28 10:07:51 -0800370 __u32 flow_type;
371 union {
372 struct ethtool_tcpip4_spec tcp_ip4_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800374 struct ethtool_tcpip4_spec udp_ip4_spec;
Tao Baod7db5942015-01-28 10:07:51 -0800375 struct ethtool_tcpip4_spec sctp_ip4_spec;
376 struct ethtool_ah_espip4_spec ah_ip4_spec;
377 struct ethtool_ah_espip4_spec esp_ip4_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800379 struct ethtool_usrip4_spec usr_ip4_spec;
Tao Baod7db5942015-01-28 10:07:51 -0800380 struct ethhdr ether_spec;
381 __u8 hdata[72];
382 } h_u, m_u;
Ben Cheng655a7c02013-10-16 16:09:24 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800384 __u16 vlan_tag;
Tao Baod7db5942015-01-28 10:07:51 -0800385 __u16 vlan_tag_mask;
386 __u64 data;
387 __u64 data_mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800389 __s32 action;
Tao Baod7db5942015-01-28 10:07:51 -0800390#define ETHTOOL_RXNTUPLE_ACTION_DROP (- 1)
391#define ETHTOOL_RXNTUPLE_ACTION_CLEAR (- 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700392};
Ben Cheng655a7c02013-10-16 16:09:24 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800394struct ethtool_rx_ntuple {
Tao Baod7db5942015-01-28 10:07:51 -0800395 __u32 cmd;
396 struct ethtool_rx_ntuple_flow_spec fs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700397};
Ben Cheng655a7c02013-10-16 16:09:24 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800399#define ETHTOOL_FLASH_MAX_FILENAME 128
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700400enum ethtool_flash_op_type {
Tao Baod7db5942015-01-28 10:07:51 -0800401 ETHTOOL_FLASH_ALL_REGIONS = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700402};
Ben Cheng655a7c02013-10-16 16:09:24 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800404struct ethtool_flash {
Tao Baod7db5942015-01-28 10:07:51 -0800405 __u32 cmd;
406 __u32 region;
407 char data[ETHTOOL_FLASH_MAX_FILENAME];
Ben Cheng655a7c02013-10-16 16:09:24 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800409};
Ben Cheng655a7c02013-10-16 16:09:24 -0700410struct ethtool_dump {
Tao Baod7db5942015-01-28 10:07:51 -0800411 __u32 cmd;
412 __u32 version;
Ben Cheng655a7c02013-10-16 16:09:24 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800414 __u32 flag;
Tao Baod7db5942015-01-28 10:07:51 -0800415 __u32 len;
416 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700417};
Ben Cheng655a7c02013-10-16 16:09:24 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800419#define ETH_FW_DUMP_DISABLE 0
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700420struct ethtool_get_features_block {
Tao Baod7db5942015-01-28 10:07:51 -0800421 __u32 available;
422 __u32 requested;
Ben Cheng655a7c02013-10-16 16:09:24 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800424 __u32 active;
Tao Baod7db5942015-01-28 10:07:51 -0800425 __u32 never_changed;
Ben Cheng655a7c02013-10-16 16:09:24 -0700426};
427struct ethtool_gfeatures {
Ben Cheng655a7c02013-10-16 16:09:24 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800429 __u32 cmd;
Tao Baod7db5942015-01-28 10:07:51 -0800430 __u32 size;
431 struct ethtool_get_features_block features[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700432};
Ben Cheng655a7c02013-10-16 16:09:24 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800434struct ethtool_set_features_block {
Tao Baod7db5942015-01-28 10:07:51 -0800435 __u32 valid;
436 __u32 requested;
Ben Cheng655a7c02013-10-16 16:09:24 -0700437};
Ben Cheng655a7c02013-10-16 16:09:24 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800439struct ethtool_sfeatures {
Tao Baod7db5942015-01-28 10:07:51 -0800440 __u32 cmd;
441 __u32 size;
442 struct ethtool_set_features_block features[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800444};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700445struct ethtool_ts_info {
Tao Baod7db5942015-01-28 10:07:51 -0800446 __u32 cmd;
447 __u32 so_timestamping;
Ben Cheng655a7c02013-10-16 16:09:24 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800449 __s32 phc_index;
Tao Baod7db5942015-01-28 10:07:51 -0800450 __u32 tx_types;
451 __u32 tx_reserved[3];
452 __u32 rx_filters;
Ben Cheng655a7c02013-10-16 16:09:24 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800454 __u32 rx_reserved[3];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700455};
Ben Cheng655a7c02013-10-16 16:09:24 -0700456enum ethtool_sfeatures_retval_bits {
Tao Baod7db5942015-01-28 10:07:51 -0800457 ETHTOOL_F_UNSUPPORTED__BIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800459 ETHTOOL_F_WISH__BIT,
Tao Baod7db5942015-01-28 10:07:51 -0800460 ETHTOOL_F_COMPAT__BIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700461};
462#define ETHTOOL_F_UNSUPPORTED (1 << ETHTOOL_F_UNSUPPORTED__BIT)
Ben Cheng655a7c02013-10-16 16:09:24 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800464#define ETHTOOL_F_WISH (1 << ETHTOOL_F_WISH__BIT)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700465#define ETHTOOL_F_COMPAT (1 << ETHTOOL_F_COMPAT__BIT)
Ben Cheng655a7c02013-10-16 16:09:24 -0700466#define ETHTOOL_GSET 0x00000001
467#define ETHTOOL_SSET 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800469#define ETHTOOL_GDRVINFO 0x00000003
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700470#define ETHTOOL_GREGS 0x00000004
Ben Cheng655a7c02013-10-16 16:09:24 -0700471#define ETHTOOL_GWOL 0x00000005
472#define ETHTOOL_SWOL 0x00000006
Ben Cheng655a7c02013-10-16 16:09:24 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800474#define ETHTOOL_GMSGLVL 0x00000007
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700475#define ETHTOOL_SMSGLVL 0x00000008
Ben Cheng655a7c02013-10-16 16:09:24 -0700476#define ETHTOOL_NWAY_RST 0x00000009
477#define ETHTOOL_GLINK 0x0000000a
Ben Cheng655a7c02013-10-16 16:09:24 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800479#define ETHTOOL_GEEPROM 0x0000000b
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700480#define ETHTOOL_SEEPROM 0x0000000c
Ben Cheng655a7c02013-10-16 16:09:24 -0700481#define ETHTOOL_GCOALESCE 0x0000000e
482#define ETHTOOL_SCOALESCE 0x0000000f
Ben Cheng655a7c02013-10-16 16:09:24 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800484#define ETHTOOL_GRINGPARAM 0x00000010
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700485#define ETHTOOL_SRINGPARAM 0x00000011
Ben Cheng655a7c02013-10-16 16:09:24 -0700486#define ETHTOOL_GPAUSEPARAM 0x00000012
487#define ETHTOOL_SPAUSEPARAM 0x00000013
Ben Cheng655a7c02013-10-16 16:09:24 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800489#define ETHTOOL_GRXCSUM 0x00000014
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700490#define ETHTOOL_SRXCSUM 0x00000015
Ben Cheng655a7c02013-10-16 16:09:24 -0700491#define ETHTOOL_GTXCSUM 0x00000016
492#define ETHTOOL_STXCSUM 0x00000017
Ben Cheng655a7c02013-10-16 16:09:24 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800494#define ETHTOOL_GSG 0x00000018
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700495#define ETHTOOL_SSG 0x00000019
Ben Cheng655a7c02013-10-16 16:09:24 -0700496#define ETHTOOL_TEST 0x0000001a
497#define ETHTOOL_GSTRINGS 0x0000001b
Ben Cheng655a7c02013-10-16 16:09:24 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800499#define ETHTOOL_PHYS_ID 0x0000001c
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700500#define ETHTOOL_GSTATS 0x0000001d
Ben Cheng655a7c02013-10-16 16:09:24 -0700501#define ETHTOOL_GTSO 0x0000001e
502#define ETHTOOL_STSO 0x0000001f
Ben Cheng655a7c02013-10-16 16:09:24 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800504#define ETHTOOL_GPERMADDR 0x00000020
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700505#define ETHTOOL_GUFO 0x00000021
Ben Cheng655a7c02013-10-16 16:09:24 -0700506#define ETHTOOL_SUFO 0x00000022
507#define ETHTOOL_GGSO 0x00000023
Ben Cheng655a7c02013-10-16 16:09:24 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800509#define ETHTOOL_SGSO 0x00000024
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700510#define ETHTOOL_GFLAGS 0x00000025
Ben Cheng655a7c02013-10-16 16:09:24 -0700511#define ETHTOOL_SFLAGS 0x00000026
512#define ETHTOOL_GPFLAGS 0x00000027
Ben Cheng655a7c02013-10-16 16:09:24 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800514#define ETHTOOL_SPFLAGS 0x00000028
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700515#define ETHTOOL_GRXFH 0x00000029
Ben Cheng655a7c02013-10-16 16:09:24 -0700516#define ETHTOOL_SRXFH 0x0000002a
517#define ETHTOOL_GGRO 0x0000002b
Ben Cheng655a7c02013-10-16 16:09:24 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800519#define ETHTOOL_SGRO 0x0000002c
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700520#define ETHTOOL_GRXRINGS 0x0000002d
Ben Cheng655a7c02013-10-16 16:09:24 -0700521#define ETHTOOL_GRXCLSRLCNT 0x0000002e
522#define ETHTOOL_GRXCLSRULE 0x0000002f
Ben Cheng655a7c02013-10-16 16:09:24 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800524#define ETHTOOL_GRXCLSRLALL 0x00000030
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700525#define ETHTOOL_SRXCLSRLDEL 0x00000031
Ben Cheng655a7c02013-10-16 16:09:24 -0700526#define ETHTOOL_SRXCLSRLINS 0x00000032
527#define ETHTOOL_FLASHDEV 0x00000033
Ben Cheng655a7c02013-10-16 16:09:24 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800529#define ETHTOOL_RESET 0x00000034
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700530#define ETHTOOL_SRXNTUPLE 0x00000035
Ben Cheng655a7c02013-10-16 16:09:24 -0700531#define ETHTOOL_GRXNTUPLE 0x00000036
532#define ETHTOOL_GSSET_INFO 0x00000037
Ben Cheng655a7c02013-10-16 16:09:24 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800534#define ETHTOOL_GRXFHINDIR 0x00000038
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700535#define ETHTOOL_SRXFHINDIR 0x00000039
Ben Cheng655a7c02013-10-16 16:09:24 -0700536#define ETHTOOL_GFEATURES 0x0000003a
537#define ETHTOOL_SFEATURES 0x0000003b
Ben Cheng655a7c02013-10-16 16:09:24 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800539#define ETHTOOL_GCHANNELS 0x0000003c
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700540#define ETHTOOL_SCHANNELS 0x0000003d
Ben Cheng655a7c02013-10-16 16:09:24 -0700541#define ETHTOOL_SET_DUMP 0x0000003e
542#define ETHTOOL_GET_DUMP_FLAG 0x0000003f
Ben Cheng655a7c02013-10-16 16:09:24 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800544#define ETHTOOL_GET_DUMP_DATA 0x00000040
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700545#define ETHTOOL_GET_TS_INFO 0x00000041
Ben Cheng655a7c02013-10-16 16:09:24 -0700546#define ETHTOOL_GMODULEINFO 0x00000042
547#define ETHTOOL_GMODULEEEPROM 0x00000043
Ben Cheng655a7c02013-10-16 16:09:24 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800549#define ETHTOOL_GEEE 0x00000044
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700550#define ETHTOOL_SEEE 0x00000045
551#define ETHTOOL_GRSSH 0x00000046
552#define ETHTOOL_SRSSH 0x00000047
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800554#define ETHTOOL_GTUNABLE 0x00000048
Christopher Ferris82d75042015-01-26 10:57:07 -0800555#define ETHTOOL_STUNABLE 0x00000049
556#define SPARC_ETH_GSET ETHTOOL_GSET
Ben Cheng655a7c02013-10-16 16:09:24 -0700557#define SPARC_ETH_SSET ETHTOOL_SSET
Christopher Ferris82d75042015-01-26 10:57:07 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800559#define SUPPORTED_10baseT_Half (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700560#define SUPPORTED_10baseT_Full (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700561#define SUPPORTED_100baseT_Half (1 << 2)
562#define SUPPORTED_100baseT_Full (1 << 3)
Christopher Ferris82d75042015-01-26 10:57:07 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800564#define SUPPORTED_1000baseT_Half (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700565#define SUPPORTED_1000baseT_Full (1 << 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700566#define SUPPORTED_Autoneg (1 << 6)
567#define SUPPORTED_TP (1 << 7)
Christopher Ferris82d75042015-01-26 10:57:07 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800569#define SUPPORTED_AUI (1 << 8)
Ben Cheng655a7c02013-10-16 16:09:24 -0700570#define SUPPORTED_MII (1 << 9)
Ben Cheng655a7c02013-10-16 16:09:24 -0700571#define SUPPORTED_FIBRE (1 << 10)
572#define SUPPORTED_BNC (1 << 11)
Christopher Ferris82d75042015-01-26 10:57:07 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800574#define SUPPORTED_10000baseT_Full (1 << 12)
Ben Cheng655a7c02013-10-16 16:09:24 -0700575#define SUPPORTED_Pause (1 << 13)
Ben Cheng655a7c02013-10-16 16:09:24 -0700576#define SUPPORTED_Asym_Pause (1 << 14)
577#define SUPPORTED_2500baseX_Full (1 << 15)
Christopher Ferris82d75042015-01-26 10:57:07 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800579#define SUPPORTED_Backplane (1 << 16)
Ben Cheng655a7c02013-10-16 16:09:24 -0700580#define SUPPORTED_1000baseKX_Full (1 << 17)
Ben Cheng655a7c02013-10-16 16:09:24 -0700581#define SUPPORTED_10000baseKX4_Full (1 << 18)
582#define SUPPORTED_10000baseKR_Full (1 << 19)
Christopher Ferris82d75042015-01-26 10:57:07 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800584#define SUPPORTED_10000baseR_FEC (1 << 20)
Ben Cheng655a7c02013-10-16 16:09:24 -0700585#define SUPPORTED_20000baseMLD2_Full (1 << 21)
Ben Cheng655a7c02013-10-16 16:09:24 -0700586#define SUPPORTED_20000baseKR2_Full (1 << 22)
587#define SUPPORTED_40000baseKR4_Full (1 << 23)
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800589#define SUPPORTED_40000baseCR4_Full (1 << 24)
Ben Cheng655a7c02013-10-16 16:09:24 -0700590#define SUPPORTED_40000baseSR4_Full (1 << 25)
Ben Cheng655a7c02013-10-16 16:09:24 -0700591#define SUPPORTED_40000baseLR4_Full (1 << 26)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800592#define SUPPORTED_56000baseKR4_Full (1 << 27)
Christopher Ferris82d75042015-01-26 10:57:07 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800594#define SUPPORTED_56000baseCR4_Full (1 << 28)
595#define SUPPORTED_56000baseSR4_Full (1 << 29)
596#define SUPPORTED_56000baseLR4_Full (1 << 30)
597#define ADVERTISED_10baseT_Half (1 << 0)
598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
599#define ADVERTISED_10baseT_Full (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700600#define ADVERTISED_100baseT_Half (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700601#define ADVERTISED_100baseT_Full (1 << 3)
602#define ADVERTISED_1000baseT_Half (1 << 4)
Christopher Ferris82d75042015-01-26 10:57:07 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800604#define ADVERTISED_1000baseT_Full (1 << 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700605#define ADVERTISED_Autoneg (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700606#define ADVERTISED_TP (1 << 7)
607#define ADVERTISED_AUI (1 << 8)
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800609#define ADVERTISED_MII (1 << 9)
Ben Cheng655a7c02013-10-16 16:09:24 -0700610#define ADVERTISED_FIBRE (1 << 10)
Ben Cheng655a7c02013-10-16 16:09:24 -0700611#define ADVERTISED_BNC (1 << 11)
612#define ADVERTISED_10000baseT_Full (1 << 12)
Christopher Ferris82d75042015-01-26 10:57:07 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800614#define ADVERTISED_Pause (1 << 13)
Ben Cheng655a7c02013-10-16 16:09:24 -0700615#define ADVERTISED_Asym_Pause (1 << 14)
Ben Cheng655a7c02013-10-16 16:09:24 -0700616#define ADVERTISED_2500baseX_Full (1 << 15)
617#define ADVERTISED_Backplane (1 << 16)
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800619#define ADVERTISED_1000baseKX_Full (1 << 17)
Ben Cheng655a7c02013-10-16 16:09:24 -0700620#define ADVERTISED_10000baseKX4_Full (1 << 18)
Ben Cheng655a7c02013-10-16 16:09:24 -0700621#define ADVERTISED_10000baseKR_Full (1 << 19)
622#define ADVERTISED_10000baseR_FEC (1 << 20)
Christopher Ferris82d75042015-01-26 10:57:07 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800624#define ADVERTISED_20000baseMLD2_Full (1 << 21)
Ben Cheng655a7c02013-10-16 16:09:24 -0700625#define ADVERTISED_20000baseKR2_Full (1 << 22)
Ben Cheng655a7c02013-10-16 16:09:24 -0700626#define ADVERTISED_40000baseKR4_Full (1 << 23)
627#define ADVERTISED_40000baseCR4_Full (1 << 24)
Christopher Ferris82d75042015-01-26 10:57:07 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800629#define ADVERTISED_40000baseSR4_Full (1 << 25)
Ben Cheng655a7c02013-10-16 16:09:24 -0700630#define ADVERTISED_40000baseLR4_Full (1 << 26)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800631#define ADVERTISED_56000baseKR4_Full (1 << 27)
632#define ADVERTISED_56000baseCR4_Full (1 << 28)
633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
634#define ADVERTISED_56000baseSR4_Full (1 << 29)
635#define ADVERTISED_56000baseLR4_Full (1 << 30)
Ben Cheng655a7c02013-10-16 16:09:24 -0700636#define SPEED_10 10
637#define SPEED_100 100
Christopher Ferris82d75042015-01-26 10:57:07 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800639#define SPEED_1000 1000
Ben Cheng655a7c02013-10-16 16:09:24 -0700640#define SPEED_2500 2500
Christopher Ferris05d08e92016-02-04 13:16:38 -0800641#define SPEED_5000 5000
Ben Cheng655a7c02013-10-16 16:09:24 -0700642#define SPEED_10000 10000
Christopher Ferris05d08e92016-02-04 13:16:38 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
644#define SPEED_20000 20000
645#define SPEED_25000 25000
646#define SPEED_40000 40000
647#define SPEED_50000 50000
648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
649#define SPEED_56000 56000
650#define SPEED_100000 100000
Tao Baod7db5942015-01-28 10:07:51 -0800651#define SPEED_UNKNOWN - 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700652#define DUPLEX_HALF 0x00
Christopher Ferris82d75042015-01-26 10:57:07 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700654#define DUPLEX_FULL 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700655#define DUPLEX_UNKNOWN 0xff
656#define PORT_TP 0x00
657#define PORT_AUI 0x01
Christopher Ferris82d75042015-01-26 10:57:07 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700659#define PORT_MII 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700660#define PORT_FIBRE 0x03
661#define PORT_BNC 0x04
662#define PORT_DA 0x05
Christopher Ferris82d75042015-01-26 10:57:07 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700664#define PORT_NONE 0xef
Ben Cheng655a7c02013-10-16 16:09:24 -0700665#define PORT_OTHER 0xff
666#define XCVR_INTERNAL 0x00
667#define XCVR_EXTERNAL 0x01
Christopher Ferris82d75042015-01-26 10:57:07 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700669#define XCVR_DUMMY1 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700670#define XCVR_DUMMY2 0x03
671#define XCVR_DUMMY3 0x04
672#define AUTONEG_DISABLE 0x00
Christopher Ferris82d75042015-01-26 10:57:07 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700674#define AUTONEG_ENABLE 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700675#define ETH_TP_MDI_INVALID 0x00
676#define ETH_TP_MDI 0x01
677#define ETH_TP_MDI_X 0x02
Christopher Ferris82d75042015-01-26 10:57:07 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700679#define ETH_TP_MDI_AUTO 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -0700680#define WAKE_PHY (1 << 0)
681#define WAKE_UCAST (1 << 1)
682#define WAKE_MCAST (1 << 2)
Christopher Ferris82d75042015-01-26 10:57:07 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700684#define WAKE_BCAST (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700685#define WAKE_ARP (1 << 4)
686#define WAKE_MAGIC (1 << 5)
687#define WAKE_MAGICSECURE (1 << 6)
Christopher Ferris82d75042015-01-26 10:57:07 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700689#define TCP_V4_FLOW 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700690#define UDP_V4_FLOW 0x02
691#define SCTP_V4_FLOW 0x03
692#define AH_ESP_V4_FLOW 0x04
Christopher Ferris82d75042015-01-26 10:57:07 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700694#define TCP_V6_FLOW 0x05
Ben Cheng655a7c02013-10-16 16:09:24 -0700695#define UDP_V6_FLOW 0x06
696#define SCTP_V6_FLOW 0x07
697#define AH_ESP_V6_FLOW 0x08
Christopher Ferris82d75042015-01-26 10:57:07 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700699#define AH_V4_FLOW 0x09
Ben Cheng655a7c02013-10-16 16:09:24 -0700700#define ESP_V4_FLOW 0x0a
701#define AH_V6_FLOW 0x0b
702#define ESP_V6_FLOW 0x0c
Christopher Ferris82d75042015-01-26 10:57:07 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700704#define IP_USER_FLOW 0x0d
Ben Cheng655a7c02013-10-16 16:09:24 -0700705#define IPV4_FLOW 0x10
706#define IPV6_FLOW 0x11
707#define ETHER_FLOW 0x12
Christopher Ferris82d75042015-01-26 10:57:07 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700709#define FLOW_EXT 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700710#define FLOW_MAC_EXT 0x40000000
711#define RXH_L2DA (1 << 1)
712#define RXH_VLAN (1 << 2)
Christopher Ferris82d75042015-01-26 10:57:07 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700714#define RXH_L3_PROTO (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700715#define RXH_IP_SRC (1 << 4)
716#define RXH_IP_DST (1 << 5)
717#define RXH_L4_B_0_1 (1 << 6)
Christopher Ferris82d75042015-01-26 10:57:07 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700719#define RXH_L4_B_2_3 (1 << 7)
Ben Cheng655a7c02013-10-16 16:09:24 -0700720#define RXH_DISCARD (1 << 31)
721#define RX_CLS_FLOW_DISC 0xffffffffffffffffULL
722#define RX_CLS_LOC_SPECIAL 0x80000000
Christopher Ferris82d75042015-01-26 10:57:07 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700724#define RX_CLS_LOC_ANY 0xffffffff
Ben Cheng655a7c02013-10-16 16:09:24 -0700725#define RX_CLS_LOC_FIRST 0xfffffffe
726#define RX_CLS_LOC_LAST 0xfffffffd
727#define ETH_MODULE_SFF_8079 0x1
Christopher Ferris82d75042015-01-26 10:57:07 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700729#define ETH_MODULE_SFF_8079_LEN 256
Ben Cheng655a7c02013-10-16 16:09:24 -0700730#define ETH_MODULE_SFF_8472 0x2
731#define ETH_MODULE_SFF_8472_LEN 512
Christopher Ferris05d08e92016-02-04 13:16:38 -0800732#define ETH_MODULE_SFF_8636 0x3
733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
734#define ETH_MODULE_SFF_8636_LEN 256
735#define ETH_MODULE_SFF_8436 0x4
736#define ETH_MODULE_SFF_8436_LEN 256
Ben Cheng655a7c02013-10-16 16:09:24 -0700737enum ethtool_reset_flags {
Christopher Ferris82d75042015-01-26 10:57:07 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800739 ETH_RESET_MGMT = 1 << 0,
740 ETH_RESET_IRQ = 1 << 1,
741 ETH_RESET_DMA = 1 << 2,
742 ETH_RESET_FILTER = 1 << 3,
Christopher Ferris82d75042015-01-26 10:57:07 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800744 ETH_RESET_OFFLOAD = 1 << 4,
745 ETH_RESET_MAC = 1 << 5,
746 ETH_RESET_PHY = 1 << 6,
747 ETH_RESET_RAM = 1 << 7,
Christopher Ferris82d75042015-01-26 10:57:07 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800749 ETH_RESET_DEDICATED = 0x0000ffff,
750 ETH_RESET_ALL = 0xffffffff,
Ben Cheng655a7c02013-10-16 16:09:24 -0700751};
752#define ETH_RESET_SHARED_SHIFT 16
Christopher Ferris82d75042015-01-26 10:57:07 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700754#endif