 |
AM62L FreeRTOS SDK
11.02.00
|
|
Go to the documentation of this file.
89 #define CPSW_COMMON_TX_MTU_DEFAULT (2024U)
99 #define CPSW_ESC_PRI_LD_VAL (2U)
102 #define CPSW_PER_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
103 ENET_IOCTL_PER_BASE | \
104 ENET_IOCTL_PER_CPSW | \
108 #if defined(SOC_AM273X) || defined(SOC_AWR294X) || defined (SOC_AWR2544)
109 #define CPSW_MAC_PORT_NUM (1U)
111 #define CPSW_MAC_PORT_NUM (8U)
124 #define CPSW_INTERVLAN_INGRESSPKT_MATCH_PORT (CPSW_ALE_POLICER_MATCH_PORT)
127 #define CPSW_INTERVLAN_INGRESSPKT_MATCH_MACSRC (CPSW_ALE_POLICER_MATCH_MACSRC)
130 #define CPSW_INTERVLAN_INGRESSPKT_MATCH_MACDST (CPSW_ALE_POLICER_MATCH_MACDST)
133 #define CPSW_INTERVLAN_INGRESSPKT_MATCH_ETHERTYPE (CPSW_ALE_POLICER_MATCH_ETHERTYPE)
136 #define CPSW_INTERVLAN_INGRESSPKT_MATCH_IPSRC (CPSW_ALE_POLICER_MATCH_IPSRC)
139 #define CPSW_INTERVLAN_INGRESSPKT_MATCH_IPDST (CPSW_ALE_POLICER_MATCH_IPDST)
144 #define CPSW_INTR_STATS_PEND0 (1U)
147 #define CPSW_INTR_MDIO_PEND (2U)
150 #define CPSW_INTR_EVNT_PEND (3U)
159 typedef enum Cpsw_Ioctl_e
220 typedef struct Cpsw_InterVlanRouteIngressPktMatchCfg_s
268 typedef struct Cpsw_InterVlanEgressPortCfg_s
282 typedef struct Cpsw_SetInterVlanRouteUniEgressInArgs_s
296 typedef struct Cpsw_SetInterVlanRouteUniEgressOutArgs_s
308 typedef struct Cpsw_ClearInterVlanRouteUniEgressInArgs_s
327 typedef struct Cpsw_SetInterVlanRouteMultiEgressInArgs_s
346 typedef struct Cpsw_SetInterVlanRouteMultiEgressOutArgs_s
358 typedef struct Cpsw_ClearInterVlanRouteMultiEgressInArgs_s
382 typedef struct Cpsw_SetTxShortIpgCfgInArgs_s
406 typedef struct Cpsw_TxShortIpgCfg_s
423 typedef struct Cpsw_VlanCfg_s
441 typedef struct Cpsw_MdioLinkStateChangeInfo_s
487 typedef struct Cpsw_Cfg_s
CpswAle_IpAddrClassifierInfo dstIpInfo
Definition: cpsw.h:257
Cpsw_InterVlanRouteIngressPktMatchCfg inPktMatchCfg
Definition: cpsw.h:371
ALE IP address classifier info.
Definition: cpsw_ale.h:1421
#define CPSW_MAC_PORT_NUM
Definition: cpsw.h:111
CpswCpts_Cfg cptsCfg
Definition: cpsw.h:510
#define CPSW_ALE_NUM_MAC_PORTS
Number of external ports in the subsystem.
Definition: cpsw_ale.h:96
This file contains the type definitions and helper macros for the Enet Data Path (DMA) interface.
CPSW-level VLAN configuration.
Definition: cpsw.h:424
bool enableQsgmii1RDC
Definition: cpsw.h:541
This file contains the type definitions and helper macros for the CPSW Address Lookup Engine (ALE) mo...
Enet_VlanTagType
Double tagging VLAN type.
Definition: enet_types.h:379
CpswAle_PolicerEntryOutArgs ingressPacketClassifierInfo
Definition: cpsw.h:352
Config structure for Enet UDMA.
Definition: enet_udma.h:803
This file contains the type definitions and helper macros for the CPSW Statistics module interface.
CpswAle_PolicerEntryOutArgs ingressPacketClassifierInfo
Definition: cpsw.h:302
Cpsw_Ioctl
CPSW peripheral IOCTL commands.
Definition: cpsw.h:160
ALE configuration.
Definition: cpsw_ale.h:2090
uint32_t phyAddr
Definition: cpsw.h:444
bool linkChanged
Definition: cpsw.h:455
Short IPG configuration for CPSW IP.
Definition: cpsw.h:407
void * mdioLinkStateChangeCbArg
Definition: cpsw.h:525
PHY link status change event information.
Definition: cpsw.h:442
void(* Cpsw_MdioLinkStateChangeCb)(Cpsw_MdioLinkStateChangeInfo *info, void *appArg)
CPSW PHY link state change callback function.
Definition: cpsw.h:468
bool aliveChanged
Definition: cpsw.h:448
Enet_MacPort
MAC port.
Definition: enet_types.h:412
Enet_MacPort egressPort
Definition: cpsw.h:271
CpswAle_MacAddrClassifierInfo srcMacAddrInfo
Definition: cpsw.h:239
bool configureGapThresh
Definition: cpsw.h:387
This file contains the type definitions and helper macros for the MDIO module interface.
Enet_VlanTagType vlanSwitch
Definition: cpsw.h:429
MAC port's short gap configuration.
Definition: cpsw_macport.h:222
@ CPSW_PER_IOCTL_GET_SHORT_IPG_CFG
Get the current short inter-packet gap (IPG) configuration for all open MAC ports.
Definition: cpsw.h:214
This file contains the type definitions and helper macros for the Ethernet PHY interface.
Cpsw_InterVlanRouteIngressPktMatchCfg inPktMatchCfg
Definition: cpsw.h:287
uint32_t ipgTriggerThreshBlkCnt
Definition: cpsw.h:391
Resource manager configuration parameters.
Definition: enet_rm.h:402
uint32_t packetMatchEnMask
Definition: cpsw.h:224
Mdio_Cfg mdioCfg
Definition: cpsw.h:513
Port interVLAN configuration parameters.
Definition: cpsw_macport.h:258
CpswMacPort_InterVlanRouteId egressPortRouteId
Definition: cpsw.h:299
This file contains private type definitions and helper macros for the CPSW CPTS module.
Input args for CPSW_PER_IOCTL_CLEAR_INTERVLAN_ROUTE_UNI_EGRESS command.
Definition: cpsw.h:309
@ CPSW_PER_IOCTL_CLEAR_INTERVLAN_ROUTE_UNI_EGRESS
Setup interVLAN route for a single egress port.
Definition: cpsw.h:177
@ CPSW_PER_IOCTL_SET_SHORT_IPG_CFG
Configure short inter-packet gap (IPG) for specific MAC ports.
Definition: cpsw.h:204
const EnetDma_Cfg * dmaCfg
Definition: cpsw.h:493
CPSW configuration.
Definition: cpsw.h:488
uint16_t innerVlan
Definition: cpsw.h:435
CPTS configuration.
Definition: cpsw_cpts.h:591
Cpsw_InterVlanRouteIngressPktMatchCfg inPktMatchCfg
Definition: cpsw.h:313
CpswAle_MacAddrClassifierInfo dstMacAddrInfo
Definition: cpsw.h:244
uint32_t intrPriority
Definition: cpsw.h:519
bool vlanAware
Definition: cpsw.h:426
Output args for CPSW_PER_IOCTL_SET_INTERVLAN_ROUTE_UNI_EGRESS command.
Definition: cpsw.h:297
uint32_t vlanId
Definition: cpsw.h:247
MDIO module configuration.
Definition: mdio.h:108
#define ENET_PRI_NUM
Packet priority.
Definition: enet_types.h:165
uint32_t numEgressPorts
Definition: cpsw.h:330
Cpsw_PortLinkStatusChangeCb portLinkStatusChangeCb
Definition: cpsw.h:529
uint32_t ipgTriggerThreshBlkCnt
Definition: cpsw.h:410
uint32_t escalatePriorityLoadVal
Definition: cpsw.h:490
Input args for CPSW_PER_IOCTL_SET_SHORT_IPG_CFG.
Definition: cpsw.h:383
Input args for CPSW_PER_IOCTL_SET_INTERVLAN_ROUTE_MULTI_EGRESS command.
Definition: cpsw.h:328
Input args for CPSW_PER_IOCTL_SET_INTERVLAN_ROUTE_UNI_EGRESS command.
Definition: cpsw.h:283
Input args for CPSW_PER_IOCTL_CLEAR_INTERVLAN_ROUTE_MULTI_EGRESS command.
Definition: cpsw.h:359
CpswHostPort_Cfg hostPortCfg
Definition: cpsw.h:504
InterVLAN egress port configuration.
Definition: cpsw.h:269
bool enableQsgmii0RDC
Definition: cpsw.h:538
@ CPSW_PER_IOCTL_SET_INTERVLAN_ROUTE_MULTI_EGRESS
Setup interVLAN route for a multiple egress port.
Definition: cpsw.h:186
void * portLinkStatusChangeCbArg
Definition: cpsw.h:532
This file contains the type definitions and helper macros for the CPSW MAC port module interface.
uint32_t delAleEntryMask
Definition: cpsw.h:376
Output args for CPSW_PER_IOCTL_SET_INTERVLAN_ROUTE_MULTI_EGRESS command.
Definition: cpsw.h:347
This file contains the type definitions and helper macros for the Enet Resource Manager module.
Cpsw_InterVlanRouteIngressPktMatchCfg inPktMatchCfg
Definition: cpsw.h:340
InterVLAN route ingress packet match criteria configuration.
Definition: cpsw.h:221
bool disablePhyDriver
Definition: cpsw.h:552
This file contains the type definitions and helper macros for the CPSW host port module.
uint32_t numMacPorts
Definition: cpsw.h:413
Output args for CPSW_ALE_IOCTL_GET_POLICER, CPSW_ALE_IOCTL_SET_POLICER_THREADCFG, CPSW_ALE_IOCTL_BLOC...
Definition: cpsw_ale.h:1596
#define CPSW_PER_PUBLIC_IOCTL(x)
Helper macro to create CPSW IOCTL commands.
Definition: cpsw.h:102
void(* Cpsw_PortLinkStatusChangeCb)(Enet_MacPort macPort, bool isLinkUp, void *appArg)
CPSW port link status change callback function.
Definition: cpsw.h:478
uint16_t etherType
Definition: cpsw.h:262
uint16_t outerVlan
Definition: cpsw.h:432
Enet_MacPort ingressPort
Definition: cpsw.h:234
CpswMacPort_InterVlanRouteId egressPortRouteId
Definition: cpsw.h:349
@ CPSW_PER_IOCTL_SET_INTERVLAN_ROUTE_UNI_EGRESS
Setup interVLAN route for a single egress port.
Definition: cpsw.h:168
ALE classifier/policer match parameters for source or destination MAC address.
Definition: cpsw_ale.h:1221
uint32_t numMacPorts
Definition: cpsw.h:394
Host port module configuration parameters.
Definition: cpsw_hostport.h:138
CpswMacPort_InterVlanRouteId
MAC port interVLAN route identifier.
Definition: cpsw_macport.h:234
Cpsw_VlanCfg vlanCfg
Definition: cpsw.h:496
uint32_t delAleEntryMask
Definition: cpsw.h:321
bool isAlive
Definition: cpsw.h:452
CpswAle_IpAddrClassifierInfo srcIpInfo
Definition: cpsw.h:252
bool ttlCheckEn
Definition: cpsw.h:229
CpswMacPort_InterVlanRoutingCfg outPktModCfg
Definition: cpsw.h:276
Cpsw_MdioLinkStateChangeCb mdioLinkStateChangeCb
Definition: cpsw.h:522
EnetRm_ResCfg resCfg
Definition: cpsw.h:516
Cpsw_InterVlanEgressPortCfg egressCfg
Definition: cpsw.h:290
Cpsw_InterVlanEgressPortCfg egressCfg
Definition: cpsw.h:316
CpswAle_Cfg aleCfg
Definition: cpsw.h:507
@ CPSW_PER_IOCTL_CLEAR_INTERVLAN_ROUTE_MULTI_EGRESS
Clear interVLAN route for a multiple egress port route.
Definition: cpsw.h:195
uint32_t numEgressPorts
Definition: cpsw.h:361
bool isLinked
Definition: cpsw.h:458