#include "du_app_mac_inf.h"
#include "rg.x"
#include "lwr_mac_fsm.h"
-
/* This file contains message handling functionality for MAC */
+extern void sendToLowerMac(uint16_t msgType, uint32_t msgLen, void *msg);
+
/*******************************************************************
*
* @brief Handles cell start reuqest from DU APP
#include "rg_prg.x" /*PRG interface includes*/
#include "du_app_mac_inf.h"
#include "rg.x" /* typedefs for MAC */
-
+void unpackDuMacCellCfg(DuMacCellCfgReq func,Pst *pst,Buffer *mBuf);
/**
* @brief Task Activation callback function Entity SM.
#endif
#include "ss_rbuf.h"
#include "ss_rbuf.x"
-
+#include "lwr_mac.h" /* MAC CL defines */
#include "mac.h"
#include "lwr_mac_phy.h"
#include "lwr_mac_fsm.h"
ClCb clGlobalCp;
MacCb macCb;
+int MacSchCellCfgReq(Pst *pst,MacCellCfg *macCellCfg);
+
/* forward references */
PRIVATE U16 rgLMMGenCfg ARGS((
Inst inst,
#ifdef LTEMAC_SPS
Bool isSpsRnti=FALSE;
Pst schPst1;
- RgInfSpsRelInfo relInfo;
- Bool spsToBeActvtd = FALSE;
+ // RgInfSpsRelInfo relInfo;
+ Bool spsToBeActvtd = FALSE;
U16 sduSize = 0;
#endif
U32 lcgBytes[RGINF_MAX_LCG_PER_UE];
ueCb->ul.implRelCntr = 0;
ueCb->ul.explRelCntr = 0;
- relInfo.cellSapId = cellCb->schInstMap.cellSapId;
+#if 0
+ relInfo.cellSapId = cellCb->schInstMap.cellSapId;
relInfo.cRnti = ueCb->ueId;
- relInfo.isExplRel = FALSE;
+ relInfo.isExplRel= FALSE;
//TODO: commented for compilation without SCH RgMacSchSpsRel(&schPst1, &relInfo);
+#endif
}
}
else
File: kw_ptli.c
*********************************************************************21*/
-static const char* RLOG_MODULE_NAME="LIM";
-static int RLOG_MODULE_ID=2048;
-static int RLOG_FILE_ID=238;
+
/** @file kw_ptli.c
@brief RLC Lower Interface
*/
{
CkwCfgCfmInfo *cfgCfm;
U8 idx;
- S16 ret = ROK;
KwCb *tKwCb;
Pst *pstUdxCfm;
RguDDatReqPerUe datPerUe; /* DL data info per UE */
RguDatReqTb datPerTb; /* DL data info per TB */
RguLchDatReq datPerLch; /* DL data info per Lch */
- RguPduInfo pduInfo; /* DL RLC PDU infor */
RlcMacData *dlData; /* DL data to be sent to MAC */
TRC3(KwLiRguDDatReq)
#ifdef EMTC_ENABLE
#include "rg_sch_emtc_ext.x"
#endif
+U8 rgSCHCmnCalcPcqiBitSz(RgSchUeCb *ueCb,U8 numTxAnt);
+PUBLIC S16 rgSCHDhm5gtfHqFdbkInd(RgSchUeCb *ue,RgSchCellCb *cell,CmLteTimingInfo timingInfo,TfuHqFdbk fdbk,RgSchErrInfo *err);
/* local defines */
#ifdef EMTC_ENABLE
EXTERN Bool rgSCHEmtcChkEmtcUe ARGS(
#include "sch.h"
#include "sch_utils.h"
#include "du_log.h"
-
extern SchCb schCb[SCH_MAX_INST];
extern int8_t coresetIdxTable[MAX_CORESET_INDEX][4];
extern int8_t searchSpaceIdxTable[MAX_SEARCH_SPACE_INDEX][4];
+void SchFillCfmPst(Pst *reqPst,Pst *cfmPst,RgMngmt *cfm);
/* local defines */
SchCellCfgCfmFunc SchCellCfgCfmOpts[] =
{
S16 ret1 = ROK;
#endif
S16 retVal;
- SpId spId = 0;
KwuDatReqInfo *datReq = NULLP;
KwuDatReqInfo datReqTmp;
#include "ss_msg.x"
#include "du_log.h"
-
#define ENCODE_FAIL -1
+S16 sctpSend(Buffer *mBuf, U8 itfType);
+
typedef struct e2apDb
{
U16 ricId;
#define EGTP_MASK_BIT7 0x40
#define EGTP_MASK_BIT8 0x80
-
+S16 unpackEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf);
U8 protType;
typedef struct egtpTptSrvr
#include "GNB-DU-System-Information.h"
extern char encBuf[ENC_BUF_MAX_LEN];
-
extern DuCfgParams duCfgParam;
S16 sctpSend(Buffer *mBuf, U8 itfType);
/*******************************************************************
* ****************************************************************/
S16 BuildAndSendULRRCMessageTransfer()
{
-
U8 elementCnt;
U8 ieId;
U8 idx;
extern S16 cmUnpkLkwCfgCfm(LkwCfgCfm func,Pst *pst, Buffer *mBuf);
extern S16 cmUnpkLkwCntrlCfm(LkwCntrlCfm func,Pst *pst, Buffer *mBuf);
extern S16 cmUnpkLrgCfgCfm(LrgCfgCfm func,Pst *pst, Buffer *mBuf);
-
+extern S16 cmUnpkKwuDatInd(KwuDatInd func,Pst *pst, Buffer *mBuf);
+extern S16 cmUnpkLrgSchCfgCfm(LrgSchCfgCfm func,Pst *pst,Buffer *mBuf);
/**************************************************************************
* @brief Task Initiation callback function.
*
extern S16 cmPkLkwCfgReq(Pst *pst, KwMngmt *cfg);
extern S16 cmPkLkwCntrlReq(Pst *pst, KwMngmt *cfg);
extern S16 cmPkLrgCfgReq(Pst *pst, RgMngmt *cfg);
+extern S16 BuildAndSendE2SetupReq();
+extern S16 egtpHdlDatInd(EgtpMsg egtpMsg);
+extern S16 BuildAndSendDUConfigUpdate();
+extern U16 getTransId();
+extern S16 cmPkLrgSchCfgReq(Pst * pst,RgMngmt * cfg);
packMacCellCfgReq packMacCellCfgOpts[] =
{
S16 duHdlEgtpDlData(EgtpMsg *egtpMsg);
S16 duHdlRlcUlData(Pst *pst, KwuDatIndInfo* datInd, Buffer *mBuf);
-
+S16 packUeCreateReq(Pst *pst,CkwCfgInfo *cfgInfo);
+S16 cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf);
#endif
/**********************************************************************
{
CmMmGlobRegCb *globReg;
CmMmGlobalBktCb *bktCb;
- U8 blkCnt;
U8 bktIdx= reg;
TRC3(isMemThreshReached)