Building mib PDU and SSB changes at scheduler
[o-du/l2.git] / src / cm / mac_sch_interface.c
1 /* header include files (.h) */
2 #include "envopt.h"        /* environment options */
3 #include "envdep.h"        /* environment dependent */
4 #include "envind.h"        /* environment independent */
5 #include "gen.h"           /* general */
6 #include "ssi.h"           /* system services */
7 #include "cm_tkns.h"       /* Common Token Defines */
8 #include "cm_llist.h"      /* Common Link List Defines */
9 #include "cm_hash.h"       /* Common Hash List Defines */
10 #include "cm_lte.h"        /* Common LTE Defines */
11 #include "cm_mblk.h"        /* Common LTE Defines */
12 #include "tfu.h"           /* RGU Interface defines */
13 #include "lrg.h"
14 //#include "fapi.h"
15
16 /* header/extern include files (.x) */
17 #include "gen.x"           /* general */
18 #include "ssi.x"           /* system services */
19 #include "cm_tkns.x"       /* Common Token Definitions */
20 #include "cm_llist.x"      /* Common Link List Definitions */
21 #include "cm_lib.x"        /* Common Library Definitions */
22 #include "cm_hash.x"       /* Common Hash List Definitions */
23 #include "cm_lte.x"        /* Common LTE Defines */
24 #include "cm_mblk.x"        /* Common LTE Defines */
25 #include "tfu.x"           /* RGU Interface includes */
26 #include "lrg.x"
27
28 #include "du_app_mac_inf.h"
29 #include "mac_sch_interface.h"
30
31 /**
32  * @brief function to send Slot ind message from MAC
33  *        to scheduler with loose coupling 
34  *
35  * @details
36  *
37  *     Function : packMacSchSlotInd
38  *     
39  *     
40  *  @param[in]  Pst *pst, the post structure     
41  *  @param[in]  *slotInd, the value of SFN and slot
42  *  @return  S16
43  *      -# ROK
44  **/
45 int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd)
46 {
47    Buffer *mBuf = NULLP;
48    if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
49    {
50       RETVALUE(RFAILED);
51    }
52
53    /* pack SFN and slot value */
54    CMCHKPK(SPkU16,slotInd->sfn, mBuf);
55    CMCHKPK(SPkU16,slotInd->slot, mBuf);
56
57    RETVALUE(SPstTsk(pst,mBuf));
58 }
59
60 /**
61  * @brief function to pack DL Broadcast allocation message 
62  *        from MAC to SCH
63  *
64  * @details
65  *
66  *     Function : packSchMaccDlBrdcstAlloc 
67  *     
68  *     
69  *  @param[in]  Pst *pst, the post structure     
70  *  @param[in]  *dlBrdcstAlloc, dlBroadcastAlloc
71  *  @return  S16
72  *      -# ROK
73  **/
74 int packSchMacDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc  *dlBrdcstAlloc)
75 {
76         return ROK;
77 }
78
79 /**
80  * @brief function to pack cell cfg from MAC to SCH
81  *
82  * @details
83  *
84  *     Function : packSchCellCfg 
85  *     
86  *     
87  *  @param[in]  Pst *pst, the post structure     
88  *  @param[in]  *schCellCfg, SchCellCfg structure
89  *  @return  S16
90  *      -# ROK
91  **/
92 int packSchCellCfg(Pst *pst, SchCellCfg  *schCellCfg)
93 {
94         return ROK;
95 }
96
97 /**
98  * @brief function to pack cell cfg cfm from SCH to MAC
99  *
100  * @details
101  *
102  *     Function : packSchCellCfgCfm
103  *     
104  *     
105  *  @param[in]  Pst *pst, the post structure     
106  *  @param[in]  *schCellCfgCfm, SchCellCfgCfm structure
107  *  @return  S16
108  *      -# ROK
109  **/
110 int packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm)
111 {
112         return ROK;
113 }
114
115
116 /**********************************************************************
117   End of file
118  **********************************************************************/
119