linux/include/linux/ethtool.h
<<
>>
Prefs
   1/*
   2 * ethtool.h: Defines for Linux ethtool.
   3 *
   4 * Copyright (C) 1998 David S. Miller (davem@redhat.com)
   5 * Copyright 2001 Jeff Garzik <jgarzik@pobox.com>
   6 * Portions Copyright 2001 Sun Microsystems (thockin@sun.com)
   7 * Portions Copyright 2002 Intel (eli.kupermann@intel.com,
   8 *                                christopher.leech@intel.com,
   9 *                                scott.feldman@intel.com)
  10 * Portions Copyright (C) Sun Microsystems 2008
  11 */
  12#ifndef _LINUX_ETHTOOL_H
  13#define _LINUX_ETHTOOL_H
  14
  15#include <linux/compat.h>
  16#include <uapi/linux/ethtool.h>
  17
  18#ifdef CONFIG_COMPAT
  19
  20struct compat_ethtool_rx_flow_spec {
  21        u32             flow_type;
  22        union ethtool_flow_union h_u;
  23        struct ethtool_flow_ext h_ext;
  24        union ethtool_flow_union m_u;
  25        struct ethtool_flow_ext m_ext;
  26        compat_u64      ring_cookie;
  27        u32             location;
  28};
  29
  30struct compat_ethtool_rxnfc {
  31        u32                             cmd;
  32        u32                             flow_type;
  33        compat_u64                      data;
  34        struct compat_ethtool_rx_flow_spec fs;
  35        u32                             rule_cnt;
  36        u32                             rule_locs[0];
  37};
  38
  39#endif /* CONFIG_COMPAT */
  40
  41#include <linux/rculist.h>
  42
  43extern int __ethtool_get_settings(struct net_device *dev,
  44                                  struct ethtool_cmd *cmd);
  45
  46/**
  47 * enum ethtool_phys_id_state - indicator state for physical identification
  48 * @ETHTOOL_ID_INACTIVE: Physical ID indicator should be deactivated
  49 * @ETHTOOL_ID_ACTIVE: Physical ID indicator should be activated
  50 * @ETHTOOL_ID_ON: LED should be turned on (used iff %ETHTOOL_ID_ACTIVE
  51 *      is not supported)
  52 * @ETHTOOL_ID_OFF: LED should be turned off (used iff %ETHTOOL_ID_ACTIVE
  53 *      is not supported)
  54 */
  55enum ethtool_phys_id_state {
  56        ETHTOOL_ID_INACTIVE,
  57        ETHTOOL_ID_ACTIVE,
  58        ETHTOOL_ID_ON,
  59        ETHTOOL_ID_OFF
  60};
  61
  62struct net_device;
  63
  64/* Some generic methods drivers may use in their ethtool_ops */
  65u32 ethtool_op_get_link(struct net_device *dev);
  66int ethtool_op_get_ts_info(struct net_device *dev, struct ethtool_ts_info *eti);
  67
  68/**
  69 * ethtool_rxfh_indir_default - get default value for RX flow hash indirection
  70 * @index: Index in RX flow hash indirection table
  71 * @ntoolrings*s="line" name="L70">  70 class="comment">/*
    71net_devi7e" class="sref">net_dev7ce  71x/ethtoo7.h#L64" id="L64" class=7line"7f="include/linux/ethtool.h#L54Th"L5funclass=prov8" s id=e/linux/epolicyl.h#L70" id="L70" class="line name="L3">   3 *7/* Some 7eneric methods drivers 7ay us7ol.h#L55" id="L55" class="line" name="L55">  55enum u32 ethtool_op_get_link(struct eti);
(struct ethtool_op_get_link(struct ethtool_op_get_link(struct , struct   55enum   56        (struct (struct , struct   67
  67
  30struct   69  78 clao *5" class="li- ./linual a hol_ ./er"lines" name="L69">  69net_dev8ce: Ge/ethrioulinf="+c vice  *name="L69">  69.4The @cmd parclat   50
o"L5called. Rookups a a g"live errh#Luct  or" name="L50">  50u32    3 *8tool_op_8et_ts_info" class="sref8>etht8tems (thockin@sun.com)
@s_device: Se/ethrioulinf="+c vice  *name="L69">  69.4 Rookups a a g"live errh#Luct  orezero name="L3">   3 *8                                 /etht8dicator should be deactivated   3 *8 * ethto8l_rxfh_indir_default - 8et de8.feldman@intel.com)
.4 If54" name="L9">   9 *  * @inde9: Index in RX flow hash9indir9ction table
   9 *  * @ntoo9rings*s="line" name="L79">  79f="include/linux/ethtool.h#L52" id=accors   3 *9net_devi9e" class="sref">net_dev9ce   3 *9x/ethtoo9.h#L64" id="L64" class=9line"9f="include/linux/ethtool.h#L54Dt_deregs: Ge/enf="+c regist    3 *9/* Some 9eneric methods drivers 9ay us9davem@redhat.com)
  50u32   50   3 *9 Portion9s Copyright 2002 Intel 9line"9or state for physical identifiDt_demsglevel: Ros="linux/et message level.4 Th"L5ef="included=ethtooname="L3">   3 *9        9                       9/etht9topher.leech@intel.com,
   3 *9                                 et de9cator should be activated  10  * Portionns Copyright (C) Sun Micrindicri/a> classwayentset: Rosta"liautoa goti"line.4 Rookups a a g"live errh#Luct " name="L50">  50
   3 *10=_LINUX_E0THTOOL_H" class="sref">_02ndicrd off (used iff %ETHTOOL_IDt_de: Ros="liwheid=r 8" id="L4a"L5up.4 Willconly=ludcalled ifname="L3">   3 *10=_LINUX_E0THTOOL_H" class="sref">_03ndicrf="include/linux/ethtool.h#L54" id=id=ea hol_a"L5up.4 Sf="incusually=ludvic io*5" class="evice() name="L9">   9 *10x/ethtool0.h#L15" id="L15" class="04ndicrdavem@redhat.com)
() name="L3">   3 *10include/l0inux/compat.h" class="fr05ndicrik@pobox.com>
   3 *10include/u0api/linux/ethtool.h" cla06ndicrtems (thockin@sun.com)





Sf="incf5" 65" id= magic field.4 Don" i9;tea edudo.check lenl.h#Lzeroname="L3">   3 *10x/ethtool0.h#L18" id="L18" class="07ndicror state for physical identifi" id=h#Lwraparound.4 F5" 65" id= ne"  argu ide with/id= eepromethtoosname="L3">   3 *10CONFIG_CO0MPAT" class="sref">CONFI08ndicrtopher.leech@intel.com,
   3 *10x/ethtool0.h#L20" id="L20" class="09ndicr.feldman@intel.com)
   3 *1> * Portioons Copyright (C) Sun Miccrosy1tems 2008
   3 *1> */>
   3 *1e=_LINUX_EETHTOOL_H" class="sref">__LINU11d off (used iff %ETHTOOL_I" id=h#Lwraparound.4 Updool.lenldo.id=eamount writtee.4 Rookups an errh#name="L3">   3 *1e=_LINUX_EETHTOOL_H" class="sref">__LINU11f="include/linux/ethtool.h#L54" id=orezero name="L3">   3 *1>x/ethtooll.h#L15" id="L15" class=""line11davem@redhat.com)
