blob: 1a00c7fd200d1817388bc6d017f2bc63e398b97a [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
52struct ethtool_drvinfo {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u32 cmd;
55 char driver[32];
56 char version[32];
57 char fw_version[ETHTOOL_FWVERS_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 char bus_info[ETHTOOL_BUSINFO_LEN];
60 char reserved1[32];
61 char reserved2[12];
62 __u32 n_priv_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u32 n_stats;
65 __u32 testinfo_len;
66 __u32 eedump_len;
67 __u32 regdump_len;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70#define SOPASS_MAX 6
71struct ethtool_wolinfo {
Tao Baod7db5942015-01-28 10:07:51 -080072 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u32 supported;
75 __u32 wolopts;
76 __u8 sopass[SOPASS_MAX];
Ben Cheng655a7c02013-10-16 16:09:24 -070077};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79struct ethtool_value {
Tao Baod7db5942015-01-28 10:07:51 -080080 __u32 cmd;
81 __u32 data;
Ben Cheng655a7c02013-10-16 16:09:24 -070082};
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -080084enum tunable_id {
Tao Baod7db5942015-01-28 10:07:51 -080085 ETHTOOL_ID_UNSPEC,
86 ETHTOOL_RX_COPYBREAK,
87 ETHTOOL_TX_COPYBREAK,
Christopher Ferris82d75042015-01-26 10:57:07 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89};
90enum tunable_type_id {
Tao Baod7db5942015-01-28 10:07:51 -080091 ETHTOOL_TUNABLE_UNSPEC,
92 ETHTOOL_TUNABLE_U8,
Christopher Ferris82d75042015-01-26 10:57:07 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 ETHTOOL_TUNABLE_U16,
95 ETHTOOL_TUNABLE_U32,
96 ETHTOOL_TUNABLE_U64,
97 ETHTOOL_TUNABLE_STRING,
Christopher Ferris82d75042015-01-26 10:57:07 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 ETHTOOL_TUNABLE_S8,
100 ETHTOOL_TUNABLE_S16,
101 ETHTOOL_TUNABLE_S32,
102 ETHTOOL_TUNABLE_S64,
Christopher Ferris82d75042015-01-26 10:57:07 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104};
105struct ethtool_tunable {
Tao Baod7db5942015-01-28 10:07:51 -0800106 __u32 cmd;
107 __u32 id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u32 type_id;
110 __u32 len;
111 void * data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800112};
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114struct ethtool_regs {
Tao Baod7db5942015-01-28 10:07:51 -0800115 __u32 cmd;
116 __u32 version;
117 __u32 len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700120};
121struct ethtool_eeprom {
Tao Baod7db5942015-01-28 10:07:51 -0800122 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u32 magic;
125 __u32 offset;
126 __u32 len;
127 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129};
130struct ethtool_eee {
Tao Baod7db5942015-01-28 10:07:51 -0800131 __u32 cmd;
132 __u32 supported;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u32 advertised;
135 __u32 lp_advertised;
136 __u32 eee_active;
137 __u32 eee_enabled;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u32 tx_lpi_enabled;
140 __u32 tx_lpi_timer;
141 __u32 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700142};
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144struct ethtool_modinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800145 __u32 cmd;
146 __u32 type;
147 __u32 eeprom_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 reserved[8];
Ben Cheng655a7c02013-10-16 16:09:24 -0700150};
151struct ethtool_coalesce {
Tao Baod7db5942015-01-28 10:07:51 -0800152 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u32 rx_coalesce_usecs;
155 __u32 rx_max_coalesced_frames;
156 __u32 rx_coalesce_usecs_irq;
157 __u32 rx_max_coalesced_frames_irq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u32 tx_coalesce_usecs;
160 __u32 tx_max_coalesced_frames;
161 __u32 tx_coalesce_usecs_irq;
162 __u32 tx_max_coalesced_frames_irq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 stats_block_coalesce_usecs;
165 __u32 use_adaptive_rx_coalesce;
166 __u32 use_adaptive_tx_coalesce;
167 __u32 pkt_rate_low;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u32 rx_coalesce_usecs_low;
170 __u32 rx_max_coalesced_frames_low;
171 __u32 tx_coalesce_usecs_low;
172 __u32 tx_max_coalesced_frames_low;
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u32 pkt_rate_high;
175 __u32 rx_coalesce_usecs_high;
176 __u32 rx_max_coalesced_frames_high;
177 __u32 tx_coalesce_usecs_high;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u32 tx_max_coalesced_frames_high;
180 __u32 rate_sample_interval;
Ben Cheng655a7c02013-10-16 16:09:24 -0700181};
182struct ethtool_ringparam {
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 __u32 cmd;
185 __u32 rx_max_pending;
186 __u32 rx_mini_max_pending;
187 __u32 rx_jumbo_max_pending;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 __u32 tx_max_pending;
190 __u32 rx_pending;
191 __u32 rx_mini_pending;
192 __u32 rx_jumbo_pending;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 __u32 tx_pending;
Ben Cheng655a7c02013-10-16 16:09:24 -0700195};
196struct ethtool_channels {
Tao Baod7db5942015-01-28 10:07:51 -0800197 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 __u32 max_rx;
200 __u32 max_tx;
201 __u32 max_other;
202 __u32 max_combined;
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 __u32 rx_count;
205 __u32 tx_count;
206 __u32 other_count;
207 __u32 combined_count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209};
210struct ethtool_pauseparam {
Tao Baod7db5942015-01-28 10:07:51 -0800211 __u32 cmd;
212 __u32 autoneg;
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 __u32 rx_pause;
215 __u32 tx_pause;
Ben Cheng655a7c02013-10-16 16:09:24 -0700216};
217#define ETH_GSTRING_LEN 32
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219enum ethtool_stringset {
Tao Baod7db5942015-01-28 10:07:51 -0800220 ETH_SS_TEST = 0,
221 ETH_SS_STATS,
222 ETH_SS_PRIV_FLAGS,
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 ETH_SS_NTUPLE_FILTERS,
225 ETH_SS_FEATURES,
Ben Cheng655a7c02013-10-16 16:09:24 -0700226};
227struct ethtool_gstrings {
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 __u32 cmd;
230 __u32 string_set;
231 __u32 len;
232 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234};
235struct ethtool_sset_info {
Tao Baod7db5942015-01-28 10:07:51 -0800236 __u32 cmd;
237 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 __u64 sset_mask;
240 __u32 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700241};
242enum ethtool_test_flags {
243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 ETH_TEST_FL_OFFLINE = (1 << 0),
245 ETH_TEST_FL_FAILED = (1 << 1),
246 ETH_TEST_FL_EXTERNAL_LB = (1 << 2),
247 ETH_TEST_FL_EXTERNAL_LB_DONE = (1 << 3),
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249};
250struct ethtool_test {
Tao Baod7db5942015-01-28 10:07:51 -0800251 __u32 cmd;
252 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 __u32 reserved;
255 __u32 len;
256 __u64 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700257};
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259struct ethtool_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800260 __u32 cmd;
261 __u32 n_stats;
262 __u64 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264};
265struct ethtool_perm_addr {
Tao Baod7db5942015-01-28 10:07:51 -0800266 __u32 cmd;
267 __u32 size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700270};
271enum ethtool_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800272 ETH_FLAG_TXVLAN = (1 << 7),
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 ETH_FLAG_RXVLAN = (1 << 8),
275 ETH_FLAG_LRO = (1 << 15),
276 ETH_FLAG_NTUPLE = (1 << 27),
277 ETH_FLAG_RXHASH = (1 << 28),
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279};
280struct ethtool_tcpip4_spec {
Tao Baod7db5942015-01-28 10:07:51 -0800281 __be32 ip4src;
282 __be32 ip4dst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 __be16 psrc;
285 __be16 pdst;
286 __u8 tos;
Ben Cheng655a7c02013-10-16 16:09:24 -0700287};
288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289struct ethtool_ah_espip4_spec {
Tao Baod7db5942015-01-28 10:07:51 -0800290 __be32 ip4src;
291 __be32 ip4dst;
292 __be32 spi;
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 __u8 tos;
Ben Cheng655a7c02013-10-16 16:09:24 -0700295};
296#define ETH_RX_NFC_IP4 1
297struct ethtool_usrip4_spec {
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299 __be32 ip4src;
300 __be32 ip4dst;
301 __be32 l4_4_bytes;
302 __u8 tos;
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800304 __u8 ip_ver;
305 __u8 proto;
Ben Cheng655a7c02013-10-16 16:09:24 -0700306};
307union ethtool_flow_union {
308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 struct ethtool_tcpip4_spec tcp_ip4_spec;
310 struct ethtool_tcpip4_spec udp_ip4_spec;
311 struct ethtool_tcpip4_spec sctp_ip4_spec;
312 struct ethtool_ah_espip4_spec ah_ip4_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 struct ethtool_ah_espip4_spec esp_ip4_spec;
315 struct ethtool_usrip4_spec usr_ip4_spec;
316 struct ethhdr ether_spec;
317 __u8 hdata[52];
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319};
320struct ethtool_flow_ext {
Tao Baod7db5942015-01-28 10:07:51 -0800321 __u8 padding[2];
322 unsigned char h_dest[ETH_ALEN];
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324 __be16 vlan_etype;
325 __be16 vlan_tci;
326 __be32 data[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700327};
328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329struct ethtool_rx_flow_spec {
Tao Baod7db5942015-01-28 10:07:51 -0800330 __u32 flow_type;
331 union ethtool_flow_union h_u;
332 struct ethtool_flow_ext h_ext;
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 union ethtool_flow_union m_u;
335 struct ethtool_flow_ext m_ext;
336 __u64 ring_cookie;
337 __u32 location;
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339};
340struct ethtool_rxnfc {
Tao Baod7db5942015-01-28 10:07:51 -0800341 __u32 cmd;
342 __u32 flow_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 __u64 data;
345 struct ethtool_rx_flow_spec fs;
346 __u32 rule_cnt;
347 __u32 rule_locs[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349};
350struct ethtool_rxfh_indir {
Tao Baod7db5942015-01-28 10:07:51 -0800351 __u32 cmd;
352 __u32 size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 __u32 ring_index[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700355};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700356struct ethtool_rxfh {
Tao Baod7db5942015-01-28 10:07:51 -0800357 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 __u32 rss_context;
360 __u32 indir_size;
361 __u32 key_size;
362 __u32 rsvd[2];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 __u32 rss_config[0];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700365};
366#define ETH_RXFH_INDIR_NO_CHANGE 0xffffffff
367struct ethtool_rx_ntuple_flow_spec {
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800369 __u32 flow_type;
370 union {
371 struct ethtool_tcpip4_spec tcp_ip4_spec;
372 struct ethtool_tcpip4_spec udp_ip4_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800374 struct ethtool_tcpip4_spec sctp_ip4_spec;
375 struct ethtool_ah_espip4_spec ah_ip4_spec;
376 struct ethtool_ah_espip4_spec esp_ip4_spec;
377 struct ethtool_usrip4_spec usr_ip4_spec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 struct ethhdr ether_spec;
380 __u8 hdata[72];
381 } h_u, m_u;
382 __u16 vlan_tag;
Ben Cheng655a7c02013-10-16 16:09:24 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800384 __u16 vlan_tag_mask;
385 __u64 data;
386 __u64 data_mask;
387 __s32 action;
Ben Cheng655a7c02013-10-16 16:09:24 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389#define ETHTOOL_RXNTUPLE_ACTION_DROP (- 1)
390#define ETHTOOL_RXNTUPLE_ACTION_CLEAR (- 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700391};
392struct ethtool_rx_ntuple {
Ben Cheng655a7c02013-10-16 16:09:24 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 __u32 cmd;
395 struct ethtool_rx_ntuple_flow_spec fs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700396};
397#define ETHTOOL_FLASH_MAX_FILENAME 128
Ben Cheng655a7c02013-10-16 16:09:24 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700399enum ethtool_flash_op_type {
Tao Baod7db5942015-01-28 10:07:51 -0800400 ETHTOOL_FLASH_ALL_REGIONS = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700401};
402struct ethtool_flash {
Ben Cheng655a7c02013-10-16 16:09:24 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 __u32 cmd;
405 __u32 region;
406 char data[ETHTOOL_FLASH_MAX_FILENAME];
Ben Cheng655a7c02013-10-16 16:09:24 -0700407};
Ben Cheng655a7c02013-10-16 16:09:24 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409struct ethtool_dump {
Tao Baod7db5942015-01-28 10:07:51 -0800410 __u32 cmd;
411 __u32 version;
412 __u32 flag;
Ben Cheng655a7c02013-10-16 16:09:24 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 __u32 len;
415 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700416};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700417#define ETH_FW_DUMP_DISABLE 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700419struct ethtool_get_features_block {
Tao Baod7db5942015-01-28 10:07:51 -0800420 __u32 available;
421 __u32 requested;
422 __u32 active;
Ben Cheng655a7c02013-10-16 16:09:24 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 __u32 never_changed;
Ben Cheng655a7c02013-10-16 16:09:24 -0700425};
426struct ethtool_gfeatures {
Tao Baod7db5942015-01-28 10:07:51 -0800427 __u32 cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800429 __u32 size;
430 struct ethtool_get_features_block features[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700431};
432struct ethtool_set_features_block {
Ben Cheng655a7c02013-10-16 16:09:24 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800434 __u32 valid;
435 __u32 requested;
Ben Cheng655a7c02013-10-16 16:09:24 -0700436};
437struct ethtool_sfeatures {
Ben Cheng655a7c02013-10-16 16:09:24 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800439 __u32 cmd;
440 __u32 size;
441 struct ethtool_set_features_block features[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700442};
Ben Cheng655a7c02013-10-16 16:09:24 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700444struct ethtool_ts_info {
Tao Baod7db5942015-01-28 10:07:51 -0800445 __u32 cmd;
446 __u32 so_timestamping;
447 __s32 phc_index;
Ben Cheng655a7c02013-10-16 16:09:24 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800449 __u32 tx_types;
450 __u32 tx_reserved[3];
451 __u32 rx_filters;
452 __u32 rx_reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700454};
Ben Cheng655a7c02013-10-16 16:09:24 -0700455enum ethtool_sfeatures_retval_bits {
Tao Baod7db5942015-01-28 10:07:51 -0800456 ETHTOOL_F_UNSUPPORTED__BIT,
457 ETHTOOL_F_WISH__BIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459 ETHTOOL_F_COMPAT__BIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700460};
461#define ETHTOOL_F_UNSUPPORTED (1 << ETHTOOL_F_UNSUPPORTED__BIT)
462#define ETHTOOL_F_WISH (1 << ETHTOOL_F_WISH__BIT)
Ben Cheng655a7c02013-10-16 16:09:24 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700464#define ETHTOOL_F_COMPAT (1 << ETHTOOL_F_COMPAT__BIT)
Ben Cheng655a7c02013-10-16 16:09:24 -0700465#define ETHTOOL_GSET 0x00000001
466#define ETHTOOL_SSET 0x00000002
467#define ETHTOOL_GDRVINFO 0x00000003
Ben Cheng655a7c02013-10-16 16:09:24 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700469#define ETHTOOL_GREGS 0x00000004
Ben Cheng655a7c02013-10-16 16:09:24 -0700470#define ETHTOOL_GWOL 0x00000005
471#define ETHTOOL_SWOL 0x00000006
472#define ETHTOOL_GMSGLVL 0x00000007
Ben Cheng655a7c02013-10-16 16:09:24 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700474#define ETHTOOL_SMSGLVL 0x00000008
Ben Cheng655a7c02013-10-16 16:09:24 -0700475#define ETHTOOL_NWAY_RST 0x00000009
476#define ETHTOOL_GLINK 0x0000000a
477#define ETHTOOL_GEEPROM 0x0000000b
Ben Cheng655a7c02013-10-16 16:09:24 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700479#define ETHTOOL_SEEPROM 0x0000000c
Ben Cheng655a7c02013-10-16 16:09:24 -0700480#define ETHTOOL_GCOALESCE 0x0000000e
481#define ETHTOOL_SCOALESCE 0x0000000f
482#define ETHTOOL_GRINGPARAM 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700484#define ETHTOOL_SRINGPARAM 0x00000011
Ben Cheng655a7c02013-10-16 16:09:24 -0700485#define ETHTOOL_GPAUSEPARAM 0x00000012
486#define ETHTOOL_SPAUSEPARAM 0x00000013
487#define ETHTOOL_GRXCSUM 0x00000014
Ben Cheng655a7c02013-10-16 16:09:24 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700489#define ETHTOOL_SRXCSUM 0x00000015
Ben Cheng655a7c02013-10-16 16:09:24 -0700490#define ETHTOOL_GTXCSUM 0x00000016
491#define ETHTOOL_STXCSUM 0x00000017
492#define ETHTOOL_GSG 0x00000018
Ben Cheng655a7c02013-10-16 16:09:24 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700494#define ETHTOOL_SSG 0x00000019
Ben Cheng655a7c02013-10-16 16:09:24 -0700495#define ETHTOOL_TEST 0x0000001a
496#define ETHTOOL_GSTRINGS 0x0000001b
497#define ETHTOOL_PHYS_ID 0x0000001c
Ben Cheng655a7c02013-10-16 16:09:24 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700499#define ETHTOOL_GSTATS 0x0000001d
Ben Cheng655a7c02013-10-16 16:09:24 -0700500#define ETHTOOL_GTSO 0x0000001e
501#define ETHTOOL_STSO 0x0000001f
502#define ETHTOOL_GPERMADDR 0x00000020
Ben Cheng655a7c02013-10-16 16:09:24 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700504#define ETHTOOL_GUFO 0x00000021
Ben Cheng655a7c02013-10-16 16:09:24 -0700505#define ETHTOOL_SUFO 0x00000022
506#define ETHTOOL_GGSO 0x00000023
507#define ETHTOOL_SGSO 0x00000024
Ben Cheng655a7c02013-10-16 16:09:24 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700509#define ETHTOOL_GFLAGS 0x00000025
Ben Cheng655a7c02013-10-16 16:09:24 -0700510#define ETHTOOL_SFLAGS 0x00000026
511#define ETHTOOL_GPFLAGS 0x00000027
512#define ETHTOOL_SPFLAGS 0x00000028
Ben Cheng655a7c02013-10-16 16:09:24 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700514#define ETHTOOL_GRXFH 0x00000029
Ben Cheng655a7c02013-10-16 16:09:24 -0700515#define ETHTOOL_SRXFH 0x0000002a
516#define ETHTOOL_GGRO 0x0000002b
517#define ETHTOOL_SGRO 0x0000002c
Ben Cheng655a7c02013-10-16 16:09:24 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700519#define ETHTOOL_GRXRINGS 0x0000002d
Ben Cheng655a7c02013-10-16 16:09:24 -0700520#define ETHTOOL_GRXCLSRLCNT 0x0000002e
521#define ETHTOOL_GRXCLSRULE 0x0000002f
522#define ETHTOOL_GRXCLSRLALL 0x00000030
Ben Cheng655a7c02013-10-16 16:09:24 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700524#define ETHTOOL_SRXCLSRLDEL 0x00000031
Ben Cheng655a7c02013-10-16 16:09:24 -0700525#define ETHTOOL_SRXCLSRLINS 0x00000032
526#define ETHTOOL_FLASHDEV 0x00000033
527#define ETHTOOL_RESET 0x00000034
Ben Cheng655a7c02013-10-16 16:09:24 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700529#define ETHTOOL_SRXNTUPLE 0x00000035
Ben Cheng655a7c02013-10-16 16:09:24 -0700530#define ETHTOOL_GRXNTUPLE 0x00000036
531#define ETHTOOL_GSSET_INFO 0x00000037
532#define ETHTOOL_GRXFHINDIR 0x00000038
Ben Cheng655a7c02013-10-16 16:09:24 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700534#define ETHTOOL_SRXFHINDIR 0x00000039
Ben Cheng655a7c02013-10-16 16:09:24 -0700535#define ETHTOOL_GFEATURES 0x0000003a
536#define ETHTOOL_SFEATURES 0x0000003b
537#define ETHTOOL_GCHANNELS 0x0000003c
Ben Cheng655a7c02013-10-16 16:09:24 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700539#define ETHTOOL_SCHANNELS 0x0000003d
Ben Cheng655a7c02013-10-16 16:09:24 -0700540#define ETHTOOL_SET_DUMP 0x0000003e
541#define ETHTOOL_GET_DUMP_FLAG 0x0000003f
542#define ETHTOOL_GET_DUMP_DATA 0x00000040
Ben Cheng655a7c02013-10-16 16:09:24 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700544#define ETHTOOL_GET_TS_INFO 0x00000041
Ben Cheng655a7c02013-10-16 16:09:24 -0700545#define ETHTOOL_GMODULEINFO 0x00000042
546#define ETHTOOL_GMODULEEEPROM 0x00000043
547#define ETHTOOL_GEEE 0x00000044
Ben Cheng655a7c02013-10-16 16:09:24 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700549#define ETHTOOL_SEEE 0x00000045
550#define ETHTOOL_GRSSH 0x00000046
551#define ETHTOOL_SRSSH 0x00000047
Christopher Ferris82d75042015-01-26 10:57:07 -0800552#define ETHTOOL_GTUNABLE 0x00000048
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800554#define ETHTOOL_STUNABLE 0x00000049
555#define SPARC_ETH_GSET ETHTOOL_GSET
Ben Cheng655a7c02013-10-16 16:09:24 -0700556#define SPARC_ETH_SSET ETHTOOL_SSET
557#define SUPPORTED_10baseT_Half (1 << 0)
Christopher Ferris82d75042015-01-26 10:57:07 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700559#define SUPPORTED_10baseT_Full (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700560#define SUPPORTED_100baseT_Half (1 << 2)
561#define SUPPORTED_100baseT_Full (1 << 3)
562#define SUPPORTED_1000baseT_Half (1 << 4)
Christopher Ferris82d75042015-01-26 10:57:07 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700564#define SUPPORTED_1000baseT_Full (1 << 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700565#define SUPPORTED_Autoneg (1 << 6)
566#define SUPPORTED_TP (1 << 7)
567#define SUPPORTED_AUI (1 << 8)
Christopher Ferris82d75042015-01-26 10:57:07 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700569#define SUPPORTED_MII (1 << 9)
Ben Cheng655a7c02013-10-16 16:09:24 -0700570#define SUPPORTED_FIBRE (1 << 10)
571#define SUPPORTED_BNC (1 << 11)
572#define SUPPORTED_10000baseT_Full (1 << 12)
Christopher Ferris82d75042015-01-26 10:57:07 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700574#define SUPPORTED_Pause (1 << 13)
Ben Cheng655a7c02013-10-16 16:09:24 -0700575#define SUPPORTED_Asym_Pause (1 << 14)
576#define SUPPORTED_2500baseX_Full (1 << 15)
577#define SUPPORTED_Backplane (1 << 16)
Christopher Ferris82d75042015-01-26 10:57:07 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700579#define SUPPORTED_1000baseKX_Full (1 << 17)
Ben Cheng655a7c02013-10-16 16:09:24 -0700580#define SUPPORTED_10000baseKX4_Full (1 << 18)
581#define SUPPORTED_10000baseKR_Full (1 << 19)
582#define SUPPORTED_10000baseR_FEC (1 << 20)
Christopher Ferris82d75042015-01-26 10:57:07 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700584#define SUPPORTED_20000baseMLD2_Full (1 << 21)
Ben Cheng655a7c02013-10-16 16:09:24 -0700585#define SUPPORTED_20000baseKR2_Full (1 << 22)
586#define SUPPORTED_40000baseKR4_Full (1 << 23)
587#define SUPPORTED_40000baseCR4_Full (1 << 24)
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700589#define SUPPORTED_40000baseSR4_Full (1 << 25)
Ben Cheng655a7c02013-10-16 16:09:24 -0700590#define SUPPORTED_40000baseLR4_Full (1 << 26)
591#define ADVERTISED_10baseT_Half (1 << 0)
592#define ADVERTISED_10baseT_Full (1 << 1)
Christopher Ferris82d75042015-01-26 10:57:07 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700594#define ADVERTISED_100baseT_Half (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700595#define ADVERTISED_100baseT_Full (1 << 3)
596#define ADVERTISED_1000baseT_Half (1 << 4)
597#define ADVERTISED_1000baseT_Full (1 << 5)
Christopher Ferris82d75042015-01-26 10:57:07 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700599#define ADVERTISED_Autoneg (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700600#define ADVERTISED_TP (1 << 7)
601#define ADVERTISED_AUI (1 << 8)
602#define ADVERTISED_MII (1 << 9)
Christopher Ferris82d75042015-01-26 10:57:07 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700604#define ADVERTISED_FIBRE (1 << 10)
Ben Cheng655a7c02013-10-16 16:09:24 -0700605#define ADVERTISED_BNC (1 << 11)
606#define ADVERTISED_10000baseT_Full (1 << 12)
607#define ADVERTISED_Pause (1 << 13)
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700609#define ADVERTISED_Asym_Pause (1 << 14)
Ben Cheng655a7c02013-10-16 16:09:24 -0700610#define ADVERTISED_2500baseX_Full (1 << 15)
611#define ADVERTISED_Backplane (1 << 16)
612#define ADVERTISED_1000baseKX_Full (1 << 17)
Christopher Ferris82d75042015-01-26 10:57:07 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700614#define ADVERTISED_10000baseKX4_Full (1 << 18)
Ben Cheng655a7c02013-10-16 16:09:24 -0700615#define ADVERTISED_10000baseKR_Full (1 << 19)
616#define ADVERTISED_10000baseR_FEC (1 << 20)
617#define ADVERTISED_20000baseMLD2_Full (1 << 21)
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700619#define ADVERTISED_20000baseKR2_Full (1 << 22)
Ben Cheng655a7c02013-10-16 16:09:24 -0700620#define ADVERTISED_40000baseKR4_Full (1 << 23)
621#define ADVERTISED_40000baseCR4_Full (1 << 24)
622#define ADVERTISED_40000baseSR4_Full (1 << 25)
Christopher Ferris82d75042015-01-26 10:57:07 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700624#define ADVERTISED_40000baseLR4_Full (1 << 26)
Ben Cheng655a7c02013-10-16 16:09:24 -0700625#define SPEED_10 10
626#define SPEED_100 100
627#define SPEED_1000 1000
Christopher Ferris82d75042015-01-26 10:57:07 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700629#define SPEED_2500 2500
Ben Cheng655a7c02013-10-16 16:09:24 -0700630#define SPEED_10000 10000
Tao Baod7db5942015-01-28 10:07:51 -0800631#define SPEED_UNKNOWN - 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700632#define DUPLEX_HALF 0x00
Christopher Ferris82d75042015-01-26 10:57:07 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700634#define DUPLEX_FULL 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700635#define DUPLEX_UNKNOWN 0xff
636#define PORT_TP 0x00
637#define PORT_AUI 0x01
Christopher Ferris82d75042015-01-26 10:57:07 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700639#define PORT_MII 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700640#define PORT_FIBRE 0x03
641#define PORT_BNC 0x04
642#define PORT_DA 0x05
Christopher Ferris82d75042015-01-26 10:57:07 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700644#define PORT_NONE 0xef
Ben Cheng655a7c02013-10-16 16:09:24 -0700645#define PORT_OTHER 0xff
646#define XCVR_INTERNAL 0x00
647#define XCVR_EXTERNAL 0x01
Christopher Ferris82d75042015-01-26 10:57:07 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700649#define XCVR_DUMMY1 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700650#define XCVR_DUMMY2 0x03
651#define XCVR_DUMMY3 0x04
652#define AUTONEG_DISABLE 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 AUTONEG_ENABLE 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700655#define ETH_TP_MDI_INVALID 0x00
656#define ETH_TP_MDI 0x01
657#define ETH_TP_MDI_X 0x02
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 ETH_TP_MDI_AUTO 0x03
Ben Cheng655a7c02013-10-16 16:09:24 -0700660#define WAKE_PHY (1 << 0)
661#define WAKE_UCAST (1 << 1)
662#define WAKE_MCAST (1 << 2)
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 WAKE_BCAST (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700665#define WAKE_ARP (1 << 4)
666#define WAKE_MAGIC (1 << 5)
667#define WAKE_MAGICSECURE (1 << 6)
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 TCP_V4_FLOW 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -0700670#define UDP_V4_FLOW 0x02
671#define SCTP_V4_FLOW 0x03
672#define AH_ESP_V4_FLOW 0x04
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 TCP_V6_FLOW 0x05
Ben Cheng655a7c02013-10-16 16:09:24 -0700675#define UDP_V6_FLOW 0x06
676#define SCTP_V6_FLOW 0x07
677#define AH_ESP_V6_FLOW 0x08
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 AH_V4_FLOW 0x09
Ben Cheng655a7c02013-10-16 16:09:24 -0700680#define ESP_V4_FLOW 0x0a
681#define AH_V6_FLOW 0x0b
682#define ESP_V6_FLOW 0x0c
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 IP_USER_FLOW 0x0d
Ben Cheng655a7c02013-10-16 16:09:24 -0700685#define IPV4_FLOW 0x10
686#define IPV6_FLOW 0x11
687#define ETHER_FLOW 0x12
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 FLOW_EXT 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700690#define FLOW_MAC_EXT 0x40000000
691#define RXH_L2DA (1 << 1)
692#define RXH_VLAN (1 << 2)
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 RXH_L3_PROTO (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700695#define RXH_IP_SRC (1 << 4)
696#define RXH_IP_DST (1 << 5)
697#define RXH_L4_B_0_1 (1 << 6)
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 RXH_L4_B_2_3 (1 << 7)
Ben Cheng655a7c02013-10-16 16:09:24 -0700700#define RXH_DISCARD (1 << 31)
701#define RX_CLS_FLOW_DISC 0xffffffffffffffffULL
702#define RX_CLS_LOC_SPECIAL 0x80000000
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 RX_CLS_LOC_ANY 0xffffffff
Ben Cheng655a7c02013-10-16 16:09:24 -0700705#define RX_CLS_LOC_FIRST 0xfffffffe
706#define RX_CLS_LOC_LAST 0xfffffffd
707#define ETH_MODULE_SFF_8079 0x1
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 ETH_MODULE_SFF_8079_LEN 256
Ben Cheng655a7c02013-10-16 16:09:24 -0700710#define ETH_MODULE_SFF_8472 0x2
711#define ETH_MODULE_SFF_8472_LEN 512
712enum ethtool_reset_flags {
Christopher Ferris82d75042015-01-26 10:57:07 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800714 ETH_RESET_MGMT = 1 << 0,
715 ETH_RESET_IRQ = 1 << 1,
716 ETH_RESET_DMA = 1 << 2,
717 ETH_RESET_FILTER = 1 << 3,
Christopher Ferris82d75042015-01-26 10:57:07 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800719 ETH_RESET_OFFLOAD = 1 << 4,
720 ETH_RESET_MAC = 1 << 5,
721 ETH_RESET_PHY = 1 << 6,
722 ETH_RESET_RAM = 1 << 7,
Christopher Ferris82d75042015-01-26 10:57:07 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800724 ETH_RESET_DEDICATED = 0x0000ffff,
725 ETH_RESET_ALL = 0xffffffff,
Ben Cheng655a7c02013-10-16 16:09:24 -0700726};
727#define ETH_RESET_SHARED_SHIFT 16
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#endif