libc_extra/android_linux/linux/ethtool/constants/
miscellany.rs

1// This file is part of libc-extra. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT. No part of libc-extra, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
2// Copyright © 2016-2018 The developers of libc-extra. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/libc-extra/master/COPYRIGHT.
3
4
5
6pub const ETH_RX_NFC_IP4: c_uchar = 1;
7
8pub const ETHTOOL_RX_FLOW_SPEC_RING: c_uint = 4294967295;
9pub const ETHTOOL_RX_FLOW_SPEC_RING_VF: c_ulonglong = 1095216660480;
10pub const ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF: c_uchar = 32;
11
12pub const ETH_RXFH_INDIR_NO_CHANGE: c_uint = 4294967295;
13
14pub const ETHTOOL_RXNTUPLE_ACTION_DROP: c_char = -1;
15pub const ETHTOOL_RXNTUPLE_ACTION_CLEAR: c_char = -2;
16
17pub const ETH_FW_DUMP_DISABLE: c_uchar = 0;
18
19pub const ETHTOOL_GSET: u32 = 1;
20pub const ETHTOOL_SSET: u32 = 2;
21pub const ETHTOOL_GDRVINFO: u32 = 3;
22pub const ETHTOOL_GREGS: u32 = 4;
23pub const ETHTOOL_GWOL: u32 = 5;
24pub const ETHTOOL_SWOL: u32 = 6;
25pub const ETHTOOL_GMSGLVL: u32 = 7;
26pub const ETHTOOL_SMSGLVL: u32 = 8;
27pub const ETHTOOL_NWAY_RST: u32 = 9;
28pub const ETHTOOL_GLINK: u32 = 10;
29pub const ETHTOOL_GEEPROM: u32 = 11;
30pub const ETHTOOL_SEEPROM: u32 = 12;
31pub const ETHTOOL_GCOALESCE: u32 = 14;
32pub const ETHTOOL_SCOALESCE: u32 = 15;
33pub const ETHTOOL_GRINGPARAM: u32 = 16;
34pub const ETHTOOL_SRINGPARAM: u32 = 17;
35pub const ETHTOOL_GPAUSEPARAM: u32 = 18;
36pub const ETHTOOL_SPAUSEPARAM: u32 = 19;
37pub const ETHTOOL_GRXCSUM: u32 = 20;
38pub const ETHTOOL_SRXCSUM: u32 = 21;
39pub const ETHTOOL_GTXCSUM: u32 = 22;
40pub const ETHTOOL_STXCSUM: u32 = 23;
41pub const ETHTOOL_GSG: u32 = 24;
42pub const ETHTOOL_SSG: u32 = 25;
43pub const ETHTOOL_TEST: u32 = 26;
44pub const ETHTOOL_GSTRINGS: u32 = 27;
45pub const ETHTOOL_PHYS_ID: u32 = 28;
46pub const ETHTOOL_GSTATS: u32 = 29;
47pub const ETHTOOL_GTSO: u32 = 30;
48pub const ETHTOOL_STSO: u32 = 31;
49pub const ETHTOOL_GPERMADDR: u32 = 32;
50pub const ETHTOOL_GUFO: u32 = 33;
51pub const ETHTOOL_SUFO: u32 = 34;
52pub const ETHTOOL_GGSO: u32 = 35;
53pub const ETHTOOL_SGSO: u32 = 36;
54pub const ETHTOOL_GFLAGS: u32 = 37;
55pub const ETHTOOL_SFLAGS: u32 = 38;
56pub const ETHTOOL_GPFLAGS: u32 = 39;
57pub const ETHTOOL_SPFLAGS: u32 = 40;
58pub const ETHTOOL_GRXFH: u32 = 41;
59pub const ETHTOOL_SRXFH: u32 = 42;
60pub const ETHTOOL_GGRO: u32 = 43;
61pub const ETHTOOL_SGRO: u32 = 44;
62pub const ETHTOOL_GRXRINGS: u32 = 45;
63pub const ETHTOOL_GRXCLSRLCNT: u32 = 46;
64pub const ETHTOOL_GRXCLSRULE: u32 = 47;
65pub const ETHTOOL_GRXCLSRLALL: u32 = 48;
66pub const ETHTOOL_SRXCLSRLDEL: u32 = 49;
67pub const ETHTOOL_SRXCLSRLINS: u32 = 50;
68pub const ETHTOOL_FLASHDEV: u32 = 51;
69pub const ETHTOOL_RESET: u32 = 52;
70pub const ETHTOOL_SRXNTUPLE: u32 = 53;
71pub const ETHTOOL_GRXNTUPLE: u32 = 54;
72pub const ETHTOOL_GSSET_INFO: u32 = 55;
73pub const ETHTOOL_GRXFHINDIR: u32 = 56;
74pub const ETHTOOL_SRXFHINDIR: u32 = 57;
75pub const ETHTOOL_GFEATURES: u32 = 58;
76pub const ETHTOOL_SFEATURES: u32 = 59;
77pub const ETHTOOL_GCHANNELS: u32 = 60;
78pub const ETHTOOL_SCHANNELS: u32 = 61;
79pub const ETHTOOL_SET_DUMP: u32 = 62;
80pub const ETHTOOL_GET_DUMP_FLAG: u32 = 63;
81pub const ETHTOOL_GET_DUMP_DATA: u32 = 64;
82pub const ETHTOOL_GET_TS_INFO: u32 = 65;
83pub const ETHTOOL_GMODULEINFO: u32 = 66;
84pub const ETHTOOL_GMODULEEEPROM: u32 = 67;
85pub const ETHTOOL_GEEE: u32 = 68;
86pub const ETHTOOL_SEEE: u32 = 69;
87pub const ETHTOOL_GRSSH: u32 = 70;
88pub const ETHTOOL_SRSSH: u32 = 71;
89pub const ETHTOOL_GTUNABLE: u32 = 72;
90pub const ETHTOOL_STUNABLE: u32 = 73;
91pub const SPARC_ETH_GSET: u32 = 1;
92pub const SPARC_ETH_SSET: u32 = 2;
93
94pub const DUPLEX_HALF: c_uchar = 0;
95pub const DUPLEX_FULL: c_uchar = 1;
96pub const DUPLEX_UNKNOWN: c_uchar = 255;
97
98pub const AUTONEG_DISABLE: c_uchar = 0;
99pub const AUTONEG_ENABLE: c_uchar = 1;
100
101pub const FLOW_EXT: c_uint = 2147483648;
102pub const FLOW_MAC_EXT: c_uint = 1073741824;
103
104pub const ETH_RESET_SHARED_SHIFT: c_uchar = 16;