X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Flkw.x;h=4a7a14db0af48347f779d5ab58cd82f483640940;hb=3330932565e15a749fd5dd5039cdea2862ca51cc;hp=af84ad55b85d2c9c01b904f88c0347c1b40d0112;hpb=5625a52ad68f6ad93684e68bbbdbaef0d462cf9a;p=o-du%2Fl2.git diff --git a/src/cm/lkw.x b/src/cm/lkw.x index af84ad55b..4a7a14db0 100755 --- a/src/cm/lkw.x +++ b/src/cm/lkw.x @@ -33,32 +33,32 @@ #define __LKW_X__ #ifdef __cplusplus -EXTERN "C" { +extern "C" { #endif /* __cplusplus */ /** @brief General Configuration Structure. */ -typedef struct kwGenCfg +typedef struct rlcGenCfg { Pst lmPst; /*!< Post structure for communicating with LM. */ - U32 maxUe; /*!< Maximum number of UEs supported + uint32_t maxUe; /*!< Maximum number of UEs supported by RLC. */ - U16 maxKwuSaps; /*!< Maximum KWU SAPs. */ + uint16_t maxKwuSaps; /*!< Maximum KWU SAPs. */ /* Supported by SPLIT Architecture */ - U16 maxUdxSaps; /*!< Maximum Udx SAPs. */ + uint16_t maxUdxSaps; /*!< Maximum Udx SAPs. */ /* Supported by SPLIT Architecture ends */ Ticks timeRes; /*!< Time resolution. */ /* Supported by SPLIT Architecture */ - U8 rlcMode; /*!< RLC_DL or RLC_UL */ + uint8_t rlcMode; /*!< RLC_DL or RLC_UL */ /* Supported by SPLIT Architecture ends */ - U16 maxRguSaps; /*!< Maximum RGU SAPs. */ -}KwGenCfg; + uint16_t maxRguSaps; /*!< Maximum RGU SAPs. */ +}RlcGenCfg; /** @brief SAP Configuration Structure */ -typedef struct kwSapCfg +typedef struct rlcSapCfg { Selector selector; /*!< Selector for LC/TC. */ MemoryId mem; /*!< Region and pool. */ @@ -66,26 +66,26 @@ typedef struct kwSapCfg Ent ent; /*!< Entity ID. */ Inst inst; /*!< Instance ID. */ SpId sapId; /*!< SAP ID. */ - U16 bndTmrIntvl; /*!< Bind timer interval. */ + uint16_t bndTmrIntvl; /*!< Bind timer interval. */ Priority priority; /*!< Priority. */ Route route; /*!< Route. */ -}KwSapCfg; +}RlcSapCfg; /** @brief * Configuration Structure */ -typedef struct kwCfg +typedef struct rlcCfg { union { - KwGenCfg gen; /*!< General configuraton. */ - KwSapCfg sap; /*!< SAP configuration. */ + RlcGenCfg gen; /*!< General configuraton. */ + RlcSapCfg sap; /*!< SAP configuration. */ }s; -}KwCfg; +}RlcCfg; /** @brief General Statistics Structure */ -typedef struct kwGenSts +typedef struct rlcGenSts { CntrSts numUe; /*!< Total number of UEs. */ CntrSts pdusRecv; /*!< Number of PDUs received. */ @@ -99,165 +99,165 @@ typedef struct kwGenSts to retransmission. */ CntrSts numOfRb; /*!< Total number of RBs in RLC. */ CntrSts numSduDisc; /*!< Number of SDUs discarded. */ -}KwGenSts; +}RlcGenSts; /** @brief RLC Upper SAP statistics */ -typedef struct kwKwuSapSts +typedef struct rlcKwuSapSts { /* lkw_x_001.main_2, changed from suId to spId */ SpId spId; /*!< Service Provider ID. */ CntrSts sduRx; /*!< Number of SDUs received. */ CntrSts sduTx; /*!< Number of tranxmitted SDUs. */ -}KwKwuSapSts; +}RlcKwuSapSts; /** @brief RRC Control SAP Statistics */ -typedef struct kwCkwCntSts +typedef struct rlcCkwCntSts { CntrSts statMsgs; /*!< Number of Status Messages send. */ -}KwCkwCntSts; +}RlcCkwCntSts; /** @brief Statistics Structure */ -typedef struct kwSts +typedef struct rlcSts { DateTime dt; /*!< Date and Time structure. */ union { - KwGenSts gen; /*!< General Statistics. */ - KwKwuSapSts kwuSap; /*!< RLC upper SAP statistics. */ - KwCkwCntSts ckwSap; /*!< RRC control SAP. */ + RlcGenSts gen; /*!< General Statistics. */ + RlcKwuSapSts rlckwuSap; /*!< RLC upper SAP statistics. */ + RlcCkwCntSts ckwSap; /*!< RRC control SAP. */ }s; -}KwSts; +}RlcSts; /** @brief MAC Upper SAP Status Structure */ -typedef struct kwRguSapSta +typedef struct rlcRguSapSta { SuId suId; /*!< Service user ID. */ State state; /*!< State of the SAP. */ -}KwRguSapSta; +}RlcRguSapSta; /** @brief RLC Upper SAP Status Structure */ -typedef struct kwKwuSapSta +typedef struct rlcKwuSapSta { SpId spId; /*!< Service provider ID. */ State state; /*!< State of the SAP. */ -}KwKwuSapSta; +}RlcKwuSapSta; /** @brief RRC Control SAP Status Structure */ -typedef struct kwCkwCntSapSta +typedef struct rlcCkwCntSapSta { SpId spId; /*!< Service provider ID. */ State state; /*!< State of the SAP. */ -}KwCkwCntSapSta; +}RlcCkwCntSapSta; /** @brief Status Structure */ -typedef struct kwSSta +typedef struct rlcSSta { DateTime dt; /*!< Date and Time structure. */ union { SystemId sysId; /*!< System ID. */ - KwRguSapSta rguSap; /*!< RLC lower SAP (MAC) status. */ - KwKwuSapSta kwuSap; /*!< RLC Upper SAP status. */ - KwCkwCntSapSta ckwSap; /*!< RRC Control SAP Status. */ + RlcRguSapSta rguSap; /*!< RLC lower SAP (MAC) status. */ + RlcKwuSapSta rlckwuSap; /*!< RLC Upper SAP status. */ + RlcCkwCntSapSta ckwSap; /*!< RRC Control SAP Status. */ }s; -}KwSSta; +}RlcSSta; /** @brief Trace Control Structure */ -typedef struct kwTrcCntrl +typedef struct rlcTrcCntrl { - U8 trcMask; /*!< Trace mask. */ + uint8_t trcMask; /*!< Trace mask. */ S16 trcLen; /*!< Trace length. */ -}KwTrcCntrl; +}RlcTrcCntrl; /** @brief Debug Control Structure */ -typedef struct kwDbgCntrl +typedef struct rlcDbgCntrl { - U32 dbgMask; /*!< Debug mask. Assign non zero value to enable + uint32_t dbgMask; /*!< Debug mask. Assign non zero value to enable and zero to disable debug */ -}KwDbgCntrl; +}RlcDbgCntrl; /** @brief SAP Control Structure */ -typedef struct kwSapCntrl +typedef struct rlcSapCntrl { SuId suId; /*!< Service user ID. */ SpId spId; /*!< Service provider ID. */ -}KwSapCntrl; +}RlcSapCntrl; /** @brief Control Structure */ -typedef struct kwCntrl +typedef struct rlcCntrl { DateTime dt; /*!< Date and Time structure. */ - U8 action; /*!< Action. */ - U8 subAction; /*!< Sub action. */ + uint8_t action; /*!< Action. */ + uint8_t subAction; /*!< Sub action. */ union { - KwTrcCntrl trcCntrl; /*!< Trace Control Structure. */ - KwDbgCntrl dbgCntrl; /*!< Debug Control Structure. */ - KwSapCntrl sapCntrl; /*!< SAP Control Structure. */ + RlcTrcCntrl trcCntrl; /*!< Trace Control Structure. */ + RlcDbgCntrl dbgCntrl; /*!< Debug Control Structure. */ + RlcSapCntrl sapCntrl; /*!< SAP Control Structure. */ #ifdef SS_DIAG - U32 logMask; /*!< Logging Control Structure. */ + uint32_t logMask; /*!< Logging Control Structure. */ #endif }s; -}KwCntrl; +}RlcCntrl; /** @brief Unsolicited Status Structure */ -typedef struct kwUSta +typedef struct rlcUSta { DateTime dt; /*!< Date and Time structure. */ CmAlarm alarm; /*!< Alarm. */ SuId suId; /*!< Service user ID. */ - U32 ueId; /*!< Urnti UE ID. */ + uint32_t ueId; /*!< Urnti UE ID. */ /* lkw_x_001.main_2, added support for L2 measurement */ #ifdef LTE_L2_MEAS - U8 qci; /*!< Qci value */ + uint8_t qci; /*!< Qci value */ #endif -}KwUSta; +}RlcUSta; /** @brief Trace Structure */ -typedef struct kwTrc +typedef struct rlcTrc { DateTime dt; /*!< Date and Time structure. */ - U16 event; /*!< Event. Events defined in the differenct RLC + uint16_t event; /*!< Event. Events defined in the differenct RLC interfaces are pssible values here.*/ -}KwTrc; +}RlcTrc; /** @brief Layer Management Structure */ -typedef struct _kwMngmt +typedef struct rlcMngmt { Header hdr; /*!< Common header. */ CmStatus cfm; /*!< Status of confirmation. */ union { - KwCfg cfg; /*!< General Configuration. */ - KwCntrl cntrl; /*!< Control Structure. */ - KwSts sts; /*!< Statistics. */ - KwSSta ssta; /*!< Status. */ - KwUSta usta; /*!< Unsolicited Status. */ - KwTrc trc; /*!< Trace Structre. */ + RlcCfg cfg; /*!< General Configuration. */ + RlcCntrl cntrl; /*!< Control Structure. */ + RlcSts sts; /*!< Statistics. */ + RlcSSta ssta; /*!< Status. */ + RlcUSta usta; /*!< Unsolicited Status. */ + RlcTrc trc; /*!< Trace Structre. */ }t; -}KwMngmt; +}RlcMngmt; /* lkw_x_001.main_2, added support for L2 measurement */ #ifdef LTE_L2_MEAS /** @brief Measurement Request Params Structure. */ -typedef struct kwL2MeasReqInfo +typedef struct rlcL2MeasReqInfo { - U8 measType; /*!< Measurement type, bit 1 to 4 (LSB nibble) + uint8_t measType; /*!< Measurement type, bit 1 to 4 (LSB nibble) will be used for non IP Throughput and bit 5 and 6 will be used for DL and UL Ipthroughput respectively */ @@ -265,48 +265,48 @@ typedef struct kwL2MeasReqInfo { struct { - U16 numSamples; /*!