PDK API Guide for J721E
lwip2enet_ic.h File Reference

Introduction

Header file for the LwIP to Enet helper functions.

Go to the source code of this file.

Data Structures

struct  Lwip2EnetIc_RxStats
 lwIP interface layer's RX statistics. More...
 
struct  Lwip2EnetIc_TxStats
 lwIP interface layer's TX statistics. More...
 
struct  Lwip2EnetIc_Stats
 
struct  Lwip2EnetIc_Handle
 Inter-core virtual device object. More...
 
struct  Lwip2EnetIc_Params
 

Macros

#define IC_ETH_IF_MCU2_0_MCU2_1   0
 
#define IC_ETH_IF_MCU2_1_MCU2_0   1
 
#define IC_ETH_IF_MCU2_0_A72   2
 
#define IC_ETH_MAX_VIRTUAL_IF   3
 
#define LWIP2ENETIC_OK   (0)
 
#define LWIP2ENETIC_ERROR   (-1)
 
#define IC_ETH_RX_POLLING_MODE   1
 
#define IC_ETH_RX_POLLING_INTERVAL   1 /* milli-seconds */
 

Functions

Lwip2EnetIc_Handle Lwip2EnetIc_open (uint32_t instId)
 
void Lwip2EnetIc_close (Lwip2EnetIc_Handle hlwip2enetIc)
 
int32_t Lwip2EnetIc_remoteCorePktNotify (Lwip2EnetIc_Handle hLwip2EnetIc)
 
static void Lwip2EnetIcStats_addOne (uint32_t *statCnt)
 
static void Lwip2EnetIcStats_addNum (uint32_t *statCnt, uint32_t addCnt)
 
static void Lwip2EnetIc_assert (bool cond)
 

Macro Definition Documentation

◆ IC_ETH_IF_MCU2_0_MCU2_1

#define IC_ETH_IF_MCU2_0_MCU2_1   0

Inter-core virtual driver object instance ID: MCU2_0->MCU2_1 This instance is created on MCU2_0 to interface with MCU2_1

◆ IC_ETH_IF_MCU2_1_MCU2_0

#define IC_ETH_IF_MCU2_1_MCU2_0   1

Inter-core virtual driver object instance ID: MCU2_0->MCU2_1 This instance is created on MCU2_1 to interface with MCU2_0

◆ IC_ETH_IF_MCU2_0_A72

#define IC_ETH_IF_MCU2_0_A72   2

Inter-core virtual driver object instance ID: MCU2_0->A72 This instance is created on MCU2_0 to interface with A72

Note: The A72 side peer peer virtual driver does not use Lwip so we do not need an A72_to_MCU2_0 driver instance.

◆ IC_ETH_MAX_VIRTUAL_IF

#define IC_ETH_MAX_VIRTUAL_IF   3

Total no. of inter-core virtual interfaces

◆ LWIP2ENETIC_OK

#define LWIP2ENETIC_OK   (0)

LWIP2ENETIC Error Code: Success

◆ LWIP2ENETIC_ERROR

#define LWIP2ENETIC_ERROR   (-1)

LWIP2ENETIC Error Code: Failure

◆ IC_ETH_RX_POLLING_MODE

#define IC_ETH_RX_POLLING_MODE   1

Enables polling mode in the packet RX task

◆ IC_ETH_RX_POLLING_INTERVAL

#define IC_ETH_RX_POLLING_INTERVAL   1 /* milli-seconds */

Pooling interval used by the packet RX task

Function Documentation

◆ Lwip2EnetIc_open()

Lwip2EnetIc_Handle Lwip2EnetIc_open ( uint32_t  instId)

◆ Lwip2EnetIc_close()

void Lwip2EnetIc_close ( Lwip2EnetIc_Handle  hlwip2enetIc)

◆ Lwip2EnetIc_remoteCorePktNotify()

int32_t Lwip2EnetIc_remoteCorePktNotify ( Lwip2EnetIc_Handle  hLwip2EnetIc)

◆ Lwip2EnetIcStats_addOne()

static void Lwip2EnetIcStats_addOne ( uint32_t *  statCnt)
inlinestatic

◆ Lwip2EnetIcStats_addNum()

static void Lwip2EnetIcStats_addNum ( uint32_t *  statCnt,
uint32_t  addCnt 
)
inlinestatic

◆ Lwip2EnetIc_assert()

static void Lwip2EnetIc_assert ( bool  cond)
inlinestatic