Lines Matching +full:self +full:- +full:advertising

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
26 * have the same layout for 32-bit and 64-bit userland.
38 * struct ethtool_cmd - DEPRECATED, link control and status
43 * interface supports autonegotiation or auto-detection.
44 * Read-only.
45 * @advertising: Bitmask of %ADVERTISED_* flags for the link modes,
48 * auto-detection.
56 * @autoneg: Enable/disable autonegotiation and auto-detection;
60 * Read-only.
62 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated.
64 * obsoleted by &struct ethtool_coalesce. Read-only; deprecated.
66 * @eth_tp_mdix: Ethernet twisted-pair MDI(-X) status; one of
68 * value will be %ETH_TP_MDI_INVALID. Read-only.
69 * @eth_tp_mdix_ctrl: Ethernet twisted pair MDI(-X) control; one of
70 * %ETH_TP_MDI_*. If MDI(-X) control is not implemented, reads
77 * Read-only.
86 * link modes. If it is enabled then they are read-only; if the link
98 * Users should assume that all fields not marked read-only are
108 __u32 advertising; member
128 ep->speed = (__u16)(speed & 0xFFFF); in ethtool_cmd_speed_set()
129 ep->speed_hi = (__u16)(speed >> 16); in ethtool_cmd_speed_set()
134 return (ep->speed_hi << 16) | ep->speed; in ethtool_cmd_speed()
156 * struct ethtool_drvinfo - general driver and device information
205 * struct ethtool_wolinfo - Wake-On-Lan configuration
207 * @supported: Bitmask of %WAKE_* flags for supported Wake-On-Lan modes.
208 * Read-only.
209 * @wolopts: Bitmask of %WAKE_* flags for enabled Wake-On-Lan modes.
273 * the PHY's RX & TX blocks are put into a low-power mode when there is no
274 * link detected (typically cable is un-plugged). For RX, only a minimal
275 * link-detection is available, and for TX the PHY wakes up to send link pulses
276 * to avoid any lock-ups in case the peer PHY may also be running in EDPD mode.
278 * Some PHYs may support configuration of the wake-up interval for TX pulses,
283 * The interval units for TX wake-up are in milliseconds, since this should
285 * - from 1 millisecond, which does not sound like much of a power-saver
286 * - to ~65 seconds which is quite a lot to wait for a link to come up when
306 * struct ethtool_regs - hardware register dump
308 * @version: Dump format version. This is driver-specific and may
328 * struct ethtool_eeprom - EEPROM dump
342 * the length of an on-board or module EEPROM, respectively. They
354 * struct ethtool_eee - Energy Efficient Ethernet information
384 * struct ethtool_modinfo - plugin module eeprom information
402 * struct ethtool_coalesce - coalescing parameters for IRQs and stats updates
422 * @stats_block_coalesce_usecs: How many usecs to delay in-memory
424 * in-memory statistic block, and in such cases this value is
501 * struct ethtool_ringparam - RX/TX ring parameters
504 * RX ring. Read-only.
506 * per RX mini ring. Read-only.
508 * per RX jumbo ring. Read-only.
510 * TX ring. Read-only.
522 * There may also be driver-dependent minimum values for the number
538 * struct ethtool_channels - configuring number of network channel
566 * struct ethtool_pauseparam - Ethernet pause (flow control) parameters
572 * Drivers should reject a non-zero setting of @autoneg when
580 * advertising field of &struct ethtool_cmd.
582 * If @autoneg is non-zero, the MAC is configured to send and/or
655 * enum ethtool_stringset - string set ID
656 * @ETH_SS_TEST: Self-test result names, for use with %ETHTOOL_TEST
669 * @ETH_SS_WOL_MODES: wake-on-lan modes
710 * struct ethtool_gstrings - string set for data tagging
714 * @data: Buffer for strings. Each string is null-padded to a size of
729 * struct ethtool_sset_info - string set information
754 * enum ethtool_test_flags - flags definition of ethtool_test
771 * struct ethtool_test - device self-test invocation
794 * struct ethtool_stats - device-specific statistics
811 * struct ethtool_perm_addr - permanent hardware address
827 /* boolean flags controlling per-interface behavior characteristics.
832 * Some behaviors may read-only (unconditionally absent or present).
833 * If such is the case, return EINVAL in the set-flags operation if the
834 * flag differs from the read-only value.
840 ETH_FLAG_NTUPLE = (1 << 27), /* N-tuple filters enabled */
845 * classification and RX n-tuple configuration. Note, all multibyte
851 * struct ethtool_tcpip4_spec - flow specification for TCP/IPv4 etc.
856 * @tos: Type-of-service
869 * struct ethtool_ah_espip4_spec - flow specification for IPsec/IPv4
873 * @tos: Type-of-service
887 * struct ethtool_usrip4_spec - general flow specification for IPv4
891 * @tos: Type-of-service
905 * struct ethtool_tcpip6_spec - flow specification for TCP/IPv6 etc.
923 * struct ethtool_ah_espip6_spec - flow specification for IPsec/IPv6
939 * struct ethtool_usrip6_spec - general flow specification for IPv6
972 * struct ethtool_flow_ext - additional RX flow fields
992 * struct ethtool_rx_flow_spec - classification rule for RX flows
1003 * packets should be used for Wake-on-LAN with %WAKE_FILTER
1044 * struct ethtool_rxnfc - command to get or set RX flow classification rules
1045 * @cmd: Specific command number - %ETHTOOL_GRXFH, %ETHTOOL_SRXFH,
1049 * @data: Command-dependent value
1065 * rules on return. If @data is non-zero on return then it is the
1101 * defined in future and drivers must return -%EINVAL for any
1118 * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection
1119 * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR
1137 * struct ethtool_rxfh - command to get/set RX flow hash indir or/and hash key.
1138 * @cmd: Specific command number - %ETHTOOL_GRSSH or %ETHTOOL_SRSSH
1180 * struct ethtool_rx_ntuple_flow_spec - specification for RX flow filter
1186 * @data: Driver-dependent data to match
1187 * @data_mask: Mask for driver-dependent data bits to be ignored
1188 * @action: RX ring/queue index to deliver to (non-negative) or other action
1214 #define ETHTOOL_RXNTUPLE_ACTION_DROP (-1) /* drop packet */
1215 #define ETHTOOL_RXNTUPLE_ACTION_CLEAR (-2) /* clear filter */
1219 * struct ethtool_rx_ntuple - command to set or clear RX flow filter
1220 * @cmd: Command number - %ETHTOOL_SRXNTUPLE
1241 * struct ethtool_dump - used for retrieving, setting device dump
1242 * @cmd: Command number - %ETHTOOL_GET_DUMP_FLAG, %ETHTOOL_GET_DUMP_DATA, or
1267 * struct ethtool_get_features_block - block with state of 32 features
1281 * struct ethtool_gfeatures - command to get state of device's features
1295 * struct ethtool_set_features_block - block with request for 32 features
1305 * struct ethtool_sfeatures - command to request change in device's features
1317 * struct ethtool_ts_info - holds a device's timestamping and PHC association
1320 * @phc_index: device index of the associated PHC, or -1 if there is none
1351 * Returns %EINVAL when .valid contains undefined or never-changeable bits
1352 * or size is not equal to required number of features words (32-bit blocks).
1354 * %ETHTOOL_F_UNSUPPORTED - there were bits set in .valid that are not
1357 * %ETHTOOL_F_WISH - some or all changes requested were recorded but the
1359 * Probably there are other device-specific constraints on some features
1362 * %ETHTOOL_F_COMPAT - some or all changes requested were made by calling
1367 * bits in the arrays - always multiple of 32) and %ETHTOOL_GSTRINGS commands
1384 * struct ethtool_per_queue_op - apply sub command to the queues in mask.
1398 * struct ethtool_fecparam - Ethernet Forward Error Correction parameters
1435 * enum ethtool_fec_config_bits - flags definition of ethtool_fec_configuration
1442 * @ETHTOOL_FEC_RS_BIT: Reed-Solomon FEC Mode
1443 * @ETHTOOL_FEC_BASER_BIT: Base-R/Reed-Solomon FEC Mode
1472 #define ETHTOOL_GWOL 0x00000005 /* Get wake-on-lan options. */
1473 #define ETHTOOL_SWOL 0x00000006 /* Set wake-on-lan options. */
1492 #define ETHTOOL_GSG 0x00000018 /* Get scatter-gather enable
1494 #define ETHTOOL_SSG 0x00000019 /* Set scatter-gather enable
1496 #define ETHTOOL_TEST 0x0000001a /* execute NIC self-test. */
1499 #define ETHTOOL_GSTATS 0x0000001d /* get NIC-specific statistics */
1509 #define ETHTOOL_GPFLAGS 0x00000027 /* Get driver-private flags bitmap */
1510 #define ETHTOOL_SPFLAGS 0x00000028 /* Set driver-private flags bitmap */
1524 #define ETHTOOL_SRXNTUPLE 0x00000035 /* Add an n-tuple filter to device */
1538 #define ETHTOOL_GMODULEINFO 0x00000042 /* Get plug-in module information */
1539 #define ETHTOOL_GMODULEEEPROM 0x00000043 /* Get plug-in module eeprom */
1547 #define ETHTOOL_GPHYSTATS 0x0000004a /* get PHY-specific statistics */
1776 #define SPEED_UNKNOWN -1
1833 /* MDI or MDI-X status/control - if MDI/MDI_X/AUTO is set then
1838 #define ETH_TP_MDI_X 0x02 /* status: MDI-X; control: force MDI-X */
1839 #define ETH_TP_MDI_AUTO 0x03 /* control: auto-select */
1841 /* Wake-On-Lan options. */
1853 /* L2-L4 network traffic flow types */
1878 /* L3-L4 network traffic flow hash options */
1943 * struct ethtool_link_settings - link control and status
1946 * user-space tools, please first try %ETHTOOL_GLINKSETTINGS, and
1962 * @autoneg: Enable/disable autonegotiation and auto-detection;
1966 * Read-only.
1967 * @eth_tp_mdix: Ethernet twisted-pair MDI(-X) status; one of
1969 * value will be %ETH_TP_MDI_INVALID. Read-only.
1970 * @eth_tp_mdix_ctrl: Ethernet twisted pair MDI(-X) control; one of
1971 * %ETH_TP_MDI_*. If MDI(-X) control is not implemented, reads
1975 * @link_mode_masks_nwords: Number of 32-bit words for each of the
1976 * supported, advertising, lp_advertising link mode bitmaps. For
1992 * supports autonegotiation or auto-detection. Read-only.
1993 * @advertising: Bitmap with each bit meaning given by
1996 * autonegotiation or enabled for auto-detection.
2000 * autonegotiation; 0 if unknown or not applicable. Read-only.
2002 * reported consistently by PHYLIB. Read-only.
2011 * link modes. If it is enabled then they are read-only; if the link
2026 * fail if any of them is set to non-zero value.
2028 * Users should assume that all fields not marked read-only are
2040 * and @link_mode_masks_nwords that are not described as read-only or
2041 * deprecated, and must ignore all fields described as read-only.