AM243x MCU+ SDK  09.02.00
enet_mod_macport.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2020
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
47 #ifndef ENET_MOD_MACPORT_H_
48 #define ENET_MOD_MACPORT_H_
49 
50 /* ========================================================================== */
51 /* Include Files */
52 /* ========================================================================== */
53 
54 #include <stdint.h>
55 #include <include/core/enet_mod.h>
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 
62 /* ========================================================================== */
63 /* Macros */
64 /* ========================================================================== */
65 
67 #define ENET_MACPORT_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
68  ENET_IOCTL_MACPORT_BASE | \
69  ENET_IOCTL_MIN(x))
70 
72 #define ENET_MACPORT_PRIVATE_IOCTL(x) (ENET_IOCTL_TYPE_PRIVATE | \
73  ENET_IOCTL_MACPORT_BASE | \
74  ENET_IOCTL_MIN(x))
75 /* ========================================================================== */
76 /* Structures and Enums */
77 /* ========================================================================== */
78 
82 typedef enum EnetMacPort_Ioctl_e
83 {
92 
101 
119 
128 
137 
146 
155 
164 
173 
182 
191 
200 
209 
218 
227 
236 
245 
254 
263 
272 
281 
290 
299 
308 
317 
326 
335 
344 
345 #if ENET_CFG_IS_ON(CPSW_CUTTHRU)
346 
353  ENET_MACPORT_IOCTL_SET_CUT_THRU_PARAMS = ENET_MACPORT_PUBLIC_IOCTL(28U),
354 
362  ENET_MACPORT_IOCTL_GET_CUT_THRU_PARAMS = ENET_MACPORT_PUBLIC_IOCTL(29U),
363 #endif
365 
369 typedef enum EnetMac_LayerType_e
370 {
373 
376 
380 
384 typedef enum EnetMac_SublayerType_e
385 {
388 
391 
394 
397 
401 
405 typedef enum EnetMac_VariantType_e
406 {
409 
413 
417 typedef enum EnetMac_SgmiiMode_e
418 {
421 
424 
427 
430 
433 
437 
441 typedef struct EnetMacPort_Interface_s
442 {
445 
448 
452 
456 typedef struct EnetMacPort_LinkCfg_s
457 {
460 
464 
468 typedef enum EnetMacPort_VlanType_e
469 {
472 
475 
479 
483 typedef struct EnetMacPort_GenericInArgs_s
484 {
488 
492 typedef struct EnetMacPort_SetIngressDscpPriorityMapInArgs_s
493 {
496 
500 
504 typedef struct EnetMacPort_SetPriorityRegenMapInArgs_s
505 {
508 
512 
516 typedef struct EnetMacPort_SetEgressPriorityMapInArgs_s
517 {
520 
524 
528 typedef struct EnetMacPort_EnableEgressTrafficShapingInArgs_s
529 {
532 
536 
540 typedef struct EnetMacPort_CreditBasedShaperInArgs_s
541 {
544 
548 
552 typedef enum EnetMacPort_PreemptVerifyStatus_e
553 {
556 
559 
562 
565 
568 
571 
574 
578 
583 typedef struct EnetMacPort_SetPreemptMinFragSizeInArgs_s
584 {
587 
592 
596 typedef enum EnetMacPort_QueuePreemptMode_e
597 {
600 
604 
608 typedef struct EnetMacPort_QueuePreemptCfg_s
609 {
613 
618 typedef struct EnetMacPort_SetPreemptQueueInArgs_s
619 {
622 
626 
627 #if ENET_CFG_IS_ON(CPSW_CUTTHRU)
628 
631 typedef struct EnetMacPort_CutThruParams_s
632 {
634  Enet_MacPort macPort;
635 
637  EnetPort_CutThruParams cutThruCfg;
638 } EnetMacPort_CutThruParams;
639 #endif
640 
641 /* ========================================================================== */
642 /* Global Variables Declarations */
643 /* ========================================================================== */
644 
645 /* None */
646 
647 /* ========================================================================== */
648 /* Function Declarations */
649 /* ========================================================================== */
650 
658 static inline bool EnetMacPort_isMii(const EnetMacPort_Interface *mii);
659 
667 static inline bool EnetMacPort_isRmii(const EnetMacPort_Interface *mii);
668 
676 static inline bool EnetMacPort_isGmii(const EnetMacPort_Interface *mii);
677 
685 static inline bool EnetMacPort_isRgmii(const EnetMacPort_Interface *mii);
686 
694 static inline bool EnetMacPort_isSgmii(const EnetMacPort_Interface *mii);
695 
703 static inline bool EnetMacPort_isQsgmii(const EnetMacPort_Interface *mii);
704 
712 static inline bool EnetMacPort_isXfi(const EnetMacPort_Interface *mii);
713 
714 /* ========================================================================== */
715 /* Deprecated Function Declarations */
716 /* ========================================================================== */
717 
718 /* None */
719 
720 /* ========================================================================== */
721 /* Static Function Definitions */
722 /* ========================================================================== */
723 
724 static inline bool EnetMacPort_isMii(const EnetMacPort_Interface *mii)
725 {
726  return (mii->layerType == ENET_MAC_LAYER_MII) &&
728 }
729 
730 static inline bool EnetMacPort_isRmii(const EnetMacPort_Interface *mii)
731 {
732  return (mii->layerType == ENET_MAC_LAYER_MII) &&
734 }
735 
736 static inline bool EnetMacPort_isGmii(const EnetMacPort_Interface *mii)
737 {
738  return (mii->layerType == ENET_MAC_LAYER_GMII) &&
740 }
741 
742 static inline bool EnetMacPort_isRgmii(const EnetMacPort_Interface *mii)
743 {
744  return (mii->layerType == ENET_MAC_LAYER_GMII) &&
746 }
747 
748 static inline bool EnetMacPort_isSgmii(const EnetMacPort_Interface *mii)
749 {
750  return (mii->layerType == ENET_MAC_LAYER_GMII) &&
752 }
753 
754 static inline bool EnetMacPort_isQsgmii(const EnetMacPort_Interface *mii)
755 {
756  return (mii->layerType == ENET_MAC_LAYER_GMII) &&
759 }
760 
761 static inline bool EnetMacPort_isXfi(const EnetMacPort_Interface *mii)
762 {
763  return (mii->layerType == ENET_MAC_LAYER_XGMII) &&
765 }
766 
767 #ifdef __cplusplus
768 }
769 #endif
770 
771 #endif /* ENET_MOD_MACPORT_H_ */
772 
EnetMacPort_SetIngressDscpPriorityMapInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:495
EnetMacPort_PreemptVerifyStatus
EnetMacPort_PreemptVerifyStatus
MacPort IET Verification status.
Definition: enet_mod_macport.h:553
ENET_MACPORT_IOCTL_DISABLE_EGRESS_TRAFFIC_SHAPING
@ ENET_MACPORT_IOCTL_DISABLE_EGRESS_TRAFFIC_SHAPING
Disable egress traffic shaping configuration.
Definition: enet_mod_macport.h:181
EnetPort_PriorityMap
Priority map.
Definition: enet_mod_port.h:128
EnetMacPort_CreditBasedShaperInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:543
ENET_MACPORT_IOCTL_SET_CREDIT_BASED_SHAPING
@ ENET_MACPORT_IOCTL_SET_CREDIT_BASED_SHAPING
Set Idleslope for Credit Based Shaper on MAC Port.
Definition: enet_mod_macport.h:217
EnetMacPort_SetEgressPriorityMapInArgs::priorityMap
EnetPort_PriorityMap priorityMap
Definition: enet_mod_macport.h:522
ENET_MAC_SGMIIMODE_INVALID
@ ENET_MAC_SGMIIMODE_INVALID
Definition: enet_mod_macport.h:420
ENET_MACPORT_VLAN_TYPE_STACKED_TAGS
@ ENET_MACPORT_VLAN_TYPE_STACKED_TAGS
Definition: enet_mod_macport.h:477
ENET_MAC_VERIFYSTATUS_FAILED
@ ENET_MAC_VERIFYSTATUS_FAILED
Definition: enet_mod_macport.h:567
ENET_MACPORT_IOCTL_GET_MAXLEN
@ ENET_MACPORT_IOCTL_GET_MAXLEN
Get MRU and MTU.
Definition: enet_mod_macport.h:199
ENET_MAC_SGMIIMODE_FIBER_WITH_PHY
@ ENET_MAC_SGMIIMODE_FIBER_WITH_PHY
Definition: enet_mod_macport.h:423
ENET_MAC_LAYER_GMII
@ ENET_MAC_LAYER_GMII
Definition: enet_mod_macport.h:375
ENET_MAC_SGMIIMODE_SGMII_FORCEDLINK
@ ENET_MAC_SGMIIMODE_SGMII_FORCEDLINK
Definition: enet_mod_macport.h:435
ENET_MAC_SGMIIMODE_SGMII_AUTONEG_SLAVE
@ ENET_MAC_SGMIIMODE_SGMII_AUTONEG_SLAVE
Definition: enet_mod_macport.h:432
EnetMacPort_Interface::variantType
EnetMac_VariantType variantType
Definition: enet_mod_macport.h:450
ENET_MAC_VERIFYSTATUS_UNKNOWN
@ ENET_MAC_VERIFYSTATUS_UNKNOWN
Definition: enet_mod_macport.h:555
EnetMacPort_isMii
static bool EnetMacPort_isMii(const EnetMacPort_Interface *mii)
Check if interface is MII.
Definition: enet_mod_macport.h:724
ENET_MACPORT_IOCTL_SET_PRI_REGEN_MAP
@ ENET_MACPORT_IOCTL_SET_PRI_REGEN_MAP
Set VLAN priority regeneration map.
Definition: enet_mod_macport.h:136
EnetMacPort_SetPreemptMinFragSizeInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:586
ENET_MACPORT_IOCTL_ENABLE_EGRESS_TRAFFIC_SHAPING
@ ENET_MACPORT_IOCTL_ENABLE_EGRESS_TRAFFIC_SHAPING
Enable egress traffic shaping configuration.
Definition: enet_mod_macport.h:172
ENET_MACPORT_IOCTL_GET_EGRESS_QOS_PRI_MAP
@ ENET_MACPORT_IOCTL_GET_EGRESS_QOS_PRI_MAP
Get QoS egress priority map.
Definition: enet_mod_macport.h:163
Enet_Speed
Enet_Speed
MAC interface speed.
Definition: enet_types.h:343
EnetMacPort_LinkCfg
Link speed and duplexity configuration.
Definition: enet_mod_macport.h:457
EnetMacPort_SetPreemptQueueInArgs
Input args for ENET_MACPORT_IOCTL_SET_PREEMPT_QUEUE.
Definition: enet_mod_macport.h:619
ENET_MAC_SGMIIMODE_SGMII_AUTONEG_MASTER
@ ENET_MAC_SGMIIMODE_SGMII_AUTONEG_MASTER
Definition: enet_mod_macport.h:429
ENET_MAC_SGMIIMODE_SGMII_WITH_PHY
@ ENET_MAC_SGMIIMODE_SGMII_WITH_PHY
Definition: enet_mod_macport.h:426
ENET_MAC_SUBLAYER_SERIAL
@ ENET_MAC_SUBLAYER_SERIAL
Definition: enet_mod_macport.h:393
enet_mod_port.h
This file contains the type definitions and helper macros that are common for host and MAC ports.
ENET_MACPORT_IOCTL_GET_PREEMPT_VERIFY_STATUS
@ ENET_MACPORT_IOCTL_GET_PREEMPT_VERIFY_STATUS
Get IET verification status.
Definition: enet_mod_macport.h:289
ENET_MAC_SUBLAYER_QUAD_SERIAL_SUB
@ ENET_MAC_SUBLAYER_QUAD_SERIAL_SUB
Definition: enet_mod_macport.h:399
ENET_MAC_QUEUE_PREEMPT_MODE_EXPRESS
@ ENET_MAC_QUEUE_PREEMPT_MODE_EXPRESS
Definition: enet_mod_macport.h:599
EnetMacPort_CreditBasedShaperInArgs::cbsCfg
EnetPort_CreditBasedShapingCfg cbsCfg
Definition: enet_mod_macport.h:546
EnetMacPort_EnableEgressTrafficShapingInArgs
Input args for ENET_MACPORT_IOCTL_ENABLE_EGRESS_TRAFFIC_SHAPING command.
Definition: enet_mod_macport.h:529
ENET_MACPORT_IOCTL_SET_PREEMPT_MIN_FRAG_SIZE
@ ENET_MACPORT_IOCTL_SET_PREEMPT_MIN_FRAG_SIZE
Set minimum fragment size.
Definition: enet_mod_macport.h:280
EnetMacPort_isGmii
static bool EnetMacPort_isGmii(const EnetMacPort_Interface *mii)
Check if interface is GMII.
Definition: enet_mod_macport.h:736
Enet_MacPort
Enet_MacPort
MAC port.
Definition: enet_types.h:409
EnetMacPort_LinkCfg::speed
Enet_Speed speed
Definition: enet_mod_macport.h:459
EnetMacPort_SetPreemptQueueInArgs::queuePreemptCfg
EnetMacPort_QueuePreemptCfg queuePreemptCfg
Definition: enet_mod_macport.h:624
ENET_MACPORT_IOCTL_GET_PREEMPTION_ACTIVE_STATUS
@ ENET_MACPORT_IOCTL_GET_PREEMPTION_ACTIVE_STATUS
Get preemption active status.
Definition: enet_mod_macport.h:316
ENET_MACPORT_IOCTL_GET_INGRESS_DSCP_PRI_MAP
@ ENET_MACPORT_IOCTL_GET_INGRESS_DSCP_PRI_MAP
Get ingress DSCP priority (TOS) map.
Definition: enet_mod_macport.h:127
EnetMacPort_isQsgmii
static bool EnetMacPort_isQsgmii(const EnetMacPort_Interface *mii)
Check if interface is QSGMII.
Definition: enet_mod_macport.h:754
EnetMac_LayerType
EnetMac_LayerType
MAC interface layer type.
Definition: enet_mod_macport.h:370
ENET_MACPORT_IOCTL_SET_PREEMPT_QUEUE
@ ENET_MACPORT_IOCTL_SET_PREEMPT_QUEUE
Set macport queue preemption mode.
Definition: enet_mod_macport.h:262
ENET_MACPORT_IOCTL_GET_QUEUE_PREEMPT_STATUS
@ ENET_MACPORT_IOCTL_GET_QUEUE_PREEMPT_STATUS
Get macport queue preemption status.
Definition: enet_mod_macport.h:253
ENET_MAC_LAYER_XGMII
@ ENET_MAC_LAYER_XGMII
Definition: enet_mod_macport.h:378
ENET_MACPORT_IOCTL_SET_EGRESS_QOS_PRI_MAP
@ ENET_MACPORT_IOCTL_SET_EGRESS_QOS_PRI_MAP
Set QoS egress priority map.
Definition: enet_mod_macport.h:154
ENET_MAC_SUBLAYER_STANDARD
@ ENET_MAC_SUBLAYER_STANDARD
Definition: enet_mod_macport.h:387
ENET_MAC_LAYER_MII
@ ENET_MAC_LAYER_MII
Definition: enet_mod_macport.h:372
EnetMacPort_GenericInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:486
EnetMacPort_QueuePreemptCfg
MacPort Queue Preempt Config.
Definition: enet_mod_macport.h:609
ENET_MAC_VARIANT_FORCED
@ ENET_MAC_VARIANT_FORCED
Definition: enet_mod_macport.h:411
EnetPort_DscpPriorityMap
DSCP priority map.
Definition: enet_mod_port.h:138
EnetMacPort_GenericInArgs
Generic MAC port input args.
Definition: enet_mod_macport.h:484
ENET_MAC_VERIFYSTATUS_DISABLED
@ ENET_MAC_VERIFYSTATUS_DISABLED
Definition: enet_mod_macport.h:570
EnetMacPort_SetPreemptMinFragSizeInArgs::preemptMinFragSize
uint8_t preemptMinFragSize
Definition: enet_mod_macport.h:590
ENET_MACPORT_IOCTL_GET_PRI_REGEN_MAP
@ ENET_MACPORT_IOCTL_GET_PRI_REGEN_MAP
Get VLAN priority regeneration map.
Definition: enet_mod_macport.h:145
ENET_MACPORT_VLAN_TYPE_NONE
@ ENET_MACPORT_VLAN_TYPE_NONE
Definition: enet_mod_macport.h:471
EnetMacPort_Interface::sublayerType
EnetMac_SublayerType sublayerType
Definition: enet_mod_macport.h:447
EnetMacPort_isRmii
static bool EnetMacPort_isRmii(const EnetMacPort_Interface *mii)
Check if interface is RMII.
Definition: enet_mod_macport.h:730
EnetMacPort_VlanType
EnetMacPort_VlanType
VLAN usage type.
Definition: enet_mod_macport.h:469
EnetMacPort_EnableEgressTrafficShapingInArgs::trafficShapingCfg
EnetPort_TrafficShapingCfg trafficShapingCfg
Definition: enet_mod_macport.h:534
ENET_MACPORT_PUBLIC_IOCTL
#define ENET_MACPORT_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for MAC port module.
Definition: enet_mod_macport.h:67
ENET_MACPORT_IOCTL_DISABLE_PREEMPT_VERIFICATION
@ ENET_MACPORT_IOCTL_DISABLE_PREEMPT_VERIFICATION
Disable IET verification.
Definition: enet_mod_macport.h:298
ENET_PRI_NUM
#define ENET_PRI_NUM
Packet priority.
Definition: enet_types.h:165
ENET_MACPORT_IOCTL_GET_LINK_CFG
@ ENET_MACPORT_IOCTL_GET_LINK_CFG
Get MAC port's speed and duplexity.
Definition: enet_mod_macport.h:208
EnetMacPort_Interface
MAC port interface.
Definition: enet_mod_macport.h:442
ENET_MAC_SUBLAYER_REDUCED
@ ENET_MAC_SUBLAYER_REDUCED
Definition: enet_mod_macport.h:390
Enet_Duplexity
Enet_Duplexity
MAC interface duplexity.
Definition: enet_types.h:361
EnetMacPort_SetPriorityRegenMapInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:507
ENET_MAC_VERIFYSTATE_INITIAL
@ ENET_MAC_VERIFYSTATE_INITIAL
Definition: enet_mod_macport.h:558
ENET_MACPORT_IOCTL_ENABLE_PREEMPT_VERIFICATION
@ ENET_MACPORT_IOCTL_ENABLE_PREEMPT_VERIFICATION
Enable IET verification.
Definition: enet_mod_macport.h:307
EnetMac_VariantType
EnetMac_VariantType
MAC interface variant (only for specific interface types).
Definition: enet_mod_macport.h:406
ENET_MACPORT_IOCTL_IET_RELEASE_PREEMPT_TRAFFIC
@ ENET_MACPORT_IOCTL_IET_RELEASE_PREEMPT_TRAFFIC
IET release preemptible traffic.
Definition: enet_mod_macport.h:235
ENET_MACPORT_IOCTL_GET_CREDIT_BASED_SHAPING
@ ENET_MACPORT_IOCTL_GET_CREDIT_BASED_SHAPING
Get Idleslope of Credit Based Shaper on MAC Port.
Definition: enet_mod_macport.h:226
ENET_MAC_QUEUE_PREEMPT_MODE_PREEMPT
@ ENET_MAC_QUEUE_PREEMPT_MODE_PREEMPT
Definition: enet_mod_macport.h:602
ENET_MACPORT_IOCTL_GET_PREEMPTION_ENABLE_STATUS
@ ENET_MACPORT_IOCTL_GET_PREEMPTION_ENABLE_STATUS
Get preemption enable status.
Definition: enet_mod_macport.h:325
ENET_MAC_VERIFYSTATUS_SUCCEEDED
@ ENET_MAC_VERIFYSTATUS_SUCCEEDED
Definition: enet_mod_macport.h:564
EnetMacPort_EnableEgressTrafficShapingInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:531
EnetMacPort_SetPreemptMinFragSizeInArgs
Input args for ENET_MACPORT_IOCTL_SET_PREEMPT_MIN_FRAG_SIZE.
Definition: enet_mod_macport.h:584
ENET_MAC_SUBLAYER_QUAD_SERIAL_MAIN
@ ENET_MAC_SUBLAYER_QUAD_SERIAL_MAIN
Definition: enet_mod_macport.h:396
EnetMacPort_Interface::layerType
EnetMac_LayerType layerType
Definition: enet_mod_macport.h:444
EnetMacPort_Ioctl
EnetMacPort_Ioctl
MAC port IOCTL commands.
Definition: enet_mod_macport.h:83
EnetMacPort_SetEgressPriorityMapInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:519
EnetMacPort_SetPriorityRegenMapInArgs::priorityRegenMap
EnetPort_PriorityMap priorityRegenMap
Definition: enet_mod_macport.h:510
EnetPort_TrafficShapingCfg
Traffic shaping configuration for all priorities.
Definition: enet_mod_port.h:116
ENET_MACPORT_IOCTL_DISABLE_PREEMPTION
@ ENET_MACPORT_IOCTL_DISABLE_PREEMPTION
Disable frame preemption.
Definition: enet_mod_macport.h:334
ENET_MACPORT_VLAN_TYPE_SINGLE_TAG
@ ENET_MACPORT_VLAN_TYPE_SINGLE_TAG
Definition: enet_mod_macport.h:474
ENET_MACPORT_IOCTL_PRINT_REGS
@ ENET_MACPORT_IOCTL_PRINT_REGS
Print MAC port registers.
Definition: enet_mod_macport.h:100
EnetMacPort_SetPriorityRegenMapInArgs
Input args for ENET_MACPORT_IOCTL_SET_PRI_REGEN_MAP command.
Definition: enet_mod_macport.h:505
EnetMacPort_SetPreemptQueueInArgs::macPort
Enet_MacPort macPort
Definition: enet_mod_macport.h:621
ENET_MAC_VERIFYSTATUS_RXRESPOND_ERROR
@ ENET_MAC_VERIFYSTATUS_RXRESPOND_ERROR
Definition: enet_mod_macport.h:573
EnetMacPort_LinkCfg::duplexity
Enet_Duplexity duplexity
Definition: enet_mod_macport.h:462
EnetMacPort_SetIngressDscpPriorityMapInArgs::dscpPriorityMap
EnetPort_DscpPriorityMap dscpPriorityMap
Definition: enet_mod_macport.h:498
ENET_MAC_VERIFYSTATUS_RXVERIFY_ERROR
@ ENET_MAC_VERIFYSTATUS_RXVERIFY_ERROR
Definition: enet_mod_macport.h:576
EnetMacPort_SetIngressDscpPriorityMapInArgs
Input args for ENET_MACPORT_IOCTL_SET_INGRESS_DSCP_PRI_MAP command.
Definition: enet_mod_macport.h:493
enet_mod.h
This file contains the type definitions and helper macros for the Enet Module interface.
ENET_MAC_VERIFYSTATE_VERIFYING
@ ENET_MAC_VERIFYSTATE_VERIFYING
Definition: enet_mod_macport.h:561
ENET_MACPORT_IOCTL_GET_PREEMPT_MIN_FRAG_SIZE
@ ENET_MACPORT_IOCTL_GET_PREEMPT_MIN_FRAG_SIZE
Get minimum fragment size.
Definition: enet_mod_macport.h:271
EnetMacPort_QueuePreemptMode
EnetMacPort_QueuePreemptMode
Queue preemptive mode: express or preemptive.
Definition: enet_mod_macport.h:597
ENET_MACPORT_IOCTL_GET_VERSION
@ ENET_MACPORT_IOCTL_GET_VERSION
Get the hardware version of the MAC port module.
Definition: enet_mod_macport.h:91
EnetMacPort_isXfi
static bool EnetMacPort_isXfi(const EnetMacPort_Interface *mii)
Check if interface is XFI.
Definition: enet_mod_macport.h:761
EnetMac_SublayerType
EnetMac_SublayerType
MAC interface sublayer type.
Definition: enet_mod_macport.h:385
EnetMacPort_SetEgressPriorityMapInArgs
Input args for ENET_MACPORT_IOCTL_SET_EGRESS_QOS_PRI_MAP command.
Definition: enet_mod_macport.h:517
ENET_MACPORT_IOCTL_GET_EGRESS_TRAFFIC_SHAPING
@ ENET_MACPORT_IOCTL_GET_EGRESS_TRAFFIC_SHAPING
Get egress traffic shaping configuration.
Definition: enet_mod_macport.h:190
EnetMacPort_CreditBasedShaperInArgs
Input args for ENET_MACPORT_IOCTL_SET_CREDIT_BASED_SHAPING command.
Definition: enet_mod_macport.h:541
EnetMacPort_isRgmii
static bool EnetMacPort_isRgmii(const EnetMacPort_Interface *mii)
Check if interface is RGMII.
Definition: enet_mod_macport.h:742
ENET_MACPORT_IOCTL_IET_HOLD_PREEMPT_TRAFFIC
@ ENET_MACPORT_IOCTL_IET_HOLD_PREEMPT_TRAFFIC
IET hold preemptible traffic.
Definition: enet_mod_macport.h:244
ENET_MACPORT_IOCTL_ENABLE_PREEMPTION
@ ENET_MACPORT_IOCTL_ENABLE_PREEMPTION
Enable IET frame preemption.
Definition: enet_mod_macport.h:343
ENET_MACPORT_IOCTL_SET_INGRESS_DSCP_PRI_MAP
@ ENET_MACPORT_IOCTL_SET_INGRESS_DSCP_PRI_MAP
Set ingress DSCP priority (TOS) map.
Definition: enet_mod_macport.h:118
ENET_MAC_VARIANT_NONE
@ ENET_MAC_VARIANT_NONE
Definition: enet_mod_macport.h:408
EnetMacPort_isSgmii
static bool EnetMacPort_isSgmii(const EnetMacPort_Interface *mii)
Check if interface is SGMII.
Definition: enet_mod_macport.h:748
EnetMac_SgmiiMode
EnetMac_SgmiiMode
SGMII mode.
Definition: enet_mod_macport.h:418
EnetPort_CreditBasedShapingCfg
Credit Based shaping parameters (idleSlope).
Definition: enet_mod_port.h:107