 |
AM263Px MCU+ SDK
11.00.00
|
|
Go to the documentation of this file.
47 #ifndef ENET_MOD_TAS_H_
48 #define ENET_MOD_TAS_H_
67 #define ENET_TAS_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
68 ENET_IOCTL_TAS_BASE | \
72 #define ENET_TAS_GATE_MASK(tc7, tc6, tc5, tc4, tc3, tc2, tc1, tc0) \
73 (((((tc7) != 0U) ? 1U : 0U) << 7U) | \
74 ((((tc6) != 0U) ? 1U : 0U) << 6U) | \
75 ((((tc5) != 0U) ? 1U : 0U) << 5U) | \
76 ((((tc4) != 0U) ? 1U : 0U) << 4U) | \
77 ((((tc3) != 0U) ? 1U : 0U) << 3U) | \
78 ((((tc2) != 0U) ? 1U : 0U) << 2U) | \
79 ((((tc1) != 0U) ? 1U : 0U) << 1U) | \
80 ((((tc0) != 0U) ? 1U : 0U) << 0U))
83 #define ENET_TAS_MAX_CMD_LISTS (16)
86 #define ENET_TAS_MAX_NUM_QUEUES (8)
95 typedef enum EnetTas_Ioctl_e
194 typedef struct EnetTas_GenericInArgs_s
203 typedef enum EnetTas_OperStatus_s
215 typedef enum EnetTas_TasState_s
230 typedef struct EnetTas_GateCmdEntry_s
242 typedef struct EnetTas_MaxSDUTable_s
251 typedef struct EnetTas_ControlList_s
274 typedef struct EnetTas_ConfigStatus_s
294 typedef struct EnetTas_SetAdminListInArgs_s
306 typedef struct EnetTas_SetStateInArgs_s
uint32_t timeInterval
Definition: enet_mod_tas.h:233
uint8_t listLength
Definition: enet_mod_tas.h:265
Config state machine variables. See IEEE Std 802.1Q-2018 8.6.8.4.
Definition: enet_mod_tas.h:275
Generic input args.
Definition: enet_mod_tas.h:195
#define ENET_TAS_MAX_CMD_LISTS
Maximum number of gate command entries in each list.
Definition: enet_mod_tas.h:83
EnetTas_TasState
TAS state types.
Definition: enet_mod_tas.h:216
Input args for ENET_TAS_IOCTL_SET_STATE commands.
Definition: enet_mod_tas.h:307
uint64_t cycleTime
Definition: enet_mod_tas.h:262
uint64_t configChangeTime
Definition: enet_mod_tas.h:277
uint8_t configPending
Definition: enet_mod_tas.h:284
@ ENET_TAS_IOCTL_GET_OPER_LIST_STATUS
Get the status of the operational list update.
Definition: enet_mod_tas.h:133
This file contains the basic types using across the Enet driver.
uint32_t configChangeErrorCounter
Definition: enet_mod_tas.h:281
Enet_MacPort
MAC port.
Definition: enet_types.h:412
@ ENET_TAS_IOCTL_GET_ADMIN_LIST
Get the admin list parameters of the TAS module.
Definition: enet_mod_tas.h:166
This file contains the type definitions and helper macros for the Enet IOCTL interface.
EnetTas_ControlList adminList
Definition: enet_mod_tas.h:300
Max SDU table. See IEEE Std 802.1Q-2018 12.29.1.1.
Definition: enet_mod_tas.h:243
@ ENET_TAS_OPER_LIST_NOT_YET_UPDATED
Definition: enet_mod_tas.h:206
Input args for ENET_TAS_IOCTL_SET_ADMIN_LIST commands.
Definition: enet_mod_tas.h:295
Gate control list. See IEEE Std 802.1Q-2018 8.6.9.4 D3-1.
Definition: enet_mod_tas.h:252
Enet_MacPort macPort
Definition: enet_mod_tas.h:309
@ ENET_TAS_IOCTL_CONFIG_CHANGE_STATUS_PARAMS
Get the TAS config change status parameters.
Definition: enet_mod_tas.h:188
EnetTas_Ioctl
TAS module IOCTL commands.
Definition: enet_mod_tas.h:96
@ ENET_TAS_IOCTL_GET_OPER_LIST
Get the operational list parameters of the TAS module.
Definition: enet_mod_tas.h:177
EnetTas_MaxSDUTable sduTable
Definition: enet_mod_tas.h:268
EnetTas_OperStatus
TAS state types.
Definition: enet_mod_tas.h:204
#define ENET_TAS_MAX_NUM_QUEUES
Maximum number of transmit queues supported by implementation.
Definition: enet_mod_tas.h:86
@ ENET_TAS_OPER_LIST_UPDATED
Definition: enet_mod_tas.h:209
Enet_MacPort macPort
Definition: enet_mod_tas.h:197
#define ENET_TAS_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for TAS module.
Definition: enet_mod_tas.h:67
uint8_t configChange
Definition: enet_mod_tas.h:288
@ ENET_TAS_IOCTL_SET_STATE
Set the state of the TAS module.
Definition: enet_mod_tas.h:144
Enet_MacPort macPort
Definition: enet_mod_tas.h:297
EnetTas_TasState state
Definition: enet_mod_tas.h:312
Gate control list. See IEEE Std 802.1Q-2018 8.6.8.4.
Definition: enet_mod_tas.h:231
uint8_t gateStateMask
Definition: enet_mod_tas.h:236
@ ENET_TAS_IOCTL_GET_VERSION
Get the hardware version of the TAS module.
Definition: enet_mod_tas.h:106
@ ENET_TAS_ENABLE
Definition: enet_mod_tas.h:221
@ ENET_TAS_IOCTL_GET_STATE
Get the state of the TAS module.
Definition: enet_mod_tas.h:155
@ ENET_TAS_RESET
Definition: enet_mod_tas.h:224
uint64_t baseTime
Definition: enet_mod_tas.h:256
@ ENET_TAS_IOCTL_SET_ADMIN_LIST
Set the admin list parameters of the TAS module.
Definition: enet_mod_tas.h:117
@ ENET_TAS_DISABLE
Definition: enet_mod_tas.h:218