.4 Rookups a a g"livename="L3">   3 *1>include/llinux/compat.h" class="frref">11ik@pobox.com>
   3 *1"include/uuapi/linux/ethtool.h" claass="11tems (thockin@sun.com)
@s_decoalesce: Se/elassrrupt coalesc.4 Rookups a a g"livename="L3">   3 *1>x/ethtooll.h#L18" id="L18" class=""line11or state for physical identifi" id=errh#Luct  orezero name="L3">   3 *1"CONFIG_COOMPAT" class="sref">CONFIIG_CO11dicator should be deactivated   3 *1ux/ethtooll.h#L20" id="L20" class=""line11cator should be activated   3 *1=compat_e1thtool_rx_flow_spec" cla1ss="s12ems 2008
name="L3">   3 *1= */u32      1     12 classrdepaoolparcl: Se/epaool parclat <>.4 Rookups a a g"live errh#Luct " name="L50">  50_LLINU12d off (used iff %ETHTOOL_I" id=h#Lzero name="L3">   3 *1==_LINUX_Eethtool_flow_ext" class=1"sref12f="include/linux/ethtool.h#L54Dself_tost: Run linuified self-tost>name="L3">   3 *1=x/ethtoolthtool_flow_union" class1="sre12davem@redhat.com)
R   name="L3">   3 *1=include/lethtool_flow_ext" class=1"sref12ik@pobox.com>
   3 *1=include/uu64" class="sref">compat1_u64<12tems (thockin@sun.com)





attachedudo.it.4 The="mple hre"linetool.hpdool.id= l.h#L50" name="L3">   3 *1=x/ethtoolass="sref">u32      1     12or state for physical identifi" id=asynchronously=" idynchronously, bu/ela eiid=r ca#L65t must/lookupname="L3">   3 *1=CONFIG_COool.h#L29" id="L29" clas1s="li12topher.leech@intel.com,
   9 *1ux/ethtoo1l.h#L30" id="L30" class=1"line12.feldman@intel.com)
   3 *1=compat_e1thtool_rxnfc" class="sre1f">co13ction table
   3 *1= */u32      1     13f="include/linux/ethtool.h#L52" id=".h#L50inet(e.g.h1l.h#Lon  on//ethcycl=e8=r second).4 If5it/lookupsname="L3">   3 *1==_LINUX_Eass="sref">u32      1     13d off (used iff %ETHTOOL_I" id=a floquoncylid=n5it/willcludcalled agala a/elassrthts with/id=name="L3">   3 *1==_LINUX_ETTHTOOL_H" class="sref">_Lsref13f="include/linux/ethtool.h#L54" id=argu ide " id="L53" classONLh#L" id="L53" classOFF=and ef="incvic id=thtool.ofname="L3">   3 *1f="+code=1compat_ethtool_rx_flow_s1pec" 13davem@redhat.com)
   3 *1finclude/lass="sref">u32      1     13ik@pobox.com>
   3 *1finclude/uass="sref">u32      1     13tems (thockin@sun.com)





a g"live errh#Luct  orezero name="L3">   3 *1inux/etht1ool.h#L38" id="L38" clas1s="li13or state for physical identifiDt_de5" classhtoot">R      3 *1iCONFIG_COl.h#L39" id="L39" class=1"line13topher.leech@intel.com,
   9 *1omment">/1* CONFIG_COMPAT */

 *rtnleshtoot64 name="L3">   3 *1ux/ethtoo1l.h#L41" id="L41" class=1"line14ems 2008
   3 *1"include/1linux/rculist.h" class="1fref"14f="include/linux/ethtool.h#L52" id=a g"live errh#Luct  orezero name="L3">   3 *1ux/ethtoo1l.h#L43" id="L43" class=1"line14d off (used iff %ETHTOOL_IDlat : Funclass=do.ludcalled aftet any="id=r ./er"lineothcep name="L9">   9 *1code=__et1htool_get_settings" clas1s="sr14f="include/linux/ethtool.h#L54" id=nbegin.4 Willcludcalled ev=n5if.id=e"id=r ./er"lineofailed.name="L9">   9 *1cx/ethtool..h#L15" id="L15" class="lec" 14davem@redhat.com)
R s="linux/et-linuific feaokue f&gnt.name="L9">   9 *1cinclude/ll.h#L46" id="L46" class=1"line14ik@pobox.com>
Se/enux/et-linuific feaokue f&gnt.4 Rookups a a g"livename="L3">   3 *1>/**
   3 *1> * enum 1ethtool_phys_id_state - 1indic1tor state for physical identifiDt_dess_decount: Ge/en*
     3 *1> * @ETHT1OOL_ID_INACTIVE: Physica1l ID 1ndicator should be deactivated   3 *1>mment">/1OOL_ID_ACTIVE: Physical 1ID in1icator should be activated   3 *1> * @ETHT1OOL_ID_ON: LED should be1 turn1d on (used iff %ETHTOOL_ID_Asrdemine": Se/e70" id="uld bass="line lasst.4 Rookups a a g"livename="L3">   3 *1> *      1is not supported)1
   3 *1>x/ethtoo1OOL_ID_OFF: LED should b1e tur1ed off (used iff %ETHTOOL_IDf>href="+c: Writ= a firmware="mage do.ef="+c" i9;s f>h memory name="L3">   3 *1>ode=__et1is not supported)1
   3 *1> */
   3 *1thtool_ph1ys_id_state" class="sref1">eth15ik@pobox.com>
