FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
sfp.h File Reference
+ Include dependency graph for sfp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sfp_eeprom_t
 

Macros

#define foreach_sfp_id
 
#define foreach_sfp_compatibility
 

Enumerations

enum  sfp_id_t { foreach_sfp_id }
 
enum  sfp_compatibility_t { SFP_N_COMPATIBILITY }
 

Functions

static uword sfp_eeprom_is_valid (sfp_eeprom_t *e)
 
u32 sfp_is_comatible (sfp_eeprom_t *e, sfp_compatibility_t c)
 

Variables

format_function_t format_sfp_eeprom
 

Macro Definition Documentation

#define foreach_sfp_compatibility
Value:
_ (0, 4, 10g_base_sr) \
_ (0, 5, 10g_base_lr) \
_ (1, 2, oc48_long_reach) \
_ (1, 1, oc48_intermediate_reach) \
_ (1, 0, oc48_short_reach) \
_ (2, 6, oc12_long_reach) \
_ (2, 5, oc12_intermediate_reach) \
_ (2, 4, oc12_short_reach) \
_ (2, 2, oc3_long_reach) \
_ (2, 1, oc3_intermediate_reach) \
_ (2, 0, oc3_short_reach) \
_ (3, 3, 1g_base_t) \
_ (3, 2, 1g_base_cx) \
_ (3, 1, 1g_base_lx) \
_ (3, 0, 1g_base_sx)

Definition at line 80 of file sfp.h.

#define foreach_sfp_id
Value:
_ (unknown) \
_ (gbic) \
_ (on_motherboard) \
_ (sfp)

Definition at line 21 of file sfp.h.

Enumeration Type Documentation

Enumerator
SFP_N_COMPATIBILITY 

Definition at line 97 of file sfp.h.

enum sfp_id_t
Enumerator
foreach_sfp_id 

Definition at line 27 of file sfp.h.

Function Documentation

static uword sfp_eeprom_is_valid ( sfp_eeprom_t e)
inlinestatic

Definition at line 70 of file sfp.h.

+ Here is the caller graph for this function:

u32 sfp_is_comatible ( sfp_eeprom_t e,
sfp_compatibility_t  c 
)

Definition at line 64 of file sfp.c.

+ Here is the caller graph for this function:

Variable Documentation

format_function_t format_sfp_eeprom

Definition at line 107 of file sfp.h.