1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
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 #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
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 /* This file defines API towards lower interface of RLC */
20 #include "common_def.h"
21 #include "rlc_mac_inf.h"
23 RlcMacBoStatusFunc rlcMacSendBoStatusOpts[] =
25 packRlcBoStatus, /* 0 - loosely coupled */
26 MacProcRlcBoStatus, /* 1 - tightly coupled, MAC */
27 packRlcBoStatus, /* 2 - LWLC loosely coupled */
29 RlcMacDlDataFunc rlcMacSendDlDataOpts[] =
31 packRlcDlData, /* 0 - loosely coupled */
32 MacProcRlcDlData, /* 1 - tightly coupled, MAC */
33 packRlcDlData, /* 2 - loosely coupled */
39 * Handler for reporting the Buffer Occupancy to MAC
40 * for logical channels.
44 * This function reports the Buffer Occupancy of one or more
45 * logical channels to MAC.
47 * @param[in] post Post structure
48 * @param[in] spId Service Provider ID
49 * @param[in] boSta BO Status Information
56 uint8_t RlcSendBoStatusToMac(Pst *pst, RlcBoStatus *boSta)
58 /* jump to specific primitive depending on configured selector */
59 return (*rlcMacSendBoStatusOpts[pst->selector])(pst, boSta);
61 } /* end of RlcMacSendBOStatus */
63 /*******************************************************************
65 * @brief Sends DL data to MAC
69 * Function : RlcSendDlDataToMac
71 * Functionality: Sends DL data to MAC
74 * @return ROK - success
77 * ****************************************************************/
78 uint8_t RlcSendDlDataToMac(Pst *pst, RlcData *dlData)
80 /* jump to specific primitive depending on configured selector */
81 return (*rlcMacSendDlDataOpts[pst->selector])(pst, dlData);
84 /**********************************************************************
86 **********************************************************************/