ntset_f&gnt.4 Rookups a a g"livename="L3">   3 *1e=ETHTOOL1_ID_INACTIVE" class="sre1f">ET15ol.h#L47" id="L47" class="lifi" id=errh#Luct  orezero name="L3">   3 *1e=ETHTOOL1_ID_ACTIVE" class="sref"1>ETHT15or state for physical identifiDt_den
   3 *1e * @ETHT1_ID_ON" class="sref">ETH1TOOL_15topher.leech@intel.com,
   3 *1e=ETHTOOL1_ID_OFF" class="sref">ET1HTOOL15cator should be activated
<: Ge/eid=t767eef68hof id=eol.h#L71" id="L71" class="line name="L3">   3 *1inux/etht1ool.h#L61" id="L61" clas1s="li16ction table

   3 *1ux/ethtoo1l.h#L62" id="L62" class=1"line16f="include/linux/ethtool.h#L52" id=Rookups a a g"live errh#Luct  orezero name="L3">   3 *1=net_devi1ce" class="sref">net_dev1ice
<: Se/eid=t767eef68hof id=eol.h#L71" id="L71" class="line name="L3">   3 *1iode=__et1l.h#L64" id="L64" class=1"line16f="include/linux/ethtool.h#L54" id=Willc4" cludcalled ifiDt_den
   3 *1u */   3 *1=htool_ph1f">u32    3 *1=include/uaapi/linux/ethtool.h" clas">ET16tems (thockin@sun.com)
