Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
enum.h File Reference

Go to the source code of this file.

Macros

#define LOOPBACK_TEST_MAX   LOOPBACK_PMAPMD
 
#define LOOPBACKS_INTERNAL
 
#define LOOPBACKS_WS
 
#define LOOPBACKS_EXTERNAL(_efx)
 
#define LOOPBACK_MASK(_efx)   (1 << (_efx)->loopback_mode)
 
#define LOOPBACK_INTERNAL(_efx)   (!!(LOOPBACKS_INTERNAL & LOOPBACK_MASK(_efx)))
 
#define LOOPBACK_EXTERNAL(_efx)   (!!(LOOPBACK_MASK(_efx) & LOOPBACKS_EXTERNAL(_efx)))
 
#define LOOPBACK_CHANGED(_from, _to, _mask)   (!!((LOOPBACK_MASK(_from) ^ LOOPBACK_MASK(_to)) & (_mask)))
 
#define LOOPBACK_OUT_OF(_from, _to, _mask)   ((LOOPBACK_MASK(_from) & (_mask)) && !(LOOPBACK_MASK(_to) & (_mask)))
 

Enumerations

enum  efx_loopback_mode {
  LOOPBACK_NONE = 0, LOOPBACK_DATA = 1, LOOPBACK_GMAC = 2, LOOPBACK_XGMII = 3,
  LOOPBACK_XGXS = 4, LOOPBACK_XAUI = 5, LOOPBACK_GMII = 6, LOOPBACK_SGMII = 7,
  LOOPBACK_XGBR = 8, LOOPBACK_XFI = 9, LOOPBACK_XAUI_FAR = 10, LOOPBACK_GMII_FAR = 11,
  LOOPBACK_SGMII_FAR = 12, LOOPBACK_XFI_FAR = 13, LOOPBACK_GPHY = 14, LOOPBACK_PHYXS = 15,
  LOOPBACK_PCS = 16, LOOPBACK_PMAPMD = 17, LOOPBACK_XPORT = 18, LOOPBACK_XGMII_WS = 19,
  LOOPBACK_XAUI_WS = 20, LOOPBACK_XAUI_WS_FAR = 21, LOOPBACK_XAUI_WS_NEAR = 22, LOOPBACK_GMII_WS = 23,
  LOOPBACK_XFI_WS = 24, LOOPBACK_XFI_WS_FAR = 25, LOOPBACK_PHYXS_WS = 26, LOOPBACK_MAX
}
 
enum  reset_type {
  RESET_TYPE_INVISIBLE = 0, RESET_TYPE_ALL = 1, RESET_TYPE_WORLD = 2, RESET_TYPE_DISABLE = 3,
  RESET_TYPE_MAX_METHOD, RESET_TYPE_TX_WATCHDOG, RESET_TYPE_INT_ERROR, RESET_TYPE_RX_RECOVERY,
  RESET_TYPE_RX_DESC_FETCH, RESET_TYPE_TX_DESC_FETCH, RESET_TYPE_TX_SKIP, RESET_TYPE_MC_FAILURE,
  RESET_TYPE_MAX, FORCE_BIG_HAMMER, SOFT_RESET, RESET_TYPE_NORESET = 0x00,
  RESET_TYPE_NORMAL = 0x01, RESET_TYPE_SILENT = 0x02
}
 

Macro Definition Documentation

#define LOOPBACK_CHANGED (   _from,
  _to,
  _mask 
)    (!!((LOOPBACK_MASK(_from) ^ LOOPBACK_MASK(_to)) & (_mask)))

Definition at line 121 of file enum.h.

#define LOOPBACK_EXTERNAL (   _efx)    (!!(LOOPBACK_MASK(_efx) & LOOPBACKS_EXTERNAL(_efx)))

Definition at line 118 of file enum.h.

#define LOOPBACK_INTERNAL (   _efx)    (!!(LOOPBACKS_INTERNAL & LOOPBACK_MASK(_efx)))

Definition at line 115 of file enum.h.

#define LOOPBACK_MASK (   _efx)    (1 << (_efx)->loopback_mode)

Definition at line 112 of file enum.h.

#define LOOPBACK_OUT_OF (   _from,
  _to,
  _mask 
)    ((LOOPBACK_MASK(_from) & (_mask)) && !(LOOPBACK_MASK(_to) & (_mask)))

Definition at line 124 of file enum.h.

#define LOOPBACK_TEST_MAX   LOOPBACK_PMAPMD

Definition at line 74 of file enum.h.

#define LOOPBACKS_EXTERNAL (   _efx)
Value:
((_efx)->loopback_modes & ~LOOPBACKS_INTERNAL & \
~(1 << LOOPBACK_NONE))

Definition at line 108 of file enum.h.

