856cb1e212d7ad7f28fb026b65f560d537a5da94
[o-du/l2.git] / src / du_app / du_f1ap_msg_hdl.h
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17 *******************************************************************************/
18
19 /* This file contains all F1AP message handler related functionality */
20
21 #define TRANS_ID 1
22 #define RRC_SIZE 1
23 #define SUL_BAND_COUNT 0
24 #define UL_SRBID        1
25 #define DL_SRBID        0
26 #define DU_ID           1
27 #define CU_ID           1
28 #define CRNTI           17017
29 #define CELL_INDEX      0
30
31 void F1APMsgHdlr(Buffer *mBuf);
32 uint8_t BuildAndSendF1SetupReq();
33 uint8_t BuildAndSendDUConfigUpdate();
34 uint8_t BuildAndSendInitialRrcMsgTransfer(uint32_t gnbDuUeF1apId, uint16_t crnti, uint16_t rrcContSize, 
35           uint8_t *rrcContainer);
36 uint8_t BuildAndSendULRRCMessageTransfer(DuUeCb  ueCb, uint8_t lcId,  uint16_t msgLen, uint8_t *rrcMsg);
37 uint8_t procUeReCfgCellInfo(MacUeCfg *macUeCfg, MacUeCfg *storedMacUeCfg, void *cellGrp);
38 void freeUeReCfgCellGrpInfo(MacUeCfg *macUeCfg);
39 uint8_t BuildAndSendUeCtxtRsp(uint8_t cellId, uint8_t ueId);
40 uint8_t getDrbLcId(uint32_t *drbBitMap);
41 void  freeMacLcCfg(LcCfg *lcCfg);
42 void  freeRlcLcCfg(RlcBearerCfg *lcCfg);
43 uint8_t BuildAndSendRrcDeliveryReport(uint32_t gnbCuUeF1apId, uint32_t gnbDuUeF1apId, RrcDeliveryReport *rrcDelivery);
44 uint8_t sctpSend(Buffer *mBuf, uint8_t itfType);
45 uint8_t duProcDlRrcMsg(F1DlRrcMsg *dlRrcMsg);
46 uint8_t duProcUeContextSetupRequest(DuUeCb *ueCb);
47 void duFillModulationDetails(MacUeCfg *ueCfg, MacUeCfg *oldUeCfg, void *ueCap);
48 int8_t getReAsmblTmr(uint8_t reAsmblTmrCfg);
49 int16_t getStatProhTmr(uint8_t statProhTmrCfg);
50 uint8_t duProcUeContextModReq(DuUeCb *ueCb);
51 uint8_t BuildAndSendUeContextModRsp(uint8_t cellId,uint8_t ueId);
52 uint8_t duBuildAndSendUeContextModReq(uint16_t cellId, uint16_t crnti, DuUeCfg *duUeCfg);
53 uint8_t BuildAndSendUeContextReleaseReq(uint16_t cellId, uint8_t ueId);
54 uint8_t BuildAndSendUeContextReleaseComplete(uint16_t cellId, uint32_t  gnbCuUeF1apId, uint32_t  gnbDuUeF1apId);
55 uint8_t duSendCellDeletReq(uint16_t cellId); 
56 uint8_t duProcUeContextReleaseCommand(DuUeCb *duUeCb);
57 /**********************************************************************
58          End of file
59 **********************************************************************/