ethtool.h revision 6a9755d20a995756487bb1aafb7e954f4fd868a7
1/**************************************************************************** 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/kernel.h> 22#include <linux/types.h> 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#include <linux/if_ether.h> 25#include <limits.h> 26struct ethtool_cmd { 27 __u32 cmd; 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 __u32 supported; 30 __u32 advertising; 31 __u16 speed; 32 __u8 duplex; 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u8 port; 35 __u8 phy_address; 36 __u8 transceiver; 37 __u8 autoneg; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __u8 mdio_support; 40 __u32 maxtxpkt; 41 __u32 maxrxpkt; 42 __u16 speed_hi; 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __u8 eth_tp_mdix; 45 __u8 eth_tp_mdix_ctrl; 46 __u32 lp_advertising; 47 __u32 reserved[2]; 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49}; 50#define ETH_MDIO_SUPPORTS_C22 1 51#define ETH_MDIO_SUPPORTS_C45 2 52#define ETHTOOL_FWVERS_LEN 32 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54#define ETHTOOL_BUSINFO_LEN 32 55#define ETHTOOL_EROMVERS_LEN 32 56struct ethtool_drvinfo { 57 __u32 cmd; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 char driver[32]; 60 char version[32]; 61 char fw_version[ETHTOOL_FWVERS_LEN]; 62 char bus_info[ETHTOOL_BUSINFO_LEN]; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 char erom_version[ETHTOOL_EROMVERS_LEN]; 65 char reserved2[12]; 66 __u32 n_priv_flags; 67 __u32 n_stats; 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __u32 testinfo_len; 70 __u32 eedump_len; 71 __u32 regdump_len; 72}; 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74#define SOPASS_MAX 6 75struct ethtool_wolinfo { 76 __u32 cmd; 77 __u32 supported; 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 __u32 wolopts; 80 __u8 sopass[SOPASS_MAX]; 81}; 82struct ethtool_value { 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 __u32 cmd; 85 __u32 data; 86}; 87enum tunable_id { 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 ETHTOOL_ID_UNSPEC, 90 ETHTOOL_RX_COPYBREAK, 91 ETHTOOL_TX_COPYBREAK, 92 __ETHTOOL_TUNABLE_COUNT, 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94}; 95enum tunable_type_id { 96 ETHTOOL_TUNABLE_UNSPEC, 97 ETHTOOL_TUNABLE_U8, 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 ETHTOOL_TUNABLE_U16, 100 ETHTOOL_TUNABLE_U32, 101 ETHTOOL_TUNABLE_U64, 102 ETHTOOL_TUNABLE_STRING, 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 ETHTOOL_TUNABLE_S8, 105 ETHTOOL_TUNABLE_S16, 106 ETHTOOL_TUNABLE_S32, 107 ETHTOOL_TUNABLE_S64, 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109}; 110struct ethtool_tunable { 111 __u32 cmd; 112 __u32 id; 113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 __u32 type_id; 115 __u32 len; 116 void * data[0]; 117}; 118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119struct ethtool_regs { 120 __u32 cmd; 121 __u32 version; 122 __u32 len; 123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 __u8 data[0]; 125}; 126struct ethtool_eeprom { 127 __u32 cmd; 128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 __u32 magic; 130 __u32 offset; 131 __u32 len; 132 __u8 data[0]; 133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134}; 135struct ethtool_eee { 136 __u32 cmd; 137 __u32 supported; 138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 __u32 advertised; 140 __u32 lp_advertised; 141 __u32 eee_active; 142 __u32 eee_enabled; 143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 __u32 tx_lpi_enabled; 145 __u32 tx_lpi_timer; 146 __u32 reserved[2]; 147}; 148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149struct ethtool_modinfo { 150 __u32 cmd; 151 __u32 type; 152 __u32 eeprom_len; 153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 __u32 reserved[8]; 155}; 156struct ethtool_coalesce { 157 __u32 cmd; 158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 __u32 rx_coalesce_usecs; 160 __u32 rx_max_coalesced_frames; 161 __u32 rx_coalesce_usecs_irq; 162 __u32 rx_max_coalesced_frames_irq; 163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 __u32 tx_coalesce_usecs; 165 __u32 tx_max_coalesced_frames; 166 __u32 tx_coalesce_usecs_irq; 167 __u32 tx_max_coalesced_frames_irq; 168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 __u32 stats_block_coalesce_usecs; 170 __u32 use_adaptive_rx_coalesce; 171 __u32 use_adaptive_tx_coalesce; 172 __u32 pkt_rate_low; 173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 __u32 rx_coalesce_usecs_low; 175 __u32 rx_max_coalesced_frames_low; 176 __u32 tx_coalesce_usecs_low; 177 __u32 tx_max_coalesced_frames_low; 178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 __u32 pkt_rate_high; 180 __u32 rx_coalesce_usecs_high; 181 __u32 rx_max_coalesced_frames_high; 182 __u32 tx_coalesce_usecs_high; 183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 __u32 tx_max_coalesced_frames_high; 185 __u32 rate_sample_interval; 186}; 187struct ethtool_ringparam { 188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 __u32 cmd; 190 __u32 rx_max_pending; 191 __u32 rx_mini_max_pending; 192 __u32 rx_jumbo_max_pending; 193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 __u32 tx_max_pending; 195 __u32 rx_pending; 196 __u32 rx_mini_pending; 197 __u32 rx_jumbo_pending; 198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 __u32 tx_pending; 200}; 201struct ethtool_channels { 202 __u32 cmd; 203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 __u32 max_rx; 205 __u32 max_tx; 206 __u32 max_other; 207 __u32 max_combined; 208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209 __u32 rx_count; 210 __u32 tx_count; 211 __u32 other_count; 212 __u32 combined_count; 213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214}; 215struct ethtool_pauseparam { 216 __u32 cmd; 217 __u32 autoneg; 218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219 __u32 rx_pause; 220 __u32 tx_pause; 221}; 222#define ETH_GSTRING_LEN 32 223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224enum ethtool_stringset { 225 ETH_SS_TEST = 0, 226 ETH_SS_STATS, 227 ETH_SS_PRIV_FLAGS, 228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229 ETH_SS_NTUPLE_FILTERS, 230 ETH_SS_FEATURES, 231 ETH_SS_RSS_HASH_FUNCS, 232 ETH_SS_TUNABLES, 233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234 ETH_SS_PHY_STATS, 235}; 236struct ethtool_gstrings { 237 __u32 cmd; 238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239 __u32 string_set; 240 __u32 len; 241 __u8 data[0]; 242}; 243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244struct ethtool_sset_info { 245 __u32 cmd; 246 __u32 reserved; 247 __u64 sset_mask; 248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 249 __u32 data[0]; 250}; 251enum ethtool_test_flags { 252 ETH_TEST_FL_OFFLINE = (1 << 0), 253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 254 ETH_TEST_FL_FAILED = (1 << 1), 255 ETH_TEST_FL_EXTERNAL_LB = (1 << 2), 256 ETH_TEST_FL_EXTERNAL_LB_DONE = (1 << 3), 257}; 258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 259struct ethtool_test { 260 __u32 cmd; 261 __u32 flags; 262 __u32 reserved; 263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 264 __u32 len; 265 __u64 data[0]; 266}; 267struct ethtool_stats { 268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 269 __u32 cmd; 270 __u32 n_stats; 271 __u64 data[0]; 272}; 273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 274struct ethtool_perm_addr { 275 __u32 cmd; 276 __u32 size; 277 __u8 data[0]; 278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 279}; 280enum ethtool_flags { 281 ETH_FLAG_TXVLAN = (1 << 7), 282 ETH_FLAG_RXVLAN = (1 << 8), 283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 284 ETH_FLAG_LRO = (1 << 15), 285 ETH_FLAG_NTUPLE = (1 << 27), 286 ETH_FLAG_RXHASH = (1 << 28), 287}; 288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 289struct ethtool_tcpip4_spec { 290 __be32 ip4src; 291 __be32 ip4dst; 292 __be16 psrc; 293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294 __be16 pdst; 295 __u8 tos; 296}; 297struct ethtool_ah_espip4_spec { 298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 299 __be32 ip4src; 300 __be32 ip4dst; 301 __be32 spi; 302 __u8 tos; 303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 304}; 305#define ETH_RX_NFC_IP4 1 306struct ethtool_usrip4_spec { 307 __be32 ip4src; 308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 309 __be32 ip4dst; 310 __be32 l4_4_bytes; 311 __u8 tos; 312 __u8 ip_ver; 313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 314 __u8 proto; 315}; 316struct ethtool_tcpip6_spec { 317 __be32 ip6src[4]; 318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 319 __be32 ip6dst[4]; 320 __be16 psrc; 321 __be16 pdst; 322 __u8 tclass; 323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 324}; 325struct ethtool_ah_espip6_spec { 326 __be32 ip6src[4]; 327 __be32 ip6dst[4]; 328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 329 __be32 spi; 330 __u8 tclass; 331}; 332struct ethtool_usrip6_spec { 333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 334 __be32 ip6src[4]; 335 __be32 ip6dst[4]; 336 __be32 l4_4_bytes; 337 __u8 tclass; 338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 339 __u8 l4_proto; 340}; 341union ethtool_flow_union { 342 struct ethtool_tcpip4_spec tcp_ip4_spec; 343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344 struct ethtool_tcpip4_spec udp_ip4_spec; 345 struct ethtool_tcpip4_spec sctp_ip4_spec; 346 struct ethtool_ah_espip4_spec ah_ip4_spec; 347 struct ethtool_ah_espip4_spec esp_ip4_spec; 348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 349 struct ethtool_usrip4_spec usr_ip4_spec; 350 struct ethtool_tcpip6_spec tcp_ip6_spec; 351 struct ethtool_tcpip6_spec udp_ip6_spec; 352 struct ethtool_tcpip6_spec sctp_ip6_spec; 353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 354 struct ethtool_ah_espip6_spec ah_ip6_spec; 355 struct ethtool_ah_espip6_spec esp_ip6_spec; 356 struct ethtool_usrip6_spec usr_ip6_spec; 357 struct ethhdr ether_spec; 358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 359 __u8 hdata[52]; 360}; 361struct ethtool_flow_ext { 362 __u8 padding[2]; 363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 364 unsigned char h_dest[ETH_ALEN]; 365 __be16 vlan_etype; 366 __be16 vlan_tci; 367 __be32 data[2]; 368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 369}; 370struct ethtool_rx_flow_spec { 371 __u32 flow_type; 372 union ethtool_flow_union h_u; 373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 374 struct ethtool_flow_ext h_ext; 375 union ethtool_flow_union m_u; 376 struct ethtool_flow_ext m_ext; 377 __u64 ring_cookie; 378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 379 __u32 location; 380}; 381#define ETHTOOL_RX_FLOW_SPEC_RING 0x00000000FFFFFFFFLL 382#define ETHTOOL_RX_FLOW_SPEC_RING_VF 0x000000FF00000000LL 383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 384#define ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF 32 385struct ethtool_rxfh_indir { 386 __u32 cmd; 387 __u32 size; 388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 389 __u32 ring_index[0]; 390}; 391struct ethtool_rxfh { 392 __u32 cmd; 393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394 __u32 rss_context; 395 __u32 indir_size; 396 __u32 key_size; 397 __u8 hfunc; 398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 399 __u8 rsvd8[3]; 400 __u32 rsvd32; 401 __u32 rss_config[0]; 402}; 403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 404#define ETH_RXFH_INDIR_NO_CHANGE 0xffffffff 405struct ethtool_rx_ntuple_flow_spec { 406 __u32 flow_type; 407 union { 408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 409 struct ethtool_tcpip4_spec tcp_ip4_spec; 410 struct ethtool_tcpip4_spec udp_ip4_spec; 411 struct ethtool_tcpip4_spec sctp_ip4_spec; 412 struct ethtool_ah_espip4_spec ah_ip4_spec; 413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 414 struct ethtool_ah_espip4_spec esp_ip4_spec; 415 struct ethtool_usrip4_spec usr_ip4_spec; 416 struct ethhdr ether_spec; 417 __u8 hdata[72]; 418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 419 } h_u, m_u; 420 __u16 vlan_tag; 421 __u16 vlan_tag_mask; 422 __u64 data; 423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 424 __u64 data_mask; 425 __s32 action; 426#define ETHTOOL_RXNTUPLE_ACTION_DROP (- 1) 427#define ETHTOOL_RXNTUPLE_ACTION_CLEAR (- 2) 428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 429}; 430struct ethtool_rx_ntuple { 431 __u32 cmd; 432 struct ethtool_rx_ntuple_flow_spec fs; 433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 434}; 435#define ETHTOOL_FLASH_MAX_FILENAME 128 436enum ethtool_flash_op_type { 437 ETHTOOL_FLASH_ALL_REGIONS = 0, 438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 439}; 440struct ethtool_flash { 441 __u32 cmd; 442 __u32 region; 443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 444 char data[ETHTOOL_FLASH_MAX_FILENAME]; 445}; 446struct ethtool_dump { 447 __u32 cmd; 448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 449 __u32 version; 450 __u32 flag; 451 __u32 len; 452 __u8 data[0]; 453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 454}; 455#define ETH_FW_DUMP_DISABLE 0 456struct ethtool_get_features_block { 457 __u32 available; 458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 459 __u32 requested; 460 __u32 active; 461 __u32 never_changed; 462}; 463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 464struct ethtool_gfeatures { 465 __u32 cmd; 466 __u32 size; 467 struct ethtool_get_features_block features[0]; 468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 469}; 470struct ethtool_set_features_block { 471 __u32 valid; 472 __u32 requested; 473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 474}; 475struct ethtool_sfeatures { 476 __u32 cmd; 477 __u32 size; 478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 479 struct ethtool_set_features_block features[0]; 480}; 481struct ethtool_ts_info { 482 __u32 cmd; 483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 484 __u32 so_timestamping; 485 __s32 phc_index; 486 __u32 tx_types; 487 __u32 tx_reserved[3]; 488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 489 __u32 rx_filters; 490 __u32 rx_reserved[3]; 491}; 492enum ethtool_sfeatures_retval_bits { 493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 494 ETHTOOL_F_UNSUPPORTED__BIT, 495 ETHTOOL_F_WISH__BIT, 496 ETHTOOL_F_COMPAT__BIT, 497}; 498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 499#define ETHTOOL_F_UNSUPPORTED (1 << ETHTOOL_F_UNSUPPORTED__BIT) 500#define ETHTOOL_F_WISH (1 << ETHTOOL_F_WISH__BIT) 501#define ETHTOOL_F_COMPAT (1 << ETHTOOL_F_COMPAT__BIT) 502#define MAX_NUM_QUEUE 4096 503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 504struct ethtool_per_queue_op { 505 __u32 cmd; 506 __u32 sub_command; 507 __u32 queue_mask[__KERNEL_DIV_ROUND_UP(MAX_NUM_QUEUE, 32)]; 508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 509 char data[]; 510}; 511#define ETHTOOL_GSET 0x00000001 512#define ETHTOOL_SSET 0x00000002 513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 514#define ETHTOOL_GDRVINFO 0x00000003 515#define ETHTOOL_GREGS 0x00000004 516#define ETHTOOL_GWOL 0x00000005 517#define ETHTOOL_SWOL 0x00000006 518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 519#define ETHTOOL_GMSGLVL 0x00000007 520#define ETHTOOL_SMSGLVL 0x00000008 521#define ETHTOOL_NWAY_RST 0x00000009 522#define ETHTOOL_GLINK 0x0000000a 523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 524#define ETHTOOL_GEEPROM 0x0000000b 525#define ETHTOOL_SEEPROM 0x0000000c 526#define ETHTOOL_GCOALESCE 0x0000000e 527#define ETHTOOL_SCOALESCE 0x0000000f 528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 529#define ETHTOOL_GRINGPARAM 0x00000010 530#define ETHTOOL_SRINGPARAM 0x00000011 531#define ETHTOOL_GPAUSEPARAM 0x00000012 532#define ETHTOOL_SPAUSEPARAM 0x00000013 533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 534#define ETHTOOL_GRXCSUM 0x00000014 535#define ETHTOOL_SRXCSUM 0x00000015 536#define ETHTOOL_GTXCSUM 0x00000016 537#define ETHTOOL_STXCSUM 0x00000017 538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 539#define ETHTOOL_GSG 0x00000018 540#define ETHTOOL_SSG 0x00000019 541#define ETHTOOL_TEST 0x0000001a 542#define ETHTOOL_GSTRINGS 0x0000001b 543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 544#define ETHTOOL_PHYS_ID 0x0000001c 545#define ETHTOOL_GSTATS 0x0000001d 546#define ETHTOOL_GTSO 0x0000001e 547#define ETHTOOL_STSO 0x0000001f 548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 549#define ETHTOOL_GPERMADDR 0x00000020 550#define ETHTOOL_GUFO 0x00000021 551#define ETHTOOL_SUFO 0x00000022 552#define ETHTOOL_GGSO 0x00000023 553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 554#define ETHTOOL_SGSO 0x00000024 555#define ETHTOOL_GFLAGS 0x00000025 556#define ETHTOOL_SFLAGS 0x00000026 557#define ETHTOOL_GPFLAGS 0x00000027 558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 559#define ETHTOOL_SPFLAGS 0x00000028 560#define ETHTOOL_GRXFH 0x00000029 561#define ETHTOOL_SRXFH 0x0000002a 562#define ETHTOOL_GGRO 0x0000002b 563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 564#define ETHTOOL_SGRO 0x0000002c 565#define ETHTOOL_GRXRINGS 0x0000002d 566#define ETHTOOL_GRXCLSRLCNT 0x0000002e 567#define ETHTOOL_GRXCLSRULE 0x0000002f 568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 569#define ETHTOOL_GRXCLSRLALL 0x00000030 570#define ETHTOOL_SRXCLSRLDEL 0x00000031 571#define ETHTOOL_SRXCLSRLINS 0x00000032 572#define ETHTOOL_FLASHDEV 0x00000033 573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 574#define ETHTOOL_RESET 0x00000034 575#define ETHTOOL_SRXNTUPLE 0x00000035 576#define ETHTOOL_GRXNTUPLE 0x00000036 577#define ETHTOOL_GSSET_INFO 0x00000037 578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 579#define ETHTOOL_GRXFHINDIR 0x00000038 580#define ETHTOOL_SRXFHINDIR 0x00000039 581#define ETHTOOL_GFEATURES 0x0000003a 582#define ETHTOOL_SFEATURES 0x0000003b 583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 584#define ETHTOOL_GCHANNELS 0x0000003c 585#define ETHTOOL_SCHANNELS 0x0000003d 586#define ETHTOOL_SET_DUMP 0x0000003e 587#define ETHTOOL_GET_DUMP_FLAG 0x0000003f 588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 589#define ETHTOOL_GET_DUMP_DATA 0x00000040 590#define ETHTOOL_GET_TS_INFO 0x00000041 591#define ETHTOOL_GMODULEINFO 0x00000042 592#define ETHTOOL_GMODULEEEPROM 0x00000043 593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 594#define ETHTOOL_GEEE 0x00000044 595#define ETHTOOL_SEEE 0x00000045 596#define ETHTOOL_GRSSH 0x00000046 597#define ETHTOOL_SRSSH 0x00000047 598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 599#define ETHTOOL_GTUNABLE 0x00000048 600#define ETHTOOL_STUNABLE 0x00000049 601#define ETHTOOL_GPHYSTATS 0x0000004a 602#define ETHTOOL_PERQUEUE 0x0000004b 603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 604#define ETHTOOL_GLINKSETTINGS 0x0000004c 605#define ETHTOOL_SLINKSETTINGS 0x0000004d 606#define SPARC_ETH_GSET ETHTOOL_GSET 607#define SPARC_ETH_SSET ETHTOOL_SSET 608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 609enum ethtool_link_mode_bit_indices { 610 ETHTOOL_LINK_MODE_10baseT_Half_BIT = 0, 611 ETHTOOL_LINK_MODE_10baseT_Full_BIT = 1, 612 ETHTOOL_LINK_MODE_100baseT_Half_BIT = 2, 613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 614 ETHTOOL_LINK_MODE_100baseT_Full_BIT = 3, 615 ETHTOOL_LINK_MODE_1000baseT_Half_BIT = 4, 616 ETHTOOL_LINK_MODE_1000baseT_Full_BIT = 5, 617 ETHTOOL_LINK_MODE_Autoneg_BIT = 6, 618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 619 ETHTOOL_LINK_MODE_TP_BIT = 7, 620 ETHTOOL_LINK_MODE_AUI_BIT = 8, 621 ETHTOOL_LINK_MODE_MII_BIT = 9, 622 ETHTOOL_LINK_MODE_FIBRE_BIT = 10, 623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 624 ETHTOOL_LINK_MODE_BNC_BIT = 11, 625 ETHTOOL_LINK_MODE_10000baseT_Full_BIT = 12, 626 ETHTOOL_LINK_MODE_Pause_BIT = 13, 627 ETHTOOL_LINK_MODE_Asym_Pause_BIT = 14, 628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 629 ETHTOOL_LINK_MODE_2500baseX_Full_BIT = 15, 630 ETHTOOL_LINK_MODE_Backplane_BIT = 16, 631 ETHTOOL_LINK_MODE_1000baseKX_Full_BIT = 17, 632 ETHTOOL_LINK_MODE_10000baseKX4_Full_BIT = 18, 633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 634 ETHTOOL_LINK_MODE_10000baseKR_Full_BIT = 19, 635 ETHTOOL_LINK_MODE_10000baseR_FEC_BIT = 20, 636 ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT = 21, 637 ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT = 22, 638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 639 ETHTOOL_LINK_MODE_40000baseKR4_Full_BIT = 23, 640 ETHTOOL_LINK_MODE_40000baseCR4_Full_BIT = 24, 641 ETHTOOL_LINK_MODE_40000baseSR4_Full_BIT = 25, 642 ETHTOOL_LINK_MODE_40000baseLR4_Full_BIT = 26, 643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 644 ETHTOOL_LINK_MODE_56000baseKR4_Full_BIT = 27, 645 ETHTOOL_LINK_MODE_56000baseCR4_Full_BIT = 28, 646 ETHTOOL_LINK_MODE_56000baseSR4_Full_BIT = 29, 647 ETHTOOL_LINK_MODE_56000baseLR4_Full_BIT = 30, 648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 649 ETHTOOL_LINK_MODE_25000baseCR_Full_BIT = 31, 650 ETHTOOL_LINK_MODE_25000baseKR_Full_BIT = 32, 651 ETHTOOL_LINK_MODE_25000baseSR_Full_BIT = 33, 652 ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT = 34, 653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 654 ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT = 35, 655 ETHTOOL_LINK_MODE_100000baseKR4_Full_BIT = 36, 656 ETHTOOL_LINK_MODE_100000baseSR4_Full_BIT = 37, 657 ETHTOOL_LINK_MODE_100000baseCR4_Full_BIT = 38, 658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 659 ETHTOOL_LINK_MODE_100000baseLR4_ER4_Full_BIT = 39, 660 ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT = 40, 661 ETHTOOL_LINK_MODE_1000baseX_Full_BIT = 41, 662 ETHTOOL_LINK_MODE_10000baseCR_Full_BIT = 42, 663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 664 ETHTOOL_LINK_MODE_10000baseSR_Full_BIT = 43, 665 ETHTOOL_LINK_MODE_10000baseLR_Full_BIT = 44, 666 ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT = 45, 667 ETHTOOL_LINK_MODE_10000baseER_Full_BIT = 46, 668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 669 __ETHTOOL_LINK_MODE_LAST = ETHTOOL_LINK_MODE_10000baseER_Full_BIT, 670}; 671#define __ETHTOOL_LINK_MODE_LEGACY_MASK(base_name) (1UL << (ETHTOOL_LINK_MODE_ ##base_name ##_BIT)) 672#define SUPPORTED_10baseT_Half __ETHTOOL_LINK_MODE_LEGACY_MASK(10baseT_Half) 673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 674#define SUPPORTED_10baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10baseT_Full) 675#define SUPPORTED_100baseT_Half __ETHTOOL_LINK_MODE_LEGACY_MASK(100baseT_Half) 676#define SUPPORTED_100baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(100baseT_Full) 677#define SUPPORTED_1000baseT_Half __ETHTOOL_LINK_MODE_LEGACY_MASK(1000baseT_Half) 678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 679#define SUPPORTED_1000baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(1000baseT_Full) 680#define SUPPORTED_Autoneg __ETHTOOL_LINK_MODE_LEGACY_MASK(Autoneg) 681#define SUPPORTED_TP __ETHTOOL_LINK_MODE_LEGACY_MASK(TP) 682#define SUPPORTED_AUI __ETHTOOL_LINK_MODE_LEGACY_MASK(AUI) 683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 684#define SUPPORTED_MII __ETHTOOL_LINK_MODE_LEGACY_MASK(MII) 685#define SUPPORTED_FIBRE __ETHTOOL_LINK_MODE_LEGACY_MASK(FIBRE) 686#define SUPPORTED_BNC __ETHTOOL_LINK_MODE_LEGACY_MASK(BNC) 687#define SUPPORTED_10000baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseT_Full) 688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 689#define SUPPORTED_Pause __ETHTOOL_LINK_MODE_LEGACY_MASK(Pause) 690#define SUPPORTED_Asym_Pause __ETHTOOL_LINK_MODE_LEGACY_MASK(Asym_Pause) 691#define SUPPORTED_2500baseX_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(2500baseX_Full) 692#define SUPPORTED_Backplane __ETHTOOL_LINK_MODE_LEGACY_MASK(Backplane) 693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 694#define SUPPORTED_1000baseKX_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(1000baseKX_Full) 695#define SUPPORTED_10000baseKX4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseKX4_Full) 696#define SUPPORTED_10000baseKR_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseKR_Full) 697#define SUPPORTED_10000baseR_FEC __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseR_FEC) 698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 699#define SUPPORTED_20000baseMLD2_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(20000baseMLD2_Full) 700#define SUPPORTED_20000baseKR2_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(20000baseKR2_Full) 701#define SUPPORTED_40000baseKR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseKR4_Full) 702#define SUPPORTED_40000baseCR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseCR4_Full) 703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 704#define SUPPORTED_40000baseSR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseSR4_Full) 705#define SUPPORTED_40000baseLR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseLR4_Full) 706#define SUPPORTED_56000baseKR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseKR4_Full) 707#define SUPPORTED_56000baseCR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseCR4_Full) 708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 709#define SUPPORTED_56000baseSR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseSR4_Full) 710#define SUPPORTED_56000baseLR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseLR4_Full) 711#define ADVERTISED_10baseT_Half __ETHTOOL_LINK_MODE_LEGACY_MASK(10baseT_Half) 712#define ADVERTISED_10baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10baseT_Full) 713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 714#define ADVERTISED_100baseT_Half __ETHTOOL_LINK_MODE_LEGACY_MASK(100baseT_Half) 715#define ADVERTISED_100baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(100baseT_Full) 716#define ADVERTISED_1000baseT_Half __ETHTOOL_LINK_MODE_LEGACY_MASK(1000baseT_Half) 717#define ADVERTISED_1000baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(1000baseT_Full) 718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 719#define ADVERTISED_Autoneg __ETHTOOL_LINK_MODE_LEGACY_MASK(Autoneg) 720#define ADVERTISED_TP __ETHTOOL_LINK_MODE_LEGACY_MASK(TP) 721#define ADVERTISED_AUI __ETHTOOL_LINK_MODE_LEGACY_MASK(AUI) 722#define ADVERTISED_MII __ETHTOOL_LINK_MODE_LEGACY_MASK(MII) 723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 724#define ADVERTISED_FIBRE __ETHTOOL_LINK_MODE_LEGACY_MASK(FIBRE) 725#define ADVERTISED_BNC __ETHTOOL_LINK_MODE_LEGACY_MASK(BNC) 726#define ADVERTISED_10000baseT_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseT_Full) 727#define ADVERTISED_Pause __ETHTOOL_LINK_MODE_LEGACY_MASK(Pause) 728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 729#define ADVERTISED_Asym_Pause __ETHTOOL_LINK_MODE_LEGACY_MASK(Asym_Pause) 730#define ADVERTISED_2500baseX_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(2500baseX_Full) 731#define ADVERTISED_Backplane __ETHTOOL_LINK_MODE_LEGACY_MASK(Backplane) 732#define ADVERTISED_1000baseKX_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(1000baseKX_Full) 733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 734#define ADVERTISED_10000baseKX4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseKX4_Full) 735#define ADVERTISED_10000baseKR_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseKR_Full) 736#define ADVERTISED_10000baseR_FEC __ETHTOOL_LINK_MODE_LEGACY_MASK(10000baseR_FEC) 737#define ADVERTISED_20000baseMLD2_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(20000baseMLD2_Full) 738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 739#define ADVERTISED_20000baseKR2_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(20000baseKR2_Full) 740#define ADVERTISED_40000baseKR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseKR4_Full) 741#define ADVERTISED_40000baseCR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseCR4_Full) 742#define ADVERTISED_40000baseSR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseSR4_Full) 743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 744#define ADVERTISED_40000baseLR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(40000baseLR4_Full) 745#define ADVERTISED_56000baseKR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseKR4_Full) 746#define ADVERTISED_56000baseCR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseCR4_Full) 747#define ADVERTISED_56000baseSR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseSR4_Full) 748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 749#define ADVERTISED_56000baseLR4_Full __ETHTOOL_LINK_MODE_LEGACY_MASK(56000baseLR4_Full) 750#define SPEED_10 10 751#define SPEED_100 100 752#define SPEED_1000 1000 753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 754#define SPEED_2500 2500 755#define SPEED_5000 5000 756#define SPEED_10000 10000 757#define SPEED_20000 20000 758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 759#define SPEED_25000 25000 760#define SPEED_40000 40000 761#define SPEED_50000 50000 762#define SPEED_56000 56000 763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 764#define SPEED_100000 100000 765#define SPEED_UNKNOWN - 1 766#define DUPLEX_HALF 0x00 767#define DUPLEX_FULL 0x01 768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 769#define DUPLEX_UNKNOWN 0xff 770#define PORT_TP 0x00 771#define PORT_AUI 0x01 772#define PORT_MII 0x02 773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 774#define PORT_FIBRE 0x03 775#define PORT_BNC 0x04 776#define PORT_DA 0x05 777#define PORT_NONE 0xef 778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 779#define PORT_OTHER 0xff 780#define XCVR_INTERNAL 0x00 781#define XCVR_EXTERNAL 0x01 782#define XCVR_DUMMY1 0x02 783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 784#define XCVR_DUMMY2 0x03 785#define XCVR_DUMMY3 0x04 786#define AUTONEG_DISABLE 0x00 787#define AUTONEG_ENABLE 0x01 788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 789#define ETH_TP_MDI_INVALID 0x00 790#define ETH_TP_MDI 0x01 791#define ETH_TP_MDI_X 0x02 792#define ETH_TP_MDI_AUTO 0x03 793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 794#define WAKE_PHY (1 << 0) 795#define WAKE_UCAST (1 << 1) 796#define WAKE_MCAST (1 << 2) 797#define WAKE_BCAST (1 << 3) 798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 799#define WAKE_ARP (1 << 4) 800#define WAKE_MAGIC (1 << 5) 801#define WAKE_MAGICSECURE (1 << 6) 802#define TCP_V4_FLOW 0x01 803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 804#define UDP_V4_FLOW 0x02 805#define SCTP_V4_FLOW 0x03 806#define AH_ESP_V4_FLOW 0x04 807#define TCP_V6_FLOW 0x05 808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 809#define UDP_V6_FLOW 0x06 810#define SCTP_V6_FLOW 0x07 811#define AH_ESP_V6_FLOW 0x08 812#define AH_V4_FLOW 0x09 813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 814#define ESP_V4_FLOW 0x0a 815#define AH_V6_FLOW 0x0b 816#define ESP_V6_FLOW 0x0c 817#define IPV4_USER_FLOW 0x0d 818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 819#define IP_USER_FLOW IPV4_USER_FLOW 820#define IPV6_USER_FLOW 0x0e 821#define IPV4_FLOW 0x10 822#define IPV6_FLOW 0x11 823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 824#define ETHER_FLOW 0x12 825#define FLOW_EXT 0x80000000 826#define FLOW_MAC_EXT 0x40000000 827#define RXH_L2DA (1 << 1) 828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 829#define RXH_VLAN (1 << 2) 830#define RXH_L3_PROTO (1 << 3) 831#define RXH_IP_SRC (1 << 4) 832#define RXH_IP_DST (1 << 5) 833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 834#define RXH_L4_B_0_1 (1 << 6) 835#define RXH_L4_B_2_3 (1 << 7) 836#define RXH_DISCARD (1 << 31) 837#define RX_CLS_FLOW_DISC 0xffffffffffffffffULL 838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 839#define RX_CLS_LOC_SPECIAL 0x80000000 840#define RX_CLS_LOC_ANY 0xffffffff 841#define RX_CLS_LOC_FIRST 0xfffffffe 842#define RX_CLS_LOC_LAST 0xfffffffd 843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 844#define ETH_MODULE_SFF_8079 0x1 845#define ETH_MODULE_SFF_8079_LEN 256 846#define ETH_MODULE_SFF_8472 0x2 847#define ETH_MODULE_SFF_8472_LEN 512 848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 849#define ETH_MODULE_SFF_8636 0x3 850#define ETH_MODULE_SFF_8636_LEN 256 851#define ETH_MODULE_SFF_8436 0x4 852#define ETH_MODULE_SFF_8436_LEN 256 853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 854enum ethtool_reset_flags { 855 ETH_RESET_MGMT = 1 << 0, 856 ETH_RESET_IRQ = 1 << 1, 857 ETH_RESET_DMA = 1 << 2, 858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 859 ETH_RESET_FILTER = 1 << 3, 860 ETH_RESET_OFFLOAD = 1 << 4, 861 ETH_RESET_MAC = 1 << 5, 862 ETH_RESET_PHY = 1 << 6, 863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 864 ETH_RESET_RAM = 1 << 7, 865 ETH_RESET_DEDICATED = 0x0000ffff, 866 ETH_RESET_ALL = 0xffffffff, 867}; 868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 869#define ETH_RESET_SHARED_SHIFT 16 870struct ethtool_link_settings { 871 __u32 cmd; 872 __u32 speed; 873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 874 __u8 duplex; 875 __u8 port; 876 __u8 phy_address; 877 __u8 autoneg; 878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 879 __u8 mdio_support; 880 __u8 eth_tp_mdix; 881 __u8 eth_tp_mdix_ctrl; 882 __s8 link_mode_masks_nwords; 883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 884 __u32 reserved[8]; 885 __u32 link_mode_masks[0]; 886}; 887#endif 888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 889