X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_upr_inf_api.c;h=be8c36d0303f716de429a8df847df59d53c4a6a8;hb=4d45b914f9e94203603d3b9fdbcb1aad361301dd;hp=ac2b2c6016018e1aa91e0d65a865444540dc03a9;hpb=45d134510deb6902b870b4a0fb574b6075fba601;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_upr_inf_api.c b/src/5gnrmac/mac_upr_inf_api.c index ac2b2c601..be8c36d03 100644 --- a/src/5gnrmac/mac_upr_inf_api.c +++ b/src/5gnrmac/mac_upr_inf_api.c @@ -19,6 +19,8 @@ /* This file contains the definitions for Upper Interface APIs that are * invoked from MAC */ #include "common_def.h" +#include "rgu.h" +#include "rgu.x" #include "du_app_mac_inf.h" #include "mac_upr_inf_api.h" @@ -45,6 +47,14 @@ DuMacUlCcchInd packMacUlCcchIndOpts[] = packMacUlCcchInd }; +/* Function pointer options for UL Data to RLC */ +RlcMacUlDataFunc rlcMacSendUlDataOpts[] = +{ + packRlcUlData, + RlcProcUlData, + packRlcUlData +}; + /******************************************************************* * * @brief Send slot indication to MAC @@ -112,6 +122,26 @@ uint8_t MacDuAppUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo) return (*packMacUlCcchIndOpts[pst->selector])(pst, ulCcchIndInfo); } +/******************************************************************* + * + * @brief Send UL data to RLC + * + * @details + * + * Function : MacRlcSendUlData + * + * Functionality: Send UL data to RLC + * + * @params[in] + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +uint8_t MacSendUlDataToRlc(Pst *pst, RlcMacData *ulData) +{ + return (*rlcMacSendUlDataOpts[pst->selector])(pst, ulData); +} + /********************************************************************** End of file