@s_dechannels: Se/en*
     3 *1==ETHTOOL1l.h#L68" id="L68" class=1"line16or state for physical identifi" id=zero name="L3">   3 *1= * @ETHT1n>
   3 *1==ETHTOOL1ol_rxfh_indir_default - 1get d1fault value for RX flow hash innnnnnnnnnnnnnnnnand f&gn=of.id=e/l="+c name="L3">   3 *1> * @inde1x: Index in RX flow hash1 indi1ection table
   3 *1>x/ethtoo1lrings*s="line" name="L710">  10 classrdedump">Se/enumpelinuific f&gnthdo.id=e/l="+c name="L3">   3 *1>net_devi17e" class="sref">net_dev17ce   3 *1>x/ethtoo17.h#L64" id="L64" class=17line17f="include/linux/ethtool.h#L5444444Dux/ethtlass="l   3 *1> */net_device() name="L3">   3 *17ass="sre17">u32    9 *17tool_op_17et_ts_info" class="sref17>eth17tems (thockin@sun.com)





a plug-in modass name="L3">   3 *17x/ethtool..h#L18" id="L18" class="lline17or state for physical identifiDt_demodass=eeprom: Ge/eid=teepromeude/rm"line from id=eplug-in modassname="L3">   3 *17 * @ETHT17>
   3 *1>=ETHTOOL17l_rxfh_indir_default - 17et d17cator should be activated   3 *18 * @inde18: Index in RX flow hash18indi18ction table
  71  18 claAllco/er"lines are=./linual (i.e. id=efunclass=polassrtool.ludvic" name="L71">  71net_dev18ce  71   3 *18 */
   3 *18ass="sre18">u32    3 *18tool_op_18et_ts_info" class="sref18>eth18tems (thockin@sun.com)name="L3">   3 *18x/ethtool8s Copyright 2002 Intel 18line18or state for physical identifiSee &o *a href="+cland &o *a href="+cs="li.h#Ldocu hre"linename="L3">   3 *18CONFIG_COMMPAT" class="sref">CONFIG/eth18dicator should be deactivated   3 *18 * ethto18l_rxfh_indir_default - 18et d18.feldman@intel.com)
  12#ifndef net name="L56">  56          19             _gettttt(/ethtool.h#L67" ef="+code=net_device" classt_device *dev, struct cmd);
  67
