X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fcu_stub%2Fcu_f1ap_msg_hdl.h;h=35d56dbcbb2c32f7dde9bf2bb7f713c40138c179;hb=6eda577056855df28788aef28ee0a29c9128d1f5;hp=d213a9028e36fcf0d512c1d188e710e6215df63d;hpb=bb8df345963bb5ef2e035ead7731c1171e4cbbe0;p=o-du%2Fl2.git diff --git a/src/cu_stub/cu_f1ap_msg_hdl.h b/src/cu_stub/cu_f1ap_msg_hdl.h index d213a9028..35d56dbcb 100644 --- a/src/cu_stub/cu_f1ap_msg_hdl.h +++ b/src/cu_stub/cu_f1ap_msg_hdl.h @@ -17,35 +17,9 @@ *******************************************************************************/ /* This file contains all F1AP message handler related functionality */ -#include -#include -#include -#include -#include "ProtocolExtensionField.h" -#include "F1AP-PDU.h" -#include "Cells-to-be-Activated-List.h" - -#include "envopt.h" /* Environment options */ -#include "envdep.h" /* Environment dependent */ -#include "envind.h" /* Environment independent */ -#include "gen.h" /* General */ -#include "ssi.h" /* System services */ -#include "ss_queue.h" -#include "ss_task.h" -#include "ss_msg.h" - -#include "gen.x" /* General */ -#include "ssi.x" /* System services */ -#include "ss_queue.x" -#include "ss_task.x" -#include "ss_msg.x" - -#include "du_log.h" - #define ENCODE_FAIL -1 #define TRANS_ID 1 #define RRC_SIZE 1 -#define ENC_BUF_MAX_LEN 100 #define SUL_BAND_COUNT 0 #define UL_SRBID 1 #define DL_SRBID 0 @@ -53,30 +27,55 @@ #define CU_ID 1 #define CRNTI 17017 #define CELL_INDEX 0 +#define SRB0 0 +#define SRB1 1 +#define SRB2 2 +#define DRB1 1 +#define DRB2 2 +#define DRB3 3 +#define QCI 9 +#define MAX_DRB_SET_UE_CONTEXT_SETUP_REQ 2 /*Number of DRBs to be added using UE CONTEXT SETUP procedure*/ +#define MAX_DRB_SET_UE_CONTEXT_MOD_REQ 1 /*Number of DRBs to be added/setup via UE CONTEXT MODIFICATION procedure*/ +#define MAX_DRB_MODIFIED_UE_MOD_REQ 1 /*Currently CU trigger Modification of 2DRBs*/ +#define DRB_ID_TO_ADD_MOD MAX_DRB_SET_UE_CONTEXT_SETUP_REQ+1 /*The DRB ID: which will be added using Modification Procedure*/ +/*Total num of DRBs added using UE COntext Setup and Modification procedures*/ +#define MAX_NUM_DRB_ADDED_PER_UE (MAX_DRB_SET_UE_CONTEXT_SETUP_REQ + MAX_DRB_SET_UE_CONTEXT_MOD_REQ) -/* allocate and zero out a static buffer */ -#define CU_ALLOC(_datPtr, _size) \ -{ \ - S16 _ret; \ - _ret = SGetSBuf(CU_APP_MEM_REG, CU_POOL, \ - (Data **)&_datPtr, _size); \ - if(_ret == ROK) \ - cmMemset((U8*)_datPtr, 0, _size); \ - else \ - _datPtr = NULLP; \ -} +#define CU_UE_F1AP_ID 0 +#define DU_UE_F1AP_ID 1 +#define SP_CELL_ID 2 +#define SERV_CELL_IDX 3 +#define CU_TO_DU_RRC_INF 4 -/* free a static buffer */ -#define CU_FREE(_datPtr, _size) \ - if(_datPtr) \ - SPutSBuf(CU_APP_MEM_REG, CU_POOL, \ - (Data *)_datPtr, _size); +#define RRC_SETUP 1 +#define REGISTRATION_ACCEPT 2 +#define UE_CONTEXT_SETUP_REQ 3 +#define UE_CONTEXT_SETUP_RSP 4 +#define SECURITY_MODE_COMPLETE 5 +#define RRC_RECONFIG 6 +#define UE_CONTEXT_MOD_REQ 7 +#define NUM_QOS_EXT 1 +typedef struct f1apDb +{ + uint8_t dlRrcMsgCount; + OCTET_STRING_t duToCuContainer; +}F1apMsgDb; + +typedef struct ueInfo +{ + uint8_t ueId; + F1apMsgDb f1apMsgDb; +}UeCb; -void F1APMsgHdlr(Buffer *mBuf); +UeCb ueCb[MAX_NUM_UE]; +void F1APMsgHdlr(Buffer *mBuf); +uint8_t BuildAndSendUeContextModificationReq(uint8_t ueId); +uint8_t BuildAndSendUeContextReleaseCommand(uint8_t cuUeF1apId, uint8_t duUeF1apId); +uint8_t BuildAndSendF1ResetReq(); /********************************************************************** End of file **********************************************************************/