+extern MacCb macCb;
+
+extern void sendToLowerMac(uint16_t msgType, uint32_t msgLen, void *msg);
+uint16_t buildMacPdu(RlcMacData *dlData);
+
+/* Function pointer for sending crc ind from MAC to SCH */
+MacSchCrcIndFunc macSchCrcIndOpts[]=
+{
+ packMacSchCrcInd,
+ macSchCrcInd,
+ packMacSchCrcInd
+};
+
+/* Function pointer for sending DL RLC BO Info from MAC to SCH */
+MacSchDlRlcBoInfoFunc macSchDlRlcBoInfoOpts[]=
+{
+ packMacSchDlRlcBoInfo,
+ macSchDlRlcBoInfo,
+ packMacSchDlRlcBoInfo
+};
+
+/*******************************************************************
+ *
+ * @brief Sends DL BO Info to SCH
+ *
+ * @details
+ *
+ * Function : sendDlRlcBoInfoMacToSch
+ *
+ * Functionality:
+ * Sends DL BO Info to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ ****************************************************************/
+int sendDlRlcBoInfoMacToSch(DlRlcBOInfo *dlBoInfo)
+{
+ Pst pst;
+
+ fillMacToSchPst(&pst);
+ pst.event = EVENT_DL_RLC_BO_INFO_TO_SCH;
+
+ return(*macSchDlRlcBoInfoOpts[pst.selector])(&pst, dlBoInfo);
+}
+
+/*******************************************************************
+ *
+ * @brief Sends CRC Indication to SCH
+ *
+ * @details
+ *
+ * Function : sendCrcIndMacToSch
+ *
+ * Functionality:
+ * Sends CRC Indication to SCH
+ *
+ * @params[in]
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ ****************************************************************/
+int sendCrcIndMacToSch(CrcIndInfo *crcInd)
+{
+ Pst pst;
+
+ fillMacToSchPst(&pst);
+ pst.event = EVENT_CRC_IND_TO_SCH;
+
+ return(*macSchCrcIndOpts[pst.selector])(&pst, crcInd);
+}
+
+/*******************************************************************
+ *
+ * @brief Processes CRC Indication from PHY
+ *
+ * @details
+ *
+ * Function : fapiMacCrcInd
+ *
+ * Functionality:
+ * Processes CRC Indication from PHY
+ *
+ * @params[in] Post Structure Pointer
+ * Crc Indication Pointer
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint16_t fapiMacCrcInd(Pst *pst, CrcInd *crcInd)
+{
+ CrcIndInfo crcIndInfo;
+
+ DU_LOG("\nMAC : Received CRC indication");
+
+ /* Considering one pdu and one preamble */
+ crcIndInfo.cellId = macCb.macCell->cellId;;
+ crcIndInfo.crnti = crcInd->crcInfo[0].rnti;
+ crcIndInfo.timingInfo.sfn = crcInd->timingInfo.sfn;
+ crcIndInfo.timingInfo.slot = crcInd->timingInfo.slot;
+ crcIndInfo.numCrcInd = crcInd->crcInfo[0].numCb;
+ crcIndInfo.crcInd[0] = crcInd->crcInfo[0].cbCrcStatus[0];
+
+ return(sendCrcIndMacToSch(&crcIndInfo));
+}
+
+/*******************************************************************
+ *
+ * @brief Process Rx Data Ind at MAC
+ *
+ * @details
+ *
+ * Function : fapiMacRxDataInd
+ *
+ * Functionality:
+ * Process Rx Data Ind at MAC
+ *
+ * @params[in] Post structure
+ * Rx Data Indication
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint16_t fapiMacRxDataInd(Pst *pst, RxDataInd *rxDataInd)
+{
+ uint16_t pduIdx;
+
+ DU_LOG("\nMAC : Received Rx Data indication");
+
+ /* TODO : compare the handle received in RxDataInd with handle send in PUSCH
+ * PDU, which is stored in raCb */
+
+ for(pduIdx = 0; pduIdx < rxDataInd->numPdus; pduIdx++)
+ {
+ unpackRxData(&rxDataInd->pdus[pduIdx]);
+ }
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Processes DL data from RLC
+ *
+ * @details
+ *
+ * Function : MacRlcProcDlData
+ *
+ * Functionality:
+ * Processes DL data from RLC
+ *
+ * @params[in] Post structure
+ * DL data
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint16_t MacRlcProcDlData(Pst* pst, SpId spId, RlcMacData *dlData)
+{
+ return ROK;
+}
+
+/*******************************************************************
+ *
+ * @brief Processes BO status from RLC
+ *
+ * @details
+ *
+ * Function : MacRlcProcBOStatus
+ *
+ * Functionality:
+ * Processes BO status from RLC
+ *
+ * @params[in] Post structure
+ * BO status
+ * @return ROK - success
+ * RFAILED - failure
+ *
+ * ****************************************************************/
+uint16_t MacRlcProcBOStatus(Pst* pst, SpId spId, RlcMacBOStatus* boStatus)
+{
+ return ROK;
+}
+
+