[EPIC-ID: ODUHIGH-488][TASK-ID: ODUHIGH-494]SCH framework update to support different...
[o-du/l2.git] / src / cm / mac_sch_interface.c
index b6dc192..39a86f9 100644 (file)
@@ -35,27 +35,6 @@ uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd)
    return ODU_POST_TASK(pst,mBuf);
 }
 
-/**
- * @brief function to unpack Slot ind message from MAC
- *        to scheduler with loose coupling
- *
- * @details
- *
- *     Function : unpackMacSchSlotInd
- *
- *
- *  @param[in]  Pst *pst, the post structure
- *  @param[in]  Buffer *mBuf, the message buffer
- *  @return  S16
- *      -# ROK
- **/
-uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer  *mBuf)
-{
-   /* TODO */
-   return ROK;
-}
-
-
 /*******************************************************************
  *
  * @brief Pack and Send Rach Ind from MAC to SCH
@@ -233,7 +212,7 @@ uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm)
  *         RFAILED - failure
  *
  * ****************************************************************/
-uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg  *ueCfg)
+uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfgReq  *ueCfg)
 {
    if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
    {
@@ -268,6 +247,29 @@ uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp)
 {
    return ROK;
 }
+
+/*******************************************************************
+ *
+ * @brief Packs and send UE reconfig response
+ *
+ * @details 
+ *
+ *    Function : packSchUeRecfgRsp
+ *
+ *    Functionality:
+ *      Packs and send UE reconfig response
+ *
+ * @params[in] Post structure
+ *             UE re-config response
+ * @return ROK     - success
+ *         RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packSchUeRecfgRsp(Pst *pst, SchUeRecfgRsp *recfgRsp)
+{
+   return ROK;
+}
+
 /*******************************************************************
  *
  * @brief Pack and Send BSR from MAC to SCH
@@ -326,6 +328,36 @@ uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd)
    return ROK;
 }
 
+/*******************************************************************
+ *
+ * @brief Pack and Send DL HARQ Ind from MAC to SCH
+ *
+ * @details
+ *
+ *    Function : packMacSchDlHarqInd
+ *
+ *    Functionality:
+ *       Pack and Send DL HARQ Ind from MAC to SCH
+ *
+ * @params[in]
+ * @return ROK     - success
+ *         RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchDlHarqInd(Pst *pst, DlHarqInd *dlHarqInd)
+{
+   if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
+   {
+      /* TODO */
+   }
+   else
+   {
+      return RFAILED;
+   }
+   return ROK;
+}
+
+
 /*******************************************************************
  *
  * @brief Pack and Send Modify UE Config Request from MAC to SCH
@@ -342,7 +374,7 @@ uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd)
  *         RFAILED - failure
  *
  * ****************************************************************/
-uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg  *ueCfg)
+uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeRecfgReq  *ueRecfg)
 {
    if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
    {
@@ -415,6 +447,36 @@ uint8_t packSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp)
    return ROK;
 }
 
+/*******************************************************************
+ *
+ * @brief Pack and Send RACH resource Release from MAC to SCH
+ *
+ * @details
+ *
+ *    Function : packMacSchRachRsrcRel
+ *
+ *    Functionality:
+ *       Pack and Send RACH resouece Release from MAC to SCH
+ *
+ * @params[in] Post structure
+ *             RACH resource release
+ * @return ROK     - success
+ *         RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchRachRsrcRel(Pst *pst, SchRachRsrcRel *schRachRsrcRel)
+{
+   if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
+   {   
+      /* TODO */
+   }   
+   else
+   {   
+      return RFAILED; 
+   }   
+   return ROK;
+}
+
 /*******************************************************************
 *
 * @brief Pack and Send UE Delete Request from MAC to SCH
@@ -483,7 +545,7 @@ uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp  *delRsp)
  *         RFAILED - failure
  *
  * ****************************************************************/
-uint8_t packMacSchCellDeleteReq(Pst *pst,  SchCellDelete *schCellDelete)
+uint8_t packMacSchCellDeleteReq(Pst *pst,  SchCellDeleteReq *schCellDelete)
 {
    if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LC))
    {
@@ -569,17 +631,17 @@ uint8_t packSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp)
  *
  * @details
  *
- *    Function : packMacSchSliceReCfgReq 
+ *    Function : packMacSchSliceRecfgReq 
  *
  *    Functionality:
  *       Pack and Send Slice ReCfg request from MAC to SCH
  *
- * @params[in] Pst *pst, SchSliceCfgReq *cfgReq 
+ * @params[in] Pst *pst, SchSliceRecfgReq *cfgReq 
  * @return ROK     - success
  *         RFAILED - failure
  *
  * ****************************************************************/
-uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq)
+uint8_t packMacSchSliceRecfgReq(Pst *pst, SchSliceRecfgReq *sliceRecfgReq)
 {
    if((pst->selector == ODU_SELECTOR_LC) || (pst->selector == ODU_SELECTOR_LWLC))
    {
@@ -597,13 +659,13 @@ uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq)
  *
  * @details
  *
- *     Function : packSchSliceReCfgRsp 
+ *     Function : packSchSliceRecfgRsp 
  *     
  *     
- *  @param[in]  Pst *pst, SchSliceCfgRsp *cfgRsp
+ *  @param[in]  Pst *pst, SchSliceRecfgRsp *cfgRsp
  *  @return  S16 - ROK
  **/
-uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp)
+uint8_t packSchSliceRecfgRsp(Pst *pst, SchSliceRecfgRsp *recfgRsp)
 {
    return ROK;
 }
@@ -637,6 +699,44 @@ uint8_t packMacSchPagingInd(Pst *pst,  SchPageInd *pageInd)
    return ROK;
 }
 
+/**
+ * @brief function to pack DL Paging allocation message 
+ *        from MAC to SCH
+ *
+ * @details
+ *
+ *     Function : packSchMacDlPageAlloc 
+ *     
+ *     
+ *  @param[in]  Pst *pst, the post structure     
+ *  @param[in]  DlPageAlloc *dlPageAlloc
+ *  @return  S16
+ *      -# ROK
+ **/
+uint8_t packSchMacDlPageAlloc(Pst *pst, DlPageAlloc *dlPageAlloc)
+{
+   return ROK;
+}
+
+/**
+ * @brief function to pack Harq process release message 
+ *        from SCH to MAC
+ *
+ * @details
+ *
+ *     Function : packSchMacDlReleaseHarq 
+ *     
+ *     
+ *  @param[in]  Pst *pst, the post structure     
+ *  @param[in]  SchRlsHqInfo *rlsHqInfo
+ *  @return  S16
+ *      -# ROK
+ **/
+uint8_t packSchMacDlReleaseHarq(Pst *pst, SchRlsHqInfo *rlsHqInfo)
+{
+   return ROK;
+}
+
 /**********************************************************************
   End of file
  **********************************************************************/