![]() |
![]() |
This file contains the type definitions and helper macros for the ICSSG Forwarding Database (FDB) module interface. More...
#include <stdint.h>
#include <ti/drv/enet/include/core/enet_types.h>
#include <ti/drv/enet/include/core/enet_mod.h>
Data Structures | |
struct | IcssgFdb_MacAddr_s |
MAC address. More... | |
struct | IcssgFdb_VlanFidParams_s |
VLAN FID entry parameters. More... | |
struct | IcssgFdb_VlanFidEntry_s |
VLAN FID table entry. More... | |
struct | IcssgFdb_FdbEntry_s |
FDB entry configuration. More... | |
struct | IcssgFdb_PreemptEntry_s |
Priority for frame preemption configuration. More... | |
struct | IcssgFdb_DfltVlanCfg_s |
Default VLAN configuration. More... | |
struct | IcssgFdb_Cfg_s |
ICSSG FDB module configuration parameters. More... | |
Macros | |
#define | ICSSG_FDB_PUBLIC_IOCTL(x) |
Helper macro to create IOCTL commands for ICSSG FDB module. More... | |
#define | ICSSG_FDB_PORT_NUM (3U) |
Number of supported ports (host port, physical ports 1 and 2). | |
#define | ICSSG_FDB_MACPORT_NUM (ICSSG_FDB_PORT_NUM - 1U) |
Number of supported MAC ports (physical ports 1 and 2). | |
ICSSG FDB entry fields. | |
#define | ICSSG_FDB_ENTRY_P0_MEMBERSHIP (ENET_BIT(0U)) |
Host port membership. More... | |
#define | ICSSG_FDB_ENTRY_P1_MEMBERSHIP (ENET_BIT(1U)) |
Physical port 1 membership. More... | |
#define | ICSSG_FDB_ENTRY_P2_MEMBERSHIP (ENET_BIT(2U)) |
Physical port 2 membership. More... | |
#define | ICSSG_FDB_ENTRY_AGEABLE (ENET_BIT(3U)) |
Ageable bit. More... | |
#define | ICSSG_FDB_ENTRY_BLOCK (ENET_BIT(4U)) |
Block bit. More... | |
#define | ICSSG_FDB_ENTRY_SECURE (ENET_BIT(5U)) |
Secure bit. More... | |
#define | ICSSG_FDB_ENTRY_TOUCHED (ENET_BIT(6U)) |
Touched bit. More... | |
#define | ICSSG_FDB_ENTRY_VALID (ENET_BIT(7U)) |
Valid bit. More... | |
Typedefs | |
typedef enum IcssgFdb_Ioctl_e | IcssgFdb_Ioctl |
ICSSG FDB IOCTL commands. | |
typedef enum IcssgFdb_QueuePreemptMode_e | IcssgFdb_QueuePreemptMode |
Queue preemptive mode: express or preemptive. | |
typedef enum IcssgFdb_QueueForwardMode_e | IcssgFdb_QueueForwardMode |
Queue forward mode: cut-through or store-and-forward. | |
typedef enum IcssgFdb_PortState_e | IcssgFdb_PortState |
Port states. | |
typedef enum IcssgFdb_AcceptFrameCheck_e | IcssgFdb_AcceptFrameCheck |
Acceptable frame check criteria. | |
typedef struct IcssgFdb_MacAddr_s | IcssgFdb_MacAddr |
MAC address. | |
typedef struct IcssgFdb_VlanFidParams_s | IcssgFdb_VlanFidParams |
VLAN FID entry parameters. | |
typedef struct IcssgFdb_VlanFidEntry_s | IcssgFdb_VlanFidEntry |
VLAN FID table entry. | |
typedef struct IcssgFdb_FdbEntry_s | IcssgFdb_FdbEntry |
FDB entry configuration. | |
typedef enum IcssgFdb_PreemptVerifyState_e | IcssgFdb_PreemptVerifyState |
Preemption Verify State Machine states. | |
typedef struct IcssgFdb_PreemptEntry_s | IcssgFdb_PreemptEntry |
Priority for frame preemption configuration. | |
typedef struct IcssgFdb_DfltVlanCfg_s | IcssgFdb_DfltVlanCfg |
Default VLAN configuration. | |
typedef struct IcssgFdb_Cfg_s | IcssgFdb_Cfg |
ICSSG FDB module configuration parameters. | |
Functions | |
void | IcssgFdb_initCfg (EnetMod_Handle hMod, Enet_Type enetType, void *cfg) |
Initialize FDB module's configuration parameters. More... | |
int32_t | IcssgFdb_open (EnetMod_Handle hMod, Enet_Type enetType, const void *cfg) |
Open and initialize the FDB module. More... | |
int32_t | IcssgFdb_rejoin (EnetMod_Handle hMod, Enet_Type enetType) |
Rejoin the FDB module. More... | |
int32_t | IcssgFdb_ioctl (EnetMod_Handle hMod, uint32_t cmd, Enet_IoctlPrms *prms) |
Issue an operation on the FDB module. More... | |
void | IcssgFdb_close (EnetMod_Handle hMod) |
Close the FDB module. More... | |
This file contains the type definitions and helper macros for the ICSSG Forwarding Database (FDB) module interface.