18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * include/uapi/linux/ethtool_netlink.h - netlink interface for ethtool 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * See Documentation/networking/ethtool-netlink.rst in kernel source tree for 68c2ecf20Sopenharmony_ci * doucumentation of the interface. 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef _UAPI_LINUX_ETHTOOL_NETLINK_H_ 108c2ecf20Sopenharmony_ci#define _UAPI_LINUX_ETHTOOL_NETLINK_H_ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include <linux/ethtool.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* message types - userspace to kernel */ 158c2ecf20Sopenharmony_cienum { 168c2ecf20Sopenharmony_ci ETHTOOL_MSG_USER_NONE, 178c2ecf20Sopenharmony_ci ETHTOOL_MSG_STRSET_GET, 188c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKINFO_GET, 198c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKINFO_SET, 208c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKMODES_GET, 218c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKMODES_SET, 228c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKSTATE_GET, 238c2ecf20Sopenharmony_ci ETHTOOL_MSG_DEBUG_GET, 248c2ecf20Sopenharmony_ci ETHTOOL_MSG_DEBUG_SET, 258c2ecf20Sopenharmony_ci ETHTOOL_MSG_WOL_GET, 268c2ecf20Sopenharmony_ci ETHTOOL_MSG_WOL_SET, 278c2ecf20Sopenharmony_ci ETHTOOL_MSG_FEATURES_GET, 288c2ecf20Sopenharmony_ci ETHTOOL_MSG_FEATURES_SET, 298c2ecf20Sopenharmony_ci ETHTOOL_MSG_PRIVFLAGS_GET, 308c2ecf20Sopenharmony_ci ETHTOOL_MSG_PRIVFLAGS_SET, 318c2ecf20Sopenharmony_ci ETHTOOL_MSG_RINGS_GET, 328c2ecf20Sopenharmony_ci ETHTOOL_MSG_RINGS_SET, 338c2ecf20Sopenharmony_ci ETHTOOL_MSG_CHANNELS_GET, 348c2ecf20Sopenharmony_ci ETHTOOL_MSG_CHANNELS_SET, 358c2ecf20Sopenharmony_ci ETHTOOL_MSG_COALESCE_GET, 368c2ecf20Sopenharmony_ci ETHTOOL_MSG_COALESCE_SET, 378c2ecf20Sopenharmony_ci ETHTOOL_MSG_PAUSE_GET, 388c2ecf20Sopenharmony_ci ETHTOOL_MSG_PAUSE_SET, 398c2ecf20Sopenharmony_ci ETHTOOL_MSG_EEE_GET, 408c2ecf20Sopenharmony_ci ETHTOOL_MSG_EEE_SET, 418c2ecf20Sopenharmony_ci ETHTOOL_MSG_TSINFO_GET, 428c2ecf20Sopenharmony_ci ETHTOOL_MSG_CABLE_TEST_ACT, 438c2ecf20Sopenharmony_ci ETHTOOL_MSG_CABLE_TEST_TDR_ACT, 448c2ecf20Sopenharmony_ci ETHTOOL_MSG_TUNNEL_INFO_GET, 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci /* add new constants above here */ 478c2ecf20Sopenharmony_ci __ETHTOOL_MSG_USER_CNT, 488c2ecf20Sopenharmony_ci ETHTOOL_MSG_USER_MAX = __ETHTOOL_MSG_USER_CNT - 1 498c2ecf20Sopenharmony_ci}; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci/* message types - kernel to userspace */ 528c2ecf20Sopenharmony_cienum { 538c2ecf20Sopenharmony_ci ETHTOOL_MSG_KERNEL_NONE, 548c2ecf20Sopenharmony_ci ETHTOOL_MSG_STRSET_GET_REPLY, 558c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKINFO_GET_REPLY, 568c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKINFO_NTF, 578c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKMODES_GET_REPLY, 588c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKMODES_NTF, 598c2ecf20Sopenharmony_ci ETHTOOL_MSG_LINKSTATE_GET_REPLY, 608c2ecf20Sopenharmony_ci ETHTOOL_MSG_DEBUG_GET_REPLY, 618c2ecf20Sopenharmony_ci ETHTOOL_MSG_DEBUG_NTF, 628c2ecf20Sopenharmony_ci ETHTOOL_MSG_WOL_GET_REPLY, 638c2ecf20Sopenharmony_ci ETHTOOL_MSG_WOL_NTF, 648c2ecf20Sopenharmony_ci ETHTOOL_MSG_FEATURES_GET_REPLY, 658c2ecf20Sopenharmony_ci ETHTOOL_MSG_FEATURES_SET_REPLY, 668c2ecf20Sopenharmony_ci ETHTOOL_MSG_FEATURES_NTF, 678c2ecf20Sopenharmony_ci ETHTOOL_MSG_PRIVFLAGS_GET_REPLY, 688c2ecf20Sopenharmony_ci ETHTOOL_MSG_PRIVFLAGS_NTF, 698c2ecf20Sopenharmony_ci ETHTOOL_MSG_RINGS_GET_REPLY, 708c2ecf20Sopenharmony_ci ETHTOOL_MSG_RINGS_NTF, 718c2ecf20Sopenharmony_ci ETHTOOL_MSG_CHANNELS_GET_REPLY, 728c2ecf20Sopenharmony_ci ETHTOOL_MSG_CHANNELS_NTF, 738c2ecf20Sopenharmony_ci ETHTOOL_MSG_COALESCE_GET_REPLY, 748c2ecf20Sopenharmony_ci ETHTOOL_MSG_COALESCE_NTF, 758c2ecf20Sopenharmony_ci ETHTOOL_MSG_PAUSE_GET_REPLY, 768c2ecf20Sopenharmony_ci ETHTOOL_MSG_PAUSE_NTF, 778c2ecf20Sopenharmony_ci ETHTOOL_MSG_EEE_GET_REPLY, 788c2ecf20Sopenharmony_ci ETHTOOL_MSG_EEE_NTF, 798c2ecf20Sopenharmony_ci ETHTOOL_MSG_TSINFO_GET_REPLY, 808c2ecf20Sopenharmony_ci ETHTOOL_MSG_CABLE_TEST_NTF, 818c2ecf20Sopenharmony_ci ETHTOOL_MSG_CABLE_TEST_TDR_NTF, 828c2ecf20Sopenharmony_ci ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY, 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci /* add new constants above here */ 858c2ecf20Sopenharmony_ci __ETHTOOL_MSG_KERNEL_CNT, 868c2ecf20Sopenharmony_ci ETHTOOL_MSG_KERNEL_MAX = __ETHTOOL_MSG_KERNEL_CNT - 1 878c2ecf20Sopenharmony_ci}; 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci/* request header */ 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ci/* use compact bitsets in reply */ 928c2ecf20Sopenharmony_ci#define ETHTOOL_FLAG_COMPACT_BITSETS (1 << 0) 938c2ecf20Sopenharmony_ci/* provide optional reply for SET or ACT requests */ 948c2ecf20Sopenharmony_ci#define ETHTOOL_FLAG_OMIT_REPLY (1 << 1) 958c2ecf20Sopenharmony_ci/* request statistics, if supported by the driver */ 968c2ecf20Sopenharmony_ci#define ETHTOOL_FLAG_STATS (1 << 2) 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci#define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \ 998c2ecf20Sopenharmony_ci ETHTOOL_FLAG_OMIT_REPLY | \ 1008c2ecf20Sopenharmony_ci ETHTOOL_FLAG_STATS) 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_cienum { 1038c2ecf20Sopenharmony_ci ETHTOOL_A_HEADER_UNSPEC, 1048c2ecf20Sopenharmony_ci ETHTOOL_A_HEADER_DEV_INDEX, /* u32 */ 1058c2ecf20Sopenharmony_ci ETHTOOL_A_HEADER_DEV_NAME, /* string */ 1068c2ecf20Sopenharmony_ci ETHTOOL_A_HEADER_FLAGS, /* u32 - ETHTOOL_FLAG_* */ 1078c2ecf20Sopenharmony_ci 1088c2ecf20Sopenharmony_ci /* add new constants above here */ 1098c2ecf20Sopenharmony_ci __ETHTOOL_A_HEADER_CNT, 1108c2ecf20Sopenharmony_ci ETHTOOL_A_HEADER_MAX = __ETHTOOL_A_HEADER_CNT - 1 1118c2ecf20Sopenharmony_ci}; 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci/* bit sets */ 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_cienum { 1168c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BIT_UNSPEC, 1178c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BIT_INDEX, /* u32 */ 1188c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BIT_NAME, /* string */ 1198c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BIT_VALUE, /* flag */ 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci /* add new constants above here */ 1228c2ecf20Sopenharmony_ci __ETHTOOL_A_BITSET_BIT_CNT, 1238c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BIT_MAX = __ETHTOOL_A_BITSET_BIT_CNT - 1 1248c2ecf20Sopenharmony_ci}; 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_cienum { 1278c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BITS_UNSPEC, 1288c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BITS_BIT, /* nest - _A_BITSET_BIT_* */ 1298c2ecf20Sopenharmony_ci 1308c2ecf20Sopenharmony_ci /* add new constants above here */ 1318c2ecf20Sopenharmony_ci __ETHTOOL_A_BITSET_BITS_CNT, 1328c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BITS_MAX = __ETHTOOL_A_BITSET_BITS_CNT - 1 1338c2ecf20Sopenharmony_ci}; 1348c2ecf20Sopenharmony_ci 1358c2ecf20Sopenharmony_cienum { 1368c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_UNSPEC, 1378c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_NOMASK, /* flag */ 1388c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_SIZE, /* u32 */ 1398c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_BITS, /* nest - _A_BITSET_BITS_* */ 1408c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_VALUE, /* binary */ 1418c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_MASK, /* binary */ 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci /* add new constants above here */ 1448c2ecf20Sopenharmony_ci __ETHTOOL_A_BITSET_CNT, 1458c2ecf20Sopenharmony_ci ETHTOOL_A_BITSET_MAX = __ETHTOOL_A_BITSET_CNT - 1 1468c2ecf20Sopenharmony_ci}; 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci/* string sets */ 1498c2ecf20Sopenharmony_ci 1508c2ecf20Sopenharmony_cienum { 1518c2ecf20Sopenharmony_ci ETHTOOL_A_STRING_UNSPEC, 1528c2ecf20Sopenharmony_ci ETHTOOL_A_STRING_INDEX, /* u32 */ 1538c2ecf20Sopenharmony_ci ETHTOOL_A_STRING_VALUE, /* string */ 1548c2ecf20Sopenharmony_ci 1558c2ecf20Sopenharmony_ci /* add new constants above here */ 1568c2ecf20Sopenharmony_ci __ETHTOOL_A_STRING_CNT, 1578c2ecf20Sopenharmony_ci ETHTOOL_A_STRING_MAX = __ETHTOOL_A_STRING_CNT - 1 1588c2ecf20Sopenharmony_ci}; 1598c2ecf20Sopenharmony_ci 1608c2ecf20Sopenharmony_cienum { 1618c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGS_UNSPEC, 1628c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGS_STRING, /* nest - _A_STRINGS_* */ 1638c2ecf20Sopenharmony_ci 1648c2ecf20Sopenharmony_ci /* add new constants above here */ 1658c2ecf20Sopenharmony_ci __ETHTOOL_A_STRINGS_CNT, 1668c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGS_MAX = __ETHTOOL_A_STRINGS_CNT - 1 1678c2ecf20Sopenharmony_ci}; 1688c2ecf20Sopenharmony_ci 1698c2ecf20Sopenharmony_cienum { 1708c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSET_UNSPEC, 1718c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSET_ID, /* u32 */ 1728c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSET_COUNT, /* u32 */ 1738c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSET_STRINGS, /* nest - _A_STRINGS_* */ 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci /* add new constants above here */ 1768c2ecf20Sopenharmony_ci __ETHTOOL_A_STRINGSET_CNT, 1778c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSET_MAX = __ETHTOOL_A_STRINGSET_CNT - 1 1788c2ecf20Sopenharmony_ci}; 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_cienum { 1818c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSETS_UNSPEC, 1828c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSETS_STRINGSET, /* nest - _A_STRINGSET_* */ 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ci /* add new constants above here */ 1858c2ecf20Sopenharmony_ci __ETHTOOL_A_STRINGSETS_CNT, 1868c2ecf20Sopenharmony_ci ETHTOOL_A_STRINGSETS_MAX = __ETHTOOL_A_STRINGSETS_CNT - 1 1878c2ecf20Sopenharmony_ci}; 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci/* STRSET */ 1908c2ecf20Sopenharmony_ci 1918c2ecf20Sopenharmony_cienum { 1928c2ecf20Sopenharmony_ci ETHTOOL_A_STRSET_UNSPEC, 1938c2ecf20Sopenharmony_ci ETHTOOL_A_STRSET_HEADER, /* nest - _A_HEADER_* */ 1948c2ecf20Sopenharmony_ci ETHTOOL_A_STRSET_STRINGSETS, /* nest - _A_STRINGSETS_* */ 1958c2ecf20Sopenharmony_ci ETHTOOL_A_STRSET_COUNTS_ONLY, /* flag */ 1968c2ecf20Sopenharmony_ci 1978c2ecf20Sopenharmony_ci /* add new constants above here */ 1988c2ecf20Sopenharmony_ci __ETHTOOL_A_STRSET_CNT, 1998c2ecf20Sopenharmony_ci ETHTOOL_A_STRSET_MAX = __ETHTOOL_A_STRSET_CNT - 1 2008c2ecf20Sopenharmony_ci}; 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci/* LINKINFO */ 2038c2ecf20Sopenharmony_ci 2048c2ecf20Sopenharmony_cienum { 2058c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_UNSPEC, 2068c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_HEADER, /* nest - _A_HEADER_* */ 2078c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_PORT, /* u8 */ 2088c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_PHYADDR, /* u8 */ 2098c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_TP_MDIX, /* u8 */ 2108c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_TP_MDIX_CTRL, /* u8 */ 2118c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_TRANSCEIVER, /* u8 */ 2128c2ecf20Sopenharmony_ci 2138c2ecf20Sopenharmony_ci /* add new constants above here */ 2148c2ecf20Sopenharmony_ci __ETHTOOL_A_LINKINFO_CNT, 2158c2ecf20Sopenharmony_ci ETHTOOL_A_LINKINFO_MAX = __ETHTOOL_A_LINKINFO_CNT - 1 2168c2ecf20Sopenharmony_ci}; 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci/* LINKMODES */ 2198c2ecf20Sopenharmony_ci 2208c2ecf20Sopenharmony_cienum { 2218c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_UNSPEC, 2228c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_HEADER, /* nest - _A_HEADER_* */ 2238c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_AUTONEG, /* u8 */ 2248c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_OURS, /* bitset */ 2258c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_PEER, /* bitset */ 2268c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_SPEED, /* u32 */ 2278c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_DUPLEX, /* u8 */ 2288c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, /* u8 */ 2298c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, /* u8 */ 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ci /* add new constants above here */ 2328c2ecf20Sopenharmony_ci __ETHTOOL_A_LINKMODES_CNT, 2338c2ecf20Sopenharmony_ci ETHTOOL_A_LINKMODES_MAX = __ETHTOOL_A_LINKMODES_CNT - 1 2348c2ecf20Sopenharmony_ci}; 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_ci/* LINKSTATE */ 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_cienum { 2398c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_UNSPEC, 2408c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_HEADER, /* nest - _A_HEADER_* */ 2418c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_LINK, /* u8 */ 2428c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_SQI, /* u32 */ 2438c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_SQI_MAX, /* u32 */ 2448c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_EXT_STATE, /* u8 */ 2458c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_EXT_SUBSTATE, /* u8 */ 2468c2ecf20Sopenharmony_ci 2478c2ecf20Sopenharmony_ci /* add new constants above here */ 2488c2ecf20Sopenharmony_ci __ETHTOOL_A_LINKSTATE_CNT, 2498c2ecf20Sopenharmony_ci ETHTOOL_A_LINKSTATE_MAX = __ETHTOOL_A_LINKSTATE_CNT - 1 2508c2ecf20Sopenharmony_ci}; 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci/* DEBUG */ 2538c2ecf20Sopenharmony_ci 2548c2ecf20Sopenharmony_cienum { 2558c2ecf20Sopenharmony_ci ETHTOOL_A_DEBUG_UNSPEC, 2568c2ecf20Sopenharmony_ci ETHTOOL_A_DEBUG_HEADER, /* nest - _A_HEADER_* */ 2578c2ecf20Sopenharmony_ci ETHTOOL_A_DEBUG_MSGMASK, /* bitset */ 2588c2ecf20Sopenharmony_ci 2598c2ecf20Sopenharmony_ci /* add new constants above here */ 2608c2ecf20Sopenharmony_ci __ETHTOOL_A_DEBUG_CNT, 2618c2ecf20Sopenharmony_ci ETHTOOL_A_DEBUG_MAX = __ETHTOOL_A_DEBUG_CNT - 1 2628c2ecf20Sopenharmony_ci}; 2638c2ecf20Sopenharmony_ci 2648c2ecf20Sopenharmony_ci/* WOL */ 2658c2ecf20Sopenharmony_ci 2668c2ecf20Sopenharmony_cienum { 2678c2ecf20Sopenharmony_ci ETHTOOL_A_WOL_UNSPEC, 2688c2ecf20Sopenharmony_ci ETHTOOL_A_WOL_HEADER, /* nest - _A_HEADER_* */ 2698c2ecf20Sopenharmony_ci ETHTOOL_A_WOL_MODES, /* bitset */ 2708c2ecf20Sopenharmony_ci ETHTOOL_A_WOL_SOPASS, /* binary */ 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ci /* add new constants above here */ 2738c2ecf20Sopenharmony_ci __ETHTOOL_A_WOL_CNT, 2748c2ecf20Sopenharmony_ci ETHTOOL_A_WOL_MAX = __ETHTOOL_A_WOL_CNT - 1 2758c2ecf20Sopenharmony_ci}; 2768c2ecf20Sopenharmony_ci 2778c2ecf20Sopenharmony_ci/* FEATURES */ 2788c2ecf20Sopenharmony_ci 2798c2ecf20Sopenharmony_cienum { 2808c2ecf20Sopenharmony_ci ETHTOOL_A_FEATURES_UNSPEC, 2818c2ecf20Sopenharmony_ci ETHTOOL_A_FEATURES_HEADER, /* nest - _A_HEADER_* */ 2828c2ecf20Sopenharmony_ci ETHTOOL_A_FEATURES_HW, /* bitset */ 2838c2ecf20Sopenharmony_ci ETHTOOL_A_FEATURES_WANTED, /* bitset */ 2848c2ecf20Sopenharmony_ci ETHTOOL_A_FEATURES_ACTIVE, /* bitset */ 2858c2ecf20Sopenharmony_ci ETHTOOL_A_FEATURES_NOCHANGE, /* bitset */ 2868c2ecf20Sopenharmony_ci 2878c2ecf20Sopenharmony_ci /* add new constants above here */ 2888c2ecf20Sopenharmony_ci __ETHTOOL_A_FEATURES_CNT, 2898c2ecf20Sopenharmony_ci ETHTOOL_A_FEATURES_MAX = __ETHTOOL_A_FEATURES_CNT - 1 2908c2ecf20Sopenharmony_ci}; 2918c2ecf20Sopenharmony_ci 2928c2ecf20Sopenharmony_ci/* PRIVFLAGS */ 2938c2ecf20Sopenharmony_ci 2948c2ecf20Sopenharmony_cienum { 2958c2ecf20Sopenharmony_ci ETHTOOL_A_PRIVFLAGS_UNSPEC, 2968c2ecf20Sopenharmony_ci ETHTOOL_A_PRIVFLAGS_HEADER, /* nest - _A_HEADER_* */ 2978c2ecf20Sopenharmony_ci ETHTOOL_A_PRIVFLAGS_FLAGS, /* bitset */ 2988c2ecf20Sopenharmony_ci 2998c2ecf20Sopenharmony_ci /* add new constants above here */ 3008c2ecf20Sopenharmony_ci __ETHTOOL_A_PRIVFLAGS_CNT, 3018c2ecf20Sopenharmony_ci ETHTOOL_A_PRIVFLAGS_MAX = __ETHTOOL_A_PRIVFLAGS_CNT - 1 3028c2ecf20Sopenharmony_ci}; 3038c2ecf20Sopenharmony_ci 3048c2ecf20Sopenharmony_ci/* RINGS */ 3058c2ecf20Sopenharmony_ci 3068c2ecf20Sopenharmony_cienum { 3078c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_UNSPEC, 3088c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_HEADER, /* nest - _A_HEADER_* */ 3098c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_RX_MAX, /* u32 */ 3108c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_RX_MINI_MAX, /* u32 */ 3118c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_RX_JUMBO_MAX, /* u32 */ 3128c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_TX_MAX, /* u32 */ 3138c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_RX, /* u32 */ 3148c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_RX_MINI, /* u32 */ 3158c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_RX_JUMBO, /* u32 */ 3168c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_TX, /* u32 */ 3178c2ecf20Sopenharmony_ci 3188c2ecf20Sopenharmony_ci /* add new constants above here */ 3198c2ecf20Sopenharmony_ci __ETHTOOL_A_RINGS_CNT, 3208c2ecf20Sopenharmony_ci ETHTOOL_A_RINGS_MAX = (__ETHTOOL_A_RINGS_CNT - 1) 3218c2ecf20Sopenharmony_ci}; 3228c2ecf20Sopenharmony_ci 3238c2ecf20Sopenharmony_ci/* CHANNELS */ 3248c2ecf20Sopenharmony_ci 3258c2ecf20Sopenharmony_cienum { 3268c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_UNSPEC, 3278c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_HEADER, /* nest - _A_HEADER_* */ 3288c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_RX_MAX, /* u32 */ 3298c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_TX_MAX, /* u32 */ 3308c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_OTHER_MAX, /* u32 */ 3318c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_COMBINED_MAX, /* u32 */ 3328c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_RX_COUNT, /* u32 */ 3338c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_TX_COUNT, /* u32 */ 3348c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_OTHER_COUNT, /* u32 */ 3358c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_COMBINED_COUNT, /* u32 */ 3368c2ecf20Sopenharmony_ci 3378c2ecf20Sopenharmony_ci /* add new constants above here */ 3388c2ecf20Sopenharmony_ci __ETHTOOL_A_CHANNELS_CNT, 3398c2ecf20Sopenharmony_ci ETHTOOL_A_CHANNELS_MAX = (__ETHTOOL_A_CHANNELS_CNT - 1) 3408c2ecf20Sopenharmony_ci}; 3418c2ecf20Sopenharmony_ci 3428c2ecf20Sopenharmony_ci/* COALESCE */ 3438c2ecf20Sopenharmony_ci 3448c2ecf20Sopenharmony_cienum { 3458c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_UNSPEC, 3468c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_HEADER, /* nest - _A_HEADER_* */ 3478c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_USECS, /* u32 */ 3488c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_MAX_FRAMES, /* u32 */ 3498c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_USECS_IRQ, /* u32 */ 3508c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ, /* u32 */ 3518c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_USECS, /* u32 */ 3528c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_MAX_FRAMES, /* u32 */ 3538c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_USECS_IRQ, /* u32 */ 3548c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ, /* u32 */ 3558c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_STATS_BLOCK_USECS, /* u32 */ 3568c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX, /* u8 */ 3578c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX, /* u8 */ 3588c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_PKT_RATE_LOW, /* u32 */ 3598c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_USECS_LOW, /* u32 */ 3608c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW, /* u32 */ 3618c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_USECS_LOW, /* u32 */ 3628c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW, /* u32 */ 3638c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_PKT_RATE_HIGH, /* u32 */ 3648c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_USECS_HIGH, /* u32 */ 3658c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH, /* u32 */ 3668c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_USECS_HIGH, /* u32 */ 3678c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH, /* u32 */ 3688c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL, /* u32 */ 3698c2ecf20Sopenharmony_ci 3708c2ecf20Sopenharmony_ci /* add new constants above here */ 3718c2ecf20Sopenharmony_ci __ETHTOOL_A_COALESCE_CNT, 3728c2ecf20Sopenharmony_ci ETHTOOL_A_COALESCE_MAX = (__ETHTOOL_A_COALESCE_CNT - 1) 3738c2ecf20Sopenharmony_ci}; 3748c2ecf20Sopenharmony_ci 3758c2ecf20Sopenharmony_ci/* PAUSE */ 3768c2ecf20Sopenharmony_ci 3778c2ecf20Sopenharmony_cienum { 3788c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_UNSPEC, 3798c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_HEADER, /* nest - _A_HEADER_* */ 3808c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_AUTONEG, /* u8 */ 3818c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_RX, /* u8 */ 3828c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_TX, /* u8 */ 3838c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_STATS, /* nest - _PAUSE_STAT_* */ 3848c2ecf20Sopenharmony_ci 3858c2ecf20Sopenharmony_ci /* add new constants above here */ 3868c2ecf20Sopenharmony_ci __ETHTOOL_A_PAUSE_CNT, 3878c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_MAX = (__ETHTOOL_A_PAUSE_CNT - 1) 3888c2ecf20Sopenharmony_ci}; 3898c2ecf20Sopenharmony_ci 3908c2ecf20Sopenharmony_cienum { 3918c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_STAT_UNSPEC, 3928c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_STAT_PAD, 3938c2ecf20Sopenharmony_ci 3948c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_STAT_TX_FRAMES, 3958c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_STAT_RX_FRAMES, 3968c2ecf20Sopenharmony_ci 3978c2ecf20Sopenharmony_ci /* add new constants above here 3988c2ecf20Sopenharmony_ci * adjust ETHTOOL_PAUSE_STAT_CNT if adding non-stats! 3998c2ecf20Sopenharmony_ci */ 4008c2ecf20Sopenharmony_ci __ETHTOOL_A_PAUSE_STAT_CNT, 4018c2ecf20Sopenharmony_ci ETHTOOL_A_PAUSE_STAT_MAX = (__ETHTOOL_A_PAUSE_STAT_CNT - 1) 4028c2ecf20Sopenharmony_ci}; 4038c2ecf20Sopenharmony_ci 4048c2ecf20Sopenharmony_ci/* EEE */ 4058c2ecf20Sopenharmony_ci 4068c2ecf20Sopenharmony_cienum { 4078c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_UNSPEC, 4088c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_HEADER, /* nest - _A_HEADER_* */ 4098c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_MODES_OURS, /* bitset */ 4108c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_MODES_PEER, /* bitset */ 4118c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_ACTIVE, /* u8 */ 4128c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_ENABLED, /* u8 */ 4138c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_TX_LPI_ENABLED, /* u8 */ 4148c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_TX_LPI_TIMER, /* u32 */ 4158c2ecf20Sopenharmony_ci 4168c2ecf20Sopenharmony_ci /* add new constants above here */ 4178c2ecf20Sopenharmony_ci __ETHTOOL_A_EEE_CNT, 4188c2ecf20Sopenharmony_ci ETHTOOL_A_EEE_MAX = (__ETHTOOL_A_EEE_CNT - 1) 4198c2ecf20Sopenharmony_ci}; 4208c2ecf20Sopenharmony_ci 4218c2ecf20Sopenharmony_ci/* TSINFO */ 4228c2ecf20Sopenharmony_ci 4238c2ecf20Sopenharmony_cienum { 4248c2ecf20Sopenharmony_ci ETHTOOL_A_TSINFO_UNSPEC, 4258c2ecf20Sopenharmony_ci ETHTOOL_A_TSINFO_HEADER, /* nest - _A_HEADER_* */ 4268c2ecf20Sopenharmony_ci ETHTOOL_A_TSINFO_TIMESTAMPING, /* bitset */ 4278c2ecf20Sopenharmony_ci ETHTOOL_A_TSINFO_TX_TYPES, /* bitset */ 4288c2ecf20Sopenharmony_ci ETHTOOL_A_TSINFO_RX_FILTERS, /* bitset */ 4298c2ecf20Sopenharmony_ci ETHTOOL_A_TSINFO_PHC_INDEX, /* u32 */ 4308c2ecf20Sopenharmony_ci 4318c2ecf20Sopenharmony_ci /* add new constants above here */ 4328c2ecf20Sopenharmony_ci __ETHTOOL_A_TSINFO_CNT, 4338c2ecf20Sopenharmony_ci ETHTOOL_A_TSINFO_MAX = (__ETHTOOL_A_TSINFO_CNT - 1) 4348c2ecf20Sopenharmony_ci}; 4358c2ecf20Sopenharmony_ci 4368c2ecf20Sopenharmony_ci/* CABLE TEST */ 4378c2ecf20Sopenharmony_ci 4388c2ecf20Sopenharmony_cienum { 4398c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_UNSPEC, 4408c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_HEADER, /* nest - _A_HEADER_* */ 4418c2ecf20Sopenharmony_ci 4428c2ecf20Sopenharmony_ci /* add new constants above here */ 4438c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_TEST_CNT, 4448c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_MAX = __ETHTOOL_A_CABLE_TEST_CNT - 1 4458c2ecf20Sopenharmony_ci}; 4468c2ecf20Sopenharmony_ci 4478c2ecf20Sopenharmony_ci/* CABLE TEST NOTIFY */ 4488c2ecf20Sopenharmony_cienum { 4498c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_CODE_UNSPEC, 4508c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_CODE_OK, 4518c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_CODE_OPEN, 4528c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT, 4538c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT, 4548c2ecf20Sopenharmony_ci}; 4558c2ecf20Sopenharmony_ci 4568c2ecf20Sopenharmony_cienum { 4578c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_PAIR_A, 4588c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_PAIR_B, 4598c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_PAIR_C, 4608c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_PAIR_D, 4618c2ecf20Sopenharmony_ci}; 4628c2ecf20Sopenharmony_ci 4638c2ecf20Sopenharmony_cienum { 4648c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_UNSPEC, 4658c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_PAIR, /* u8 ETHTOOL_A_CABLE_PAIR_ */ 4668c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_CODE, /* u8 ETHTOOL_A_CABLE_RESULT_CODE_ */ 4678c2ecf20Sopenharmony_ci 4688c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_RESULT_CNT, 4698c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_RESULT_MAX = (__ETHTOOL_A_CABLE_RESULT_CNT - 1) 4708c2ecf20Sopenharmony_ci}; 4718c2ecf20Sopenharmony_ci 4728c2ecf20Sopenharmony_cienum { 4738c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC, 4748c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR, /* u8 ETHTOOL_A_CABLE_PAIR_ */ 4758c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_FAULT_LENGTH_CM, /* u32 */ 4768c2ecf20Sopenharmony_ci 4778c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_FAULT_LENGTH_CNT, 4788c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = (__ETHTOOL_A_CABLE_FAULT_LENGTH_CNT - 1) 4798c2ecf20Sopenharmony_ci}; 4808c2ecf20Sopenharmony_ci 4818c2ecf20Sopenharmony_cienum { 4828c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC, 4838c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED, 4848c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED 4858c2ecf20Sopenharmony_ci}; 4868c2ecf20Sopenharmony_ci 4878c2ecf20Sopenharmony_cienum { 4888c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_NEST_UNSPEC, 4898c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_NEST_RESULT, /* nest - ETHTOOL_A_CABLE_RESULT_ */ 4908c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_NEST_FAULT_LENGTH, /* nest - ETHTOOL_A_CABLE_FAULT_LENGTH_ */ 4918c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_NEST_CNT, 4928c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_NEST_MAX = (__ETHTOOL_A_CABLE_NEST_CNT - 1) 4938c2ecf20Sopenharmony_ci}; 4948c2ecf20Sopenharmony_ci 4958c2ecf20Sopenharmony_cienum { 4968c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_UNSPEC, 4978c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_HEADER, /* nest - ETHTOOL_A_HEADER_* */ 4988c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_STATUS, /* u8 - _STARTED/_COMPLETE */ 4998c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_NEST, /* nest - of results: */ 5008c2ecf20Sopenharmony_ci 5018c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_TEST_NTF_CNT, 5028c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_NTF_MAX = (__ETHTOOL_A_CABLE_TEST_NTF_CNT - 1) 5038c2ecf20Sopenharmony_ci}; 5048c2ecf20Sopenharmony_ci 5058c2ecf20Sopenharmony_ci/* CABLE TEST TDR */ 5068c2ecf20Sopenharmony_ci 5078c2ecf20Sopenharmony_cienum { 5088c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC, 5098c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST, /* u32 */ 5108c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST, /* u32 */ 5118c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP, /* u32 */ 5128c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR, /* u8 */ 5138c2ecf20Sopenharmony_ci 5148c2ecf20Sopenharmony_ci /* add new constants above here */ 5158c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT, 5168c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT - 1 5178c2ecf20Sopenharmony_ci}; 5188c2ecf20Sopenharmony_ci 5198c2ecf20Sopenharmony_cienum { 5208c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_UNSPEC, 5218c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_HEADER, /* nest - _A_HEADER_* */ 5228c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_CFG, /* nest - *_TDR_CFG_* */ 5238c2ecf20Sopenharmony_ci 5248c2ecf20Sopenharmony_ci /* add new constants above here */ 5258c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_TEST_TDR_CNT, 5268c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_MAX = __ETHTOOL_A_CABLE_TEST_TDR_CNT - 1 5278c2ecf20Sopenharmony_ci}; 5288c2ecf20Sopenharmony_ci 5298c2ecf20Sopenharmony_ci/* CABLE TEST TDR NOTIFY */ 5308c2ecf20Sopenharmony_ci 5318c2ecf20Sopenharmony_cienum { 5328c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC, 5338c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_AMPLITUDE_PAIR, /* u8 */ 5348c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_AMPLITUDE_mV, /* s16 */ 5358c2ecf20Sopenharmony_ci 5368c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_AMPLITUDE_CNT, 5378c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_AMPLITUDE_MAX = (__ETHTOOL_A_CABLE_AMPLITUDE_CNT - 1) 5388c2ecf20Sopenharmony_ci}; 5398c2ecf20Sopenharmony_ci 5408c2ecf20Sopenharmony_cienum { 5418c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_PULSE_UNSPEC, 5428c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_PULSE_mV, /* s16 */ 5438c2ecf20Sopenharmony_ci 5448c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_PULSE_CNT, 5458c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_PULSE_MAX = (__ETHTOOL_A_CABLE_PULSE_CNT - 1) 5468c2ecf20Sopenharmony_ci}; 5478c2ecf20Sopenharmony_ci 5488c2ecf20Sopenharmony_cienum { 5498c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_STEP_UNSPEC, 5508c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE, /* u32 */ 5518c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_STEP_LAST_DISTANCE, /* u32 */ 5528c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_STEP_STEP_DISTANCE, /* u32 */ 5538c2ecf20Sopenharmony_ci 5548c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_STEP_CNT, 5558c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_STEP_MAX = (__ETHTOOL_A_CABLE_STEP_CNT - 1) 5568c2ecf20Sopenharmony_ci}; 5578c2ecf20Sopenharmony_ci 5588c2ecf20Sopenharmony_cienum { 5598c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TDR_NEST_UNSPEC, 5608c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TDR_NEST_STEP, /* nest - ETHTTOOL_A_CABLE_STEP */ 5618c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE, /* nest - ETHTOOL_A_CABLE_AMPLITUDE */ 5628c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TDR_NEST_PULSE, /* nest - ETHTOOL_A_CABLE_PULSE */ 5638c2ecf20Sopenharmony_ci 5648c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_TDR_NEST_CNT, 5658c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TDR_NEST_MAX = (__ETHTOOL_A_CABLE_TDR_NEST_CNT - 1) 5668c2ecf20Sopenharmony_ci}; 5678c2ecf20Sopenharmony_ci 5688c2ecf20Sopenharmony_cienum { 5698c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_NTF_UNSPEC, 5708c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_NTF_HEADER, /* nest - ETHTOOL_A_HEADER_* */ 5718c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_NTF_STATUS, /* u8 - _STARTED/_COMPLETE */ 5728c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST, /* nest - of results: */ 5738c2ecf20Sopenharmony_ci 5748c2ecf20Sopenharmony_ci /* add new constants above here */ 5758c2ecf20Sopenharmony_ci __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT, 5768c2ecf20Sopenharmony_ci ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX = __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT - 1 5778c2ecf20Sopenharmony_ci}; 5788c2ecf20Sopenharmony_ci 5798c2ecf20Sopenharmony_ci/* TUNNEL INFO */ 5808c2ecf20Sopenharmony_ci 5818c2ecf20Sopenharmony_cienum { 5828c2ecf20Sopenharmony_ci ETHTOOL_UDP_TUNNEL_TYPE_VXLAN, 5838c2ecf20Sopenharmony_ci ETHTOOL_UDP_TUNNEL_TYPE_GENEVE, 5848c2ecf20Sopenharmony_ci ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE, 5858c2ecf20Sopenharmony_ci 5868c2ecf20Sopenharmony_ci __ETHTOOL_UDP_TUNNEL_TYPE_CNT 5878c2ecf20Sopenharmony_ci}; 5888c2ecf20Sopenharmony_ci 5898c2ecf20Sopenharmony_cienum { 5908c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC, 5918c2ecf20Sopenharmony_ci 5928c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT, /* be16 */ 5938c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE, /* u32 */ 5948c2ecf20Sopenharmony_ci 5958c2ecf20Sopenharmony_ci /* add new constants above here */ 5968c2ecf20Sopenharmony_ci __ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT, 5978c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = (__ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT - 1) 5988c2ecf20Sopenharmony_ci}; 5998c2ecf20Sopenharmony_ci 6008c2ecf20Sopenharmony_cienum { 6018c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC, 6028c2ecf20Sopenharmony_ci 6038c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE, /* u32 */ 6048c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES, /* bitset */ 6058c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY, /* nest - _UDP_ENTRY_* */ 6068c2ecf20Sopenharmony_ci 6078c2ecf20Sopenharmony_ci /* add new constants above here */ 6088c2ecf20Sopenharmony_ci __ETHTOOL_A_TUNNEL_UDP_TABLE_CNT, 6098c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = (__ETHTOOL_A_TUNNEL_UDP_TABLE_CNT - 1) 6108c2ecf20Sopenharmony_ci}; 6118c2ecf20Sopenharmony_ci 6128c2ecf20Sopenharmony_cienum { 6138c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_UNSPEC, 6148c2ecf20Sopenharmony_ci 6158c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_TABLE, /* nest - _UDP_TABLE_* */ 6168c2ecf20Sopenharmony_ci 6178c2ecf20Sopenharmony_ci /* add new constants above here */ 6188c2ecf20Sopenharmony_ci __ETHTOOL_A_TUNNEL_UDP_CNT, 6198c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_UDP_MAX = (__ETHTOOL_A_TUNNEL_UDP_CNT - 1) 6208c2ecf20Sopenharmony_ci}; 6218c2ecf20Sopenharmony_ci 6228c2ecf20Sopenharmony_cienum { 6238c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_INFO_UNSPEC, 6248c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_INFO_HEADER, /* nest - _A_HEADER_* */ 6258c2ecf20Sopenharmony_ci 6268c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_INFO_UDP_PORTS, /* nest - _UDP_TABLE */ 6278c2ecf20Sopenharmony_ci 6288c2ecf20Sopenharmony_ci /* add new constants above here */ 6298c2ecf20Sopenharmony_ci __ETHTOOL_A_TUNNEL_INFO_CNT, 6308c2ecf20Sopenharmony_ci ETHTOOL_A_TUNNEL_INFO_MAX = (__ETHTOOL_A_TUNNEL_INFO_CNT - 1) 6318c2ecf20Sopenharmony_ci}; 6328c2ecf20Sopenharmony_ci 6338c2ecf20Sopenharmony_ci/* generic netlink info */ 6348c2ecf20Sopenharmony_ci#define ETHTOOL_GENL_NAME "ethtool" 6358c2ecf20Sopenharmony_ci#define ETHTOOL_GENL_VERSION 1 6368c2ecf20Sopenharmony_ci 6378c2ecf20Sopenharmony_ci#define ETHTOOL_MCGRP_MONITOR_NAME "monitor" 6388c2ecf20Sopenharmony_ci 6398c2ecf20Sopenharmony_ci#endif /* _UAPI_LINUX_ETHTOOL_NETLINK_H_ */ 640