📄 ixatmdaccctrl.h
字号:
@li 0 - No count is maintained. */ unsigned int enbTxCellCnt:1; /**< [16] Enable Transmit Valid Cell Count of non-idle/non-error cells @li 1 - Enable count of valid cells transmitted- non-idle/non-error @li 0 - No count is maintained.*/ unsigned int reserved_2:16; /**< [15:0] These bits are always 0 */ } utTxEnableFields; /**< Tx enable Utopia register */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtTxTransTable0_ * @brief Utopia Tx translation table Register */ struct UtTxTransTable0_ { unsigned int phy0:5; /**< [31-27] Tx Mapping value of logical phy 0 */ unsigned int phy1:5; /**< [26-22] Tx Mapping value of logical phy 1 */ unsigned int phy2:5; /**< [21-17] Tx Mapping value of logical phy 2 */ unsigned int reserved_1:1; /**< [16] These bits are always 0.*/ unsigned int phy3:5; /**< [15-11] Tx Mapping value of logical phy 3 */ unsigned int phy4:5; /**< [10-6] Tx Mapping value of logical phy 4 */ unsigned int phy5:5; /**< [5-1] Tx Mapping value of logical phy 5 */ unsigned int reserved_2:1; /**< [0] These bits are always 0 */ } utTxTransTable0; /**< Tx translation table */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtTxTransTable1_ * @brief Utopia Tx translation table Register */ struct UtTxTransTable1_ { unsigned int phy6:5; /**< [31-27] Tx Mapping value of logical phy 6 */ unsigned int phy7:5; /**< [26-22] Tx Mapping value of logical phy 7 */ unsigned int phy8:5; /**< [21-17] Tx Mapping value of logical phy 8 */ unsigned int reserved_1:1; /**< [16-0] These bits are always 0 */ unsigned int phy9:5; /**< [15-11] Tx Mapping value of logical phy 3 */ unsigned int phy10:5; /**< [10-6] Tx Mapping value of logical phy 4 */ unsigned int phy11:5; /**< [5-1] Tx Mapping value of logical phy 5 */ unsigned int reserved_2:1; /**< [0] These bits are always 0 */ } utTxTransTable1; /**< Tx translation table */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtTxTransTable2_ * @brief Utopia Tx translation table Register */ struct UtTxTransTable2_ { unsigned int phy12:5; /**< [31-27] Tx Mapping value of logical phy 6 */ unsigned int phy13:5; /**< [26-22] Tx Mapping value of logical phy 7 */ unsigned int phy14:5; /**< [21-17] Tx Mapping value of logical phy 8 */ unsigned int reserved_1:1; /**< [16-0] These bits are always 0 */ unsigned int phy15:5; /**< [15-11] Tx Mapping value of logical phy 3 */ unsigned int phy16:5; /**< [10-6] Tx Mapping value of logical phy 4 */ unsigned int phy17:5; /**< [5-1] Tx Mapping value of logical phy 5 */ unsigned int reserved_2:1; /**< [0] These bits are always 0 */ } utTxTransTable2; /**< Tx translation table */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtTxTransTable3_ * @brief Utopia Tx translation table Register */ struct UtTxTransTable3_ { unsigned int phy18:5; /**< [31-27] Tx Mapping value of logical phy 6 */ unsigned int phy19:5; /**< [26-22] Tx Mapping value of logical phy 7 */ unsigned int phy20:5; /**< [21-17] Tx Mapping value of logical phy 8 */ unsigned int reserved_1:1; /**< [16-0] These bits are always 0 */ unsigned int phy21:5; /**< [15-11] Tx Mapping value of logical phy 3 */ unsigned int phy22:5; /**< [10-6] Tx Mapping value of logical phy 4 */ unsigned int phy23:5; /**< [5-1] Tx Mapping value of logical phy 5 */ unsigned int reserved_2:1; /**< [0] These bits are always 0 */ } utTxTransTable3; /**< Tx translation table */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtTxTransTable4_ * @brief Utopia Tx translation table Register */ struct UtTxTransTable4_ { unsigned int phy24:5; /**< [31-27] Tx Mapping value of logical phy 6 */ unsigned int phy25:5; /**< [26-22] Tx Mapping value of logical phy 7 */ unsigned int phy26:5; /**< [21-17] Tx Mapping value of logical phy 8 */ unsigned int reserved_1:1; /**< [16-0] These bits are always 0 */ unsigned int phy27:5; /**< [15-11] Tx Mapping value of logical phy 3 */ unsigned int phy28:5; /**< [10-6] Tx Mapping value of logical phy 4 */ unsigned int phy29:5; /**< [5-1] Tx Mapping value of logical phy 5 */ unsigned int reserved_2:1; /**< [0] These bits are always 0 */ } utTxTransTable4; /**< Tx translation table */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtTxTransTable5_ * @brief Utopia Tx translation table Register */ struct UtTxTransTable5_ { unsigned int phy30:5; /**< [31-27] Tx Mapping value of logical phy 6 */ unsigned int reserved_1:27; /**< [26-0] These bits are always 0 */ } utTxTransTable5; /**< Tx translation table */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtRxConfig_ * @brief Utopia Rx config Register */ struct UtRxConfig_ { unsigned int rxInterface:1; /**< [31] Utopia Receive Interface. The following encoding is used to set the Utopia Receive interface as ATM master or PHY slave: @li 1 - PHY @li 0 - ATM */ unsigned int rxMode:1; /**< [30] Utopia Receive Mode. The following encoding is used to set the Utopia Receive mode to SPHY or MPHY: @li 1 - SPHY @li 0 - MPHY */ unsigned int rxOctet:1; /**< [29] Utopia Receive cell transfer protocol. Used to set the Utopia cell transfer protocol to Octet-level handshaking. Note this is only applicable in SPHY mode. @li 1 - Octet-handshaking enabled @li 0 - Cell-handshaking enabled */ unsigned int rxParity:1; /**< [28] Utopia Receive Parity Checking enable. @li 1 - Parity checking enabled @li 0 - Parity checking disabled */ unsigned int rxEvenParity:1;/**< [27] Utopia Receive Parity Mode @li 1 - Check for Even Parity @li 0 - Check for Odd Parity.*/ unsigned int rxHEC:1; /**< [26] RxHEC Header Error Check Mode. Enables/disables cell header error checking on the received cell header. @li 1 - HEC checking enabled @li 0 - HEC checking disabled */ unsigned int rxCOSET:1; /**< [25] If enabled the HEC is Exclusive-OR芿d with the value 0x55 before being tested with the received HEC. @li 1 - Enable HEC ExOR with value 0x55. @li 0 - Use generated HEC value.*/ unsigned int rxHECpass:1; /**< [24] Specifies if the incoming cell HEC byte should be transferred after optional processing to the NPE2 Coprocessor Bus Interface or if it should be discarded. @li 1 - HEC maintained 53-byte/UDC cell sent to NPE2. @li 0 - HEC discarded 52-byte/UDC cell sent to NPE2 coprocessor.*/ unsigned int reserved_1:1; /**< [23] These bits are always 0 */ unsigned int rxCellSize:7; /**< [22:16] Receive cell size. Configures the receive cell size. Values between 52-64 are valid */ unsigned int rxHashEnbGFC:1; /**< [15] Specifies if the VPI field [11:8]/GFC field should be included in the Hash data input or if the bits should be padded with 1芺0. @li 1 - VPI [11:8]/GFC field valid and used in Hash residue calculation. @li 0 - VPI [11:8]/GFC field padded with 1芺0 */ unsigned int rxPreHash:1; /**< [14] Enable Pre-hash value generation. Specifies if the incoming cell data should be pre-hashed to allow VPI/VCI header look-up in a hash table. @li 1 - Pre-hashing enabled @li 0 - Pre-hashing disabled */ unsigned int reserved_2:1; /**< [13] These bits are always 0 */ unsigned int rxAddrRange:5; /**< [12:8] In ATM master, MPHY mode, * this register specifies the upper * limit of the PHY polling logical range. The number of active PHYs are * RxAddrRange + 1. */ unsigned int reserved_3:3; /**< [7-5] These bits are always 0 .*/ unsigned int rxPHYAddr:5; /**< [4:0] When configured as a slave in an MPHY system this register * specifies the physical address of the PHY. */ } utRxConfig; /**< Rx config Utopia register */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtRxStatsConfig_ * @brief Utopia Rx stats config Register */ struct UtRxStatsConfig_ { unsigned int vpi:12; /**< [31:20] ATM VPI VPI [11:0] OR GFC [3:0] and VPI [7:0] @li Note: if VCStatsRxGFC is set to 0 the GFC field is ignored in test. */ unsigned int vci:16; /**< [19:4] VCI [15:0] or PHY Address [4] */ unsigned int pti:3; /**< [3:1] PTI [2:0] or or PHY Address [3:1] @li Note: if VCStatsRxPTI is set to 0 the PTI field is ignored in test. @li Note: if VCStatsRxEnb is set to 0 only the PHY port address is used for statistics gathering.. */ unsigned int clp:1; /**< [0] CLP [0] or PHY Address [0] @li Note: if VCStatsRxCLP is set to 0 the CLP field is ignored in test. @li Note: if VCStatsRxEnb is set to 0 only the PHY port address is used for statistics gathering.. */ } utRxStatsConfig; /**< Rx stats config Utopia register */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtRxDefineIdle_ * @brief Utopia Rx idle cells config Register */ struct UtRxDefineIdle_ { unsigned int vpi:12; /**< [31:20] ATM VPI [11:0] OR GFC [3:0] and VPI [7:0] @li Note: if VCIdleRxGFC is set to 0 the GFC field is ignored in test. */ unsigned int vci:16; /**< [19:4] ATM VCI [15:0] */ unsigned int pti:3; /**< [3:1] ATM PTI PTI [2:0] @li Note: if VCIdleRxPTI is set to 0 the PTI field is ignored in test.*/ unsigned int clp:1; /**< [0] ATM CLP [0] @li Note: if VCIdleRxCLP is set to 0 the CLP field is ignored in test.*/ } utRxDefineIdle; /**< Rx idle cell config Utopia register */ /** * @ingroup IxAtmdAccUtopiaCtrlAPI * @struct UtRxEnableFields_ * @brief Utopia Rx enable Register */ struct UtRxEnableFields_ { unsigned int defineRxIdleGFC:1;/**< [31] This register is used to include or exclude the GFC field of the ATM header when testing for Idle cells. @li 1 - GFC field is valid. @li 0 - GFC field ignored.*/ unsigned int defineRxIdlePTI:1;/**< [30] This register is used to include or exclude the PTI field of the ATM header when testing for Idle cells. @li 1 - PTI field is valid. @li 0 - PTI field ignored.*/ unsigned int defineRxIdleCLP:1;/**< [29] This register is used to include or exclude the CLP field of the ATM header when testing for Idle cells. @li 1 - CLP field is valid. @li 0 - CLP field ignored.*/ unsigned int phyStatsRxEnb:1;/**< [28] This register is used to enable or disable ATM statistics gathering based on the specified PHY address as defined in RxStatsConfig register. @li 1 - Enable statistics for specified receive PHY address. @li 0 - Disable statistics for specified receive PHY address.*/ unsigned int vcStatsRxEnb:1;/**< [27] This register is used to enable or disable ATM statistics gathering based on a specific VPI/VCI address. @li 1 - Enable statistics for specified VPI/VCI address. @li 0 - Disable statistics for specified VPI/VCI address.*/ unsigned int vcStatsRxGFC:1;/**< [26] This register is used to include or exclude the GFC field of the ATM header when ATM VPI/VCI statistics are enabled. GFC is only available at the UNI and uses the first 4-bits of the VPI field. @li 1 - GFC field is valid. @li 0 - GFC field ignored. */ unsigned int vcStatsRxPTI:1;/**< [25] This register is used to include or exclude the PTI field of the ATM header when ATM VPI/VCI statistics are enabled. @li 1 - PTI field is valid. @li 0 - PTI field ignored.*/ unsigned int vcStatsRxCLP:1;/**< [24] This register is used to include or exclude the CLP field of the ATM header when ATM VPI/VCI statistics are enabled. @li 1 - CLP field is valid. @li 0 - CLP field ignored. */ unsigned int discardHecErr:1;/**< [23] Discard cells with an invalid HEC. @li 1 - Discard cells with HEC errors @li 0 - Cells with HEC errors are passed */ unsigned int discardParErr:1;/**< [22] Discard cells containing parity errors. @li 1 - Discard cells with parity errors @li 0 - Cells with parity errors are passed */ unsigned int discardIdle:1; /**< [21] Discard Idle Cells based on DefineIdle register values @li 1 - Discard IDLE cells @li 0 - IDLE cells passed */ unsigned int enbHecErrCnt:1;/**< [20] Enable Receive HEC Error Count. @li 1 - Enable count of received cells containing HEC errors @li 0 - No count is maintained. */ unsigned int enbParErrCnt:1;/**< [19] Enable Parity Error Count @li 1 - Enable count of received cells containing Parity errors @li 0 - No count is maintained. */ unsigned int enbIdleCellCnt:1;/**< [18] Enable Receive Idle Cell Count. @li 1 - Enable count of Idle cells received. @li 0 - No count is maintained.*/ unsigned int enbSizeErrCnt:1;/**< [17] Enable Receive Size Error Count. @li 1 - Enable count of received cells of incorrect size @li 0 - No count is maintained. */ unsigned int enbRxCellCnt:1;/**< [16] Enable Receive Valid Cell Count of non-idle/non-error cells. @li 1 - Enable count of valid cells received - non-idle/non-error @li 0 - No count is maintained. */ unsigned int reserved_1:3; /**< [15:13] These bits are always 0 */ unsigned int rxCellOvrInt:1; /**< [12] Enable CBI Utopia Receive Status Condition if the RxCellCount register overflows. @li 1 - CBI Receive Status asserted. @li 0 - No CBI Receive Status asserted.*/ unsigned int invalidHecOvrInt:1; /**< [11] Enable CBI Receive Status Condition if the InvalidHecCount register overflows. @li 1 - CBI Receive Condition asserted. @li 0 - No CBI Receive Condition asserted */ unsigned int invalidParOvrInt:1; /**< [10] Enable CBI Receive Status Condition if the InvalidParCount register overflows @li 1 - CBI Receive Condition asserted. @li 0 - No CBI Receive Condition asserted */ unsigned int invalidSizeOvrInt:1; /**< [9] Enable CBI Receive Status Condition if the InvalidSizeCount register overflows. @li 1 - CBI Receive Status Condition asserted. @li
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -