DL Resource allocation for msg4
[o-du/l2.git] / src / cm / mac_sch_interface.c
index c8d12a6..be2439c 100644 (file)
@@ -57,21 +57,108 @@ int packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd)
    RETVALUE(SPstTsk(pst,mBuf));
 }
 
+/*******************************************************************
+ *
+ * @brief Pack and Send Rach Ind from MAC to SCH
+ *
+ * @details
+ *
+ *    Function : packMacSchRachInd
+ *
+ *    Functionality:
+ *      Pack and Send Rach Ind from MAC to SCH
+ *
+ * @params[in] 
+ * @return ROK     - success
+ *         RFAILED - failure
+ *
+ * ****************************************************************/
+int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd)
+{
+   if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
+   {
+      /* TODO */
+   }
+   else
+   {
+      return RFAILED;
+   }
+   return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send Crc Ind from MAC to SCH
+ *
+ * @details
+ *
+ *    Function : packMacSchCrcInd
+ *
+ *    Functionality:
+ *       Pack and Send Crc Ind from MAC to SCH
+ *
+ * @params[in] 
+ * @return ROK     - success
+ *         RFAILED - failure
+ *
+ * ****************************************************************/
+int packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd)
+{
+   if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
+   {
+      /* TODO */
+   }
+   else
+   {
+      return RFAILED;
+   }
+   return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Pack and Send DL RLC BO Info from MAC to SCH
+ *
+ * @details
+ *
+ *    Function : packMacSchDlRlcBoInfo
+ *
+ *    Functionality:
+ *       Pack and Send L RLC BO Info from MAC to SCH
+ *
+ * @params[in] 
+ * @return ROK     - success
+ *         RFAILED - failure
+ *
+ * ****************************************************************/
+uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBOInfo *dlBoInfo)
+{
+   if((pst->selector == MAC_SELECTOR_LC) || (pst->selector == MAC_SELECTOR_LWLC))
+   {
+      /* TODO */
+   }
+   else
+   {
+      return RFAILED;
+   }
+   return ROK;
+}
+
 /**
  * @brief function to pack DL Broadcast allocation message 
  *        from MAC to SCH
  *
  * @details
  *
- *     Function : packSchMaccDlBrdcstAlloc 
+ *     Function : packSchMaccDlAlloc 
  *     
  *     
  *  @param[in]  Pst *pst, the post structure     
- *  @param[in]  *dlBrdcstAlloc, dlBroadcastAlloc
+ *  @param[in]  DlAlloc  *dlAlloc
  *  @return  S16
  *      -# ROK
  **/
-int packSchMacDlBrdcstAlloc(Pst *pst, DlBrdcstAlloc  *dlBrdcstAlloc)
+int packSchMacDlAlloc(Pst *pst, DlAlloc  *dlAlloc)
 {
        return ROK;
 }