#define LOOPBACKS_INTERNAL
Value:
((1 << LOOPBACK_DATA) | \
(1 << LOOPBACK_GMAC) | \
(1 << LOOPBACK_XGMII)| \
(1 << LOOPBACK_XGXS) | \
(1 << LOOPBACK_XAUI) | \
(1 << LOOPBACK_GMII) | \
(1 << LOOPBACK_SGMII) | \
(1 << LOOPBACK_SGMII) | \
(1 << LOOPBACK_XGBR) | \
(1 << LOOPBACK_XFI) | \
(1 << LOOPBACK_XAUI_FAR) | \
(1 << LOOPBACK_GMII_FAR) | \
(1 << LOOPBACK_SGMII_FAR) | \
(1 << LOOPBACK_XFI_FAR) | \
(1 << LOOPBACK_XGMII_WS) | \
(1 << LOOPBACK_XAUI_WS) | \
(1 << LOOPBACK_GMII_WS) | \
(1 << LOOPBACK_XFI_WS) | \

Definition at line 77 of file enum.h.

#define LOOPBACKS_WS
Value:
((1 << LOOPBACK_XGMII_WS) | \
(1 << LOOPBACK_XAUI_WS) | \
(1 << LOOPBACK_GMII_WS) | \
(1 << LOOPBACK_XFI_WS) | \

Definition at line 99 of file enum.h.

Enumeration Type Documentation

enum efx_loopback_mode - loopback modes : no loopback : data path loopback : loopback within GMAC : loopback after XMAC : loopback within BPX after XGXS : loopback within BPX before XAUI serdes : loopback within BPX after GMAC : loopback within BPX within SGMII : loopback within BPX within XGBR : loopback within BPX before XFI serdes : loopback within BPX after XAUI serdes : loopback within BPX before SGMII : loopback within BPX after SGMII : loopback after XFI serdes : loopback within 1G PHY at unspecified level : loopback within 10G PHY at PHYXS level : loopback within 10G PHY at PCS level : loopback within 10G PHY at PMAPMD level : cross port loopback : wireside loopback excluding XMAC : wireside loopback within BPX within XAUI serdes : wireside loopback within BPX including XAUI serdes : wireside loopback within BPX excluding XAUI serdes : wireside loopback excluding GMAC : wireside loopback excluding XFI serdes : wireside loopback including XFI serdes : wireside loopback within 10G PHY at PHYXS level

Enumerator:
LOOPBACK_NONE 
LOOPBACK_DATA 
LOOPBACK_GMAC 
LOOPBACK_XGMII 
LOOPBACK_XGXS 
LOOPBACK_XAUI 
LOOPBACK_GMII 
LOOPBACK_SGMII 
LOOPBACK_XGBR 
LOOPBACK_XFI 
LOOPBACK_XAUI_FAR 
LOOPBACK_GMII_FAR 
LOOPBACK_SGMII_FAR 
LOOPBACK_XFI_FAR 
LOOPBACK_GPHY 
LOOPBACK_PHYXS 
LOOPBACK_PCS 
LOOPBACK_PMAPMD 
LOOPBACK_XPORT 
LOOPBACK_XGMII_WS 
LOOPBACK_XAUI_WS 
LOOPBACK_XAUI_WS_FAR 
LOOPBACK_XAUI_WS_NEAR 
LOOPBACK_GMII_WS 
LOOPBACK_XFI_WS 
LOOPBACK_XFI_WS_FAR 
LOOPBACK_PHYXS_WS 
LOOPBACK_MAX 

Definition at line 44 of file enum.h.

enum reset_type

enum reset_type - reset types

RESET_TYPE_INVSIBLE, RESET_TYPE_ALL, RESET_TYPE_WORLD and RESET_TYPE_DISABLE specify the method/scope of the reset. The other valuesspecify reasons, which efx_schedule_reset() will choose a method for.

Reset methods are numbered in order of increasing scope.

: Reset datapath and MAC (Falcon only) : Reset datapath, MAC and PHY : Reset as much as possible : Reset datapath, MAC and PHY; leave NIC disabled : reset due to TX watchdog : reset due to internal error : reset to recover from RX datapath errors : pcie error during rx descriptor fetch : pcie error during tx descriptor fetch : hardware completed empty tx descriptors : MC reboot/assertion

Enumerator:
RESET_TYPE_INVISIBLE 
RESET_TYPE_ALL 
RESET_TYPE_WORLD 
RESET_TYPE_DISABLE 
RESET_TYPE_MAX_METHOD 
RESET_TYPE_TX_WATCHDOG 
RESET_TYPE_INT_ERROR 
RESET_TYPE_RX_RECOVERY 
RESET_TYPE_RX_DESC_FETCH 
RESET_TYPE_TX_DESC_FETCH 
RESET_TYPE_TX_SKIP 
RESET_TYPE_MC_FAILURE 
RESET_TYPE_MAX 
FORCE_BIG_HAMMER 
SOFT_RESET 
RESET_TYPE_NORESET 
RESET_TYPE_NORMAL 
RESET_TYPE_SILENT 

Definition at line 151 of file enum.h.