mbgtools-lx  4.2.8
Definitions specific to LNE devices

Data Structures

struct  MBG_LNE_LIMITS
 General info to be read from an LNE device. More...
 
struct  MBG_LNE_PORT_SETTINGS
 Configuration settings for a single LNE port. More...
 
struct  MBG_LNE_PORT_SETTINGS_IDX
 Configuration settings for a single LNE port, plus index. More...
 
struct  MBG_LNE_PORT_INFO
 Current settings and general capabilities of an LNE port. More...
 
struct  MBG_LNE_PORT_INFO_IDX
 Current settings and general capabilities of an LNE port, plus index. More...
 

Macros

#define _mbg_swab_mbg_lne_limits(_p)
 
#define _mbg_swab_mbg_lne_port_settings(_p)
 
#define _mbg_swab_mbg_lne_port_settings_idx(_p)
 
#define _mbg_swab_mbg_lne_port_info(_p)
 
#define _mbg_swab_mbg_lne_port_info_idx(_p)
 

Enumerations

enum  LNE_PORT_FLAG_BITS { LNE_PORT_FLAG_BIT_IS_SFP, N_LNE_PORT_FLAG_BITS }
 LNE port flag bits. More...
 
enum  LNE_PORT_FLAG_MASKS { LNE_PORT_FLAG_MASK_IS_SFP = ( 1UL << LNE_PORT_FLAG_BIT_IS_SFP ) }
 LNE port flag bit masks. More...
 

Detailed Description

Note
These structures and definitions are only supported by a device if MBG_XFEATURE_LNE_API is set in the extended device features.

Macro Definition Documentation

◆ _mbg_swab_mbg_lne_limits

#define _mbg_swab_mbg_lne_limits (   _p)
Value:
do \
{ \
_mbg_swab8( &(_p)->num_ports ); \
_mbg_swab8( &(_p)->reserved_0 ); \
_mbg_swab16( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->features ); \
_mbg_swab32( &(_p)->reserved_2 ); \
} while ( 0 )

Definition at line 18985 of file gpsdefs.h.

Referenced by mbgextio_get_lne_limits().

◆ _mbg_swab_mbg_lne_port_info

#define _mbg_swab_mbg_lne_port_info (   _p)
Value:
do \
{ \
_mbg_swab_mbg_lne_port_settings( &(_p)->settings ); \
_mbg_swab_mbg_mac_addr( &(_p)->mac_addr ); \
_mbg_swab32( &(_p)->reserved_0 ); \
_mbg_swab32( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->reserved_2 ); \
_mbg_swab32( &(_p)->flags ); \
} while ( 0 )

Definition at line 19097 of file gpsdefs.h.

◆ _mbg_swab_mbg_lne_port_info_idx

#define _mbg_swab_mbg_lne_port_info_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_mbg_lne_port_info( &(_p)->info ); \
} while ( 0 )

Definition at line 19123 of file gpsdefs.h.

Referenced by mbgextio_get_lne_port_info_idx().

◆ _mbg_swab_mbg_lne_port_settings

#define _mbg_swab_mbg_lne_port_settings (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->reserved_0 ); \
_mbg_swab32( &(_p)->reserved_1 ); \
_mbg_swab32( &(_p)->reserved_2 ); \
_mbg_swab32( &(_p)->flags ); \
} while ( 0 )

Definition at line 19044 of file gpsdefs.h.

◆ _mbg_swab_mbg_lne_port_settings_idx

#define _mbg_swab_mbg_lne_port_settings_idx (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->idx ); \
_mbg_swab_mbg_lne_port_settings( &(_p)->settings ); \
} while ( 0 )

Definition at line 19068 of file gpsdefs.h.

Referenced by mbgextio_get_lne_port_settings_idx(), and mbgextio_set_lne_port_settings_idx().

Enumeration Type Documentation

◆ LNE_PORT_FLAG_BITS

LNE port flag bits.

Used to define LNE_PORT_FLAG_MASKS

See also
LNE_PORT_FLAG_MASKS
Enumerator
LNE_PORT_FLAG_BIT_IS_SFP 
N_LNE_PORT_FLAG_BITS 

Definition at line 19139 of file gpsdefs.h.

◆ LNE_PORT_FLAG_MASKS

LNE port flag bit masks.

Used with MBG_LNE_PORT_INFO::flags

See also
LNE_PORT_FLAG_BITS
Enumerator
LNE_PORT_FLAG_MASK_IS_SFP 

see LNE_PORT_FLAG_BIT_IS_SFP

Definition at line 19154 of file gpsdefs.h.