X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.c;h=01c3b02b3f665800b3efe301abe72a7b66e587c3;hb=4e803fe4bcf3a446b7082675d25d35ad102f16f6;hp=d870a003670e6d0389a294f21eb35dbd58942303;hpb=6f769128e3fa5a83ee92e668ef9ac152c96b3200;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.c b/src/cm/mac_sch_interface.c index d870a0036..01c3b02b3 100644 --- a/src/cm/mac_sch_interface.c +++ b/src/cm/mac_sch_interface.c @@ -1,31 +1,11 @@ /* header include files (.h) */ -#include "stdbool.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 "cm_tkns.h" /* Common Token Defines */ -#include "cm_llist.h" /* Common Link List Defines */ -#include "cm_hash.h" /* Common Hash List Defines */ -#include "cm_lte.h" /* Common LTE Defines */ -#include "cm_mblk.h" /* Common LTE Defines */ +#include "common_def.h" #include "tfu.h" /* RGU Interface defines */ #include "lrg.h" -//#include "fapi.h" /* header/extern include files (.x) */ -#include "gen.x" /* general */ -#include "ssi.x" /* system services */ -#include "cm_tkns.x" /* Common Token Definitions */ -#include "cm_llist.x" /* Common Link List Definitions */ -#include "cm_lib.x" /* Common Library Definitions */ -#include "cm_hash.x" /* Common Hash List Definitions */ -#include "cm_lte.x" /* Common LTE Defines */ -#include "cm_mblk.x" /* Common LTE Defines */ #include "tfu.x" /* RGU Interface includes */ #include "lrg.x" - #include "du_app_mac_inf.h" #include "mac_sch_interface.h" @@ -76,7 +56,7 @@ int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd) * ****************************************************************/ int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd) { - if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC)) { /* TODO */ } @@ -105,7 +85,7 @@ int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd) * ****************************************************************/ int packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd) { - if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC)) { /* TODO */ } @@ -134,7 +114,7 @@ int packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd) * ****************************************************************/ uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBOInfo *dlBoInfo) { - if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC)) + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC)) { /* TODO */ } @@ -161,7 +141,7 @@ uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBOInfo *dlBoInfo) **/ int packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo) { - return ROK; + return ROK; } /** @@ -180,7 +160,7 @@ int packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo) **/ int packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo) { - return ROK; + return ROK; } /** @@ -198,7 +178,7 @@ int packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo) **/ int packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg) { - return ROK; + return ROK; } /** @@ -216,10 +196,61 @@ int packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg) **/ int packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm) { - return ROK; + return ROK; +} + +/******************************************************************* + * + * @brief Pack and Send UE Create Request from MAC to SCH + * + * @details + * + * Function : packMacSchUeCreateReq + * + * Functionality: + * Pack and Send UE Create Request from MAC to SCH + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packMacSchUeCreateReq(Pst *pst, SchUeCfg *ueCfg) +{ + if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC)) + { + /* TODO */ + } + else + { + return RFAILED; + } + return ROK; } +/******************************************************************* + * + * @brief Packs and send UE create response + * + * @details + * + * Function : packSchUeCfgRsp + * + * Functionality: + * Packs and send UE create response + * + * @params[in] Post structure + * UE config response + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp) +{ + return ROK; +} + /********************************************************************** End of file **********************************************************************/