net_dev19ce *dev, struct cmd);
  67
            voidtttt(/ethtool.h#L67" ef="drvude/t_device" classt_dedrvude/ *dev, struct   67
dev, struct   67
u32 dev, struct   67
dev, struct   67
dev, struct   67
rul(/ethtool.h#L67" ef="msglevelt_device" classt_demsglevel *dev, struct   67
dev, struct ethtool_op_get_le="L67">  67
, struct dev, struct   67
cmd;
(/ethtool.h#L67" ef="lt_device" class="svice *dev, struct   67
202ndi202            _gettttt(/ethtool.h#L67" viceeeprom_lent_device" classt_deeeprom_len *dev, struct   67
203ndi203            _gettttt(/ethtool.h#L67" viceeepromt_device" classt_deeeprom *dev, struct   67
ethtool_cmd *(struct   67
u32 dev, struct   67
ethtool_cmd *(struct   67
dev, struct   67
CONF208ndi208            _gettttt(/ethtool.h#L67" sf=""oalescet_device" classs_decoalesce *dev, struct   67
dev, struct   67
ethtool_cmd *  67
dev, struct   67
2_LINU21"sref">rule_locs[0];
  67
2_LINU21>            voidtttt(/ethtool.h#L67" ef="paoolparclt_device" classt_depaoolparcl *dev, struct   67
ethtool_cmd *  67
215            _gettttt(/ethtool.h#L67" sf="paoolparclt_device" classs_depaoolparcl *dev, struct   67
ethtool_cmd *  67
dev, struct (struct   67
CONF2IG_CO218            voidtttt(/ethtool.h#L67" ef="stmmentt_device" classt_devtmment *dev, struct ethtool_op_get_lfnk(struct , struct (struct   67
dev, struct   67
dev, struct   67
u32      2     221l_cmd" class="sref">ethtool_cmd *< *(struct   67
2LLINU222            _gettttt(/ethtool.h#L67" beginneric mets="srebegin *dev, struct   67
            voidtttt(/ethtool.h#L67" lat v, struct <lat  *dev, struct   67
cmd;
(/ethtool.h#L67" ef=" riv_f&gntt_device" classt_depriv_f&gnt *dev, struct   67
dev, struct ethtool_op_get_le="L67">  67
compat2_u64<226            _gettttt(/ethtool.h#L67" t_dess_decountt_device" classt_devs_decount *dev, struct   67
u32      2     227            _gettttt(/ethtool.h#L67" t_demine"t_device" classt_derine" *dev, struct   67
ethtool_cmd *(struct ethtool_op_get_lf/ethtool.h#L67" lass_loctt_device" classlass_loctet_le="L67">  67
dev, struct   67
co23i/a><        _gettttt(/ethtool.h#L67" f>href="+ct_device" classf>href="+c *dev, struct   67
u32      2     23             _gettttt(/ethtool.h#L67" ntsetv, struct dev, struct ethtool_op_get_lf/e="L67">  67
u32      2     232l_cmd" class   cmd;
(/ethtool.h#L67" ef="n

dev, struct   67
2Lsref233            _gettttt(/ethtool.h#L67" viceri/span>

< *dev, struct ethtool_op_get_lf/e="L67">  67


< *dev, struct ethtool_op_get_lf/e="L67">  67
u32      2     235            voidtttt(/ethtool.h#L67" ef="channelst_device" classt_dechannels *dev, struct   67
u32      2     236            _gettttt(/ethtool.h#L67" sf="channelst_device" classs_dechannels *dev, struct   67
dev, struct   67
dev, struct   67
/2* CONFIG_COMPAT */
ethtool_cmd *  67
<        _gettttt(/ethtool.h#L67" srdedumpt_device" classs_dedumpet_l) href="+code=dev" class="sref">dev, struct   67
 *dev, struct t_device" classeti" clatceet_lf/e="L67">  67
dev, struct   67
ethtool_cmd *t_device" classeti" clamodet_lf/e="L67">  67
dev, struct   67
ethtool_cmd *(struct   67
dev, struct   67
dev, struct   67
  67
/2OOL_ID_ACTIVE: Physical 2ID in2icator"L67">  67
  67

f man@intel.com)
/* _LINUX_"L53" clH  12#ifndef 
The=original LXR software=byeid=*LXR )lxr@def <.noet_l.
 /div>

lxr.def <.no kindly hostnuxbyeRedpill Lefpro ASet_lnfprovid