|
AM64x MCU+ SDK
08.04.00
|
|
Go to the documentation of this file.
62 #ifndef CPSW_MACPORT_H_
63 #define CPSW_MACPORT_H_
80 #define CPSW_MACPORT_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
81 ENET_IOCTL_MACPORT_BASE | \
82 ENET_IOCTL_PER_CPSW | \
88 #define CPSW_MACPORT_EST_TIME_INTERVAL_MIN (0x010U)
91 #define CPSW_MACPORT_EST_TIME_INTERVAL_MAX (0x3FFFU)
94 #define CPSW_MACPORT_EST_TIME_STEP_1G (8U)
97 #define CPSW_MACPORT_EST_TIME_STEP_100M (40U)
100 #define CPSW_MACPORT_EST_TIME_STEP_10M (400U)
103 #define CPSW_MACPORT_EST_TIME_MIN(speed) (CPSW_MACPORT_EST_TIME_STEP_##speed * CPSW_MACPORT_EST_TIME_INTERVAL_MIN)
106 #define CPSW_MACPORT_EST_TIME_MAX(speed) (CPSW_MACPORT_EST_TIME_STEP_##speed * CPSW_MACPORT_EST_TIME_INTERVAL_MAX)
109 #define CPSW_MACPORT_EST_ALLOWCNT_FACTOR_1G (1U)
112 #define CPSW_MACPORT_EST_ALLOWCNT_FACTOR_100M (2U)
115 #define CPSW_MACPORT_EST_ALLOWCNT_FACTOR_10M (2U)
119 #define CPSW_MACPORT_EST_GUARD_BAND(maxPktSize, speed) (((((maxPktSize) + 4U) * \
120 CPSW_MACPORT_EST_ALLOWCNT_FACTOR_##speed) + 292U) * \
121 CPSW_MACPORT_EST_TIME_STEP_##speed)
130 typedef enum CpswMacPort_Ioctl_s
183 typedef struct CpswMacPort_TxShortIpgCfg_s
206 typedef struct CpswMacPort_PortTxShortIpgCfg_s
218 typedef enum CpswMacPort_InterVlanRouteId_e
242 typedef struct CpswMacPort_InterVlanRoutingCfg_s
276 typedef struct CpswMacPort_FifoStats_s
310 typedef struct CpswMacPort_IpTsCfg_s
346 typedef struct CpswMacPort_TsEventCfg_s
405 typedef struct CpswMacPort_EnableTsEventInArgs_s
417 typedef enum CpswMacPort_EstTimestampMode_e
436 typedef struct CpswMacPort_EstTimestampCfg_s
457 typedef struct CpswMacPort_Cfg_s
uint32_t rxPreemptBlockCount
Definition: cpsw_macport.h:299
bool passPriorityTaggedUnchanged
Definition: cpsw_macport.h:471
CpswMacPort_EstTimestampMode
EST timestamping modes.
Definition: cpsw_macport.h:418
Enet_MacPort macPort
Definition: cpsw_macport.h:408
uint32_t txStartWords
Definition: cpsw_macport.h:283
uint32_t rxMaxBlocks
Definition: cpsw_macport.h:290
@ CPSW_MACPORT_INTERVLAN_ROUTEID_2
Definition: cpsw_macport.h:227
bool tsPort320En
Definition: cpsw_macport.h:337
bool txShortGapEn
Definition: cpsw_macport.h:188
bool tsIp132En
Definition: cpsw_macport.h:328
This file contains the type definitions and helper macros for the Enet MAC port module interface.
bool txAnnexFEn
Definition: cpsw_macport.h:361
EnetMacPort_VlanType txVlanType
Definition: cpsw_macport.h:370
bool forceUntaggedEgress
Definition: cpsw_macport.h:259
CpswMacPort_Ioctl
CPSW MAC port IOCTL commands.
Definition: cpsw_macport.h:131
VLAN configuration parameters.
Definition: enet_mod_port.h:68
EnetMacPort_VlanType rxVlanType
Definition: cpsw_macport.h:373
uint32_t txBlockCount
Definition: cpsw_macport.h:293
bool tsPort319En
Definition: cpsw_macport.h:334
@ CPSW_MACPORT_INTERVLAN_ROUTEID_1
Definition: cpsw_macport.h:224
Port IP configuration for time synchronization events.
Definition: cpsw_macport.h:311
bool txShortGapLimitEn
Definition: cpsw_macport.h:200
@ CPSW_MACPORT_EST_TIMESTAMP_FIRST_ONEPRI
Definition: cpsw_macport.h:429
uint32_t domainOffset
Definition: cpsw_macport.h:399
Enet_MacPort
MAC port.
Definition: enet_types.h:406
MAC port's short gap configuration.
Definition: cpsw_macport.h:207
@ CPSW_MACPORT_INTERVLAN_ROUTEID_3
Definition: cpsw_macport.h:230
bool tsIp130En
Definition: cpsw_macport.h:322
bool replaceDASA
Definition: cpsw_macport.h:255
Port interVLAN configuration parameters.
Definition: cpsw_macport.h:243
Enet_CrcType crcType
Definition: cpsw_macport.h:463
Configuration of transmit short inter packet gap feature.
Definition: cpsw_macport.h:184
EnetPort_VlanCfg vlanCfg
Definition: cpsw_macport.h:474
bool loopbackEn
Definition: cpsw_macport.h:460
CpswMacPort_TxShortIpgCfg shortIpgCfg
Definition: cpsw_macport.h:212
@ CPSW_MACPORT_EST_TIMESTAMP_FIRST
Definition: cpsw_macport.h:426
bool tsIp131En
Definition: cpsw_macport.h:325
CpswMacPort_EstTimestampMode mode
Definition: cpsw_macport.h:442
void CpswMacPort_initCfg(CpswMacPort_Cfg *macPortCfg)
Initialize CPSW MAC port configuration parameters.
Port configuration for time synchronization.
Definition: cpsw_macport.h:347
@ CPSW_MACPORT_INTERVLAN_ROUTEID_LAST
Definition: cpsw_macport.h:236
EnetMacPort_VlanType
VLAN usage type.
Definition: enet_mod_macport.h:315
@ CPSW_MACPORT_IOCTL_ENABLE_CPTS_EVENT
Enable Ethernet port CPTS event.
Definition: cpsw_macport.h:148
#define ENET_PRI_NUM
Packet priority.
Definition: enet_types.h:165
bool txAnnexEEn
Definition: cpsw_macport.h:355
MAC port module configuration parameters.
Definition: cpsw_macport.h:458
CpswMacPort_IpTsCfg commonPortIpCfg
Definition: cpsw_macport.h:384
@ CPSW_MACPORT_IOCTL_EST_ENABLE_TIMESTAMP
Enable EST packet timestamping functionality.
Definition: cpsw_macport.h:168
bool tsIp107En
Definition: cpsw_macport.h:331
bool tsIp129En
Definition: cpsw_macport.h:319
uint8_t domain
Definition: cpsw_macport.h:451
EnetPort_EgressPriorityType
Egress priority type.
Definition: enet_mod_port.h:83
FIFO related statistics of a MAC port.
Definition: cpsw_macport.h:277
EnetMac_SgmiiMode sgmiiMode
Definition: cpsw_macport.h:480
uint32_t vlanLType2
Definition: cpsw_macport.h:381
uint32_t rxExpressBlockCount
Definition: cpsw_macport.h:296
Input args for CPSW_MACPORT_IOCTL_ENABLE_CPTS_EVENT.
Definition: cpsw_macport.h:406
uint32_t vlanLType1
Definition: cpsw_macport.h:377
@ CPSW_MACPORT_EST_TIMESTAMP_ONEPRI
Definition: cpsw_macport.h:423
uint32_t txMaxBlocks
Definition: cpsw_macport.h:286
bool rxAnnexFEn
Definition: cpsw_macport.h:364
bool rxAnnexEEn
Definition: cpsw_macport.h:358
@ CPSW_MACPORT_IOCTL_DISABLE_CPTS_EVENT
Disable Ethernet port CPTS event.
Definition: cpsw_macport.h:157
EnetPort_EgressPriorityType txPriorityType
Definition: cpsw_macport.h:477
@ CPSW_MACPORT_INTERVLAN_ROUTEID_FIRST
Definition: cpsw_macport.h:221
bool ltype2En
Definition: cpsw_macport.h:393
bool decrementTTL
Definition: cpsw_macport.h:270
uint32_t rxMtu
Definition: cpsw_macport.h:467
Enet_MacPort macPort
Definition: cpsw_macport.h:209
bool rxAnnexDEn
Definition: cpsw_macport.h:352
uint32_t seqIdOffset
Definition: cpsw_macport.h:396
uint32_t messageType
Definition: cpsw_macport.h:390
@ CPSW_MACPORT_INTERVLAN_ROUTEID_4
Definition: cpsw_macport.h:233
@ CPSW_MACPORT_IOCTL_GET_FIFO_STATS
Get MAC port FIFO statistics.
Definition: cpsw_macport.h:139
@ CPSW_MACPORT_EST_TIMESTAMP_ALL
Definition: cpsw_macport.h:420
CpswMacPort_TsEventCfg tsEventCfg
Definition: cpsw_macport.h:411
bool txAnnexDEn
Definition: cpsw_macport.h:349
CpswMacPort_InterVlanRouteId
MAC port interVLAN route identifier.
Definition: cpsw_macport.h:219
@ CPSW_MACPORT_IOCTL_EST_DISABLE_TIMESTAMP
Disable EST packet timestamping functionality.
Definition: cpsw_macport.h:177
#define CPSW_MACPORT_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for CPSW MAC port module.
Definition: cpsw_macport.h:80
bool unicastEn
Definition: cpsw_macport.h:316
uint32_t vlanId
Definition: cpsw_macport.h:251
Enet_MacPort macPort
Definition: cpsw_macport.h:439
#define ENET_MAC_ADDR_LEN
MAC address length in bytes/octets.
Definition: enet_types.h:153
uint32_t rxThroughputRate
Definition: cpsw_macport.h:279
uint8_t priority
Definition: cpsw_macport.h:447
uint32_t mcastType
Definition: cpsw_macport.h:387
Enet_CrcType
CRC type.
Definition: enet_types.h:244
EST timestamping configuration parameters.
Definition: cpsw_macport.h:437
bool txHostTsEn
Definition: cpsw_macport.h:367
bool ttlNonzeroEn
Definition: cpsw_macport.h:313
EnetMac_SgmiiMode
SGMII mode.
Definition: enet_mod_macport.h:264