1 /* header include files (.h) */
3 #include "envopt.h" /* environment options */
4 #include "envdep.h" /* environment dependent */
5 #include "envind.h" /* environment independent */
6 #include "gen.h" /* general */
7 #include "ssi.h" /* system services */
8 #include "cm_tkns.h" /* Common Token Defines */
9 #include "cm_llist.h" /* Common Link List Defines */
10 #include "cm_hash.h" /* Common Hash List Defines */
11 #include "cm_lte.h" /* Common LTE Defines */
12 #include "cm_mblk.h" /* Common LTE Defines */
13 #include "tfu.h" /* RGU Interface defines */
17 /* header/extern include files (.x) */
18 #include "gen.x" /* general */
19 #include "ssi.x" /* system services */
20 #include "cm_tkns.x" /* Common Token Definitions */
21 #include "cm_llist.x" /* Common Link List Definitions */
22 #include "cm_lib.x" /* Common Library Definitions */
23 #include "cm_hash.x" /* Common Hash List Definitions */
24 #include "cm_lte.x" /* Common LTE Defines */
25 #include "cm_mblk.x" /* Common LTE Defines */
26 #include "tfu.x" /* RGU Interface includes */
29 #include "du_app_mac_inf.h"
30 #include "mac_sch_interface.h"
33 * @brief function to send Slot ind message from MAC
34 * to scheduler with loose coupling
38 * Function : packMacSchSlotInd
41 * @param[in] Pst *pst, the post structure
42 * @param[in] *slotInd, the value of SFN and slot
46 int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd)
49 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
54 /* pack SFN and slot value */
55 CMCHKPK(SPkU16,slotInd->sfn, mBuf);
56 CMCHKPK(SPkU16,slotInd->slot, mBuf);
58 RETVALUE(SPstTsk(pst,mBuf));
61 /*******************************************************************
63 * @brief Pack and Send Rach Ind from MAC to SCH
67 * Function : packMacSchRachInd
70 * Pack and Send Rach Ind from MAC to SCH
73 * @return ROK - success
76 * ****************************************************************/
77 int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd)
79 if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
90 /*******************************************************************
92 * @brief Pack and Send Crc Ind from MAC to SCH
96 * Function : packMacSchCrcInd
99 * Pack and Send Crc Ind from MAC to SCH
102 * @return ROK - success
105 * ****************************************************************/
106 int packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd)
108 if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
119 /*******************************************************************
121 * @brief Pack and Send DL RLC BO Info from MAC to SCH
125 * Function : packMacSchDlRlcBoInfo
128 * Pack and Send L RLC BO Info from MAC to SCH
131 * @return ROK - success
134 * ****************************************************************/
135 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBOInfo *dlBoInfo)
137 if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
149 * @brief function to pack DL Broadcast allocation message
154 * Function : packSchMaccDlAlloc
157 * @param[in] Pst *pst, the post structure
158 * @param[in] DlSchedInfo *dlSchedInfo
162 int packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo)
168 * @brief function to pack UL Sch Info message
173 * Function : packSchMacUlSchInfo
176 * @param[in] Pst *pst, the post structure
177 * @param[in] UlSchedInfo *ulSchedInfo
181 int packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo)
187 * @brief function to pack cell cfg from MAC to SCH
191 * Function : packSchCellCfg
194 * @param[in] Pst *pst, the post structure
195 * @param[in] *schCellCfg, SchCellCfg structure
199 int packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg)
205 * @brief function to pack cell cfg cfm from SCH to MAC
209 * Function : packSchCellCfgCfm
212 * @param[in] Pst *pst, the post structure
213 * @param[in] *schCellCfgCfm, SchCellCfgCfm structure
217 int packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm)
223 /**********************************************************************
225 **********************************************************************/