Stop Req and Stop Ind code changes
[o-du/l2.git] / src / cm / mac_sch_interface.h
index ee9552b..9d43406 100644 (file)
@@ -48,6 +48,8 @@
 #define SCH_DATATYPE_SRS 8
 #define SCH_DATATYPE_PRACH 16
 
+#define MAX_NUMBER_OF_CRC_IND_BITS 1
+
 /*structures*/
 
 
@@ -232,6 +234,44 @@ typedef struct schRachCfg
    uint8_t      raRspWindow;         /* RA Response Window */
 }SchRachCfg;
 
+typedef struct schBwpParams
+{
+   uint16_t firstPrb;
+   uint16_t numPrb;
+       uint8_t  scs;
+       uint8_t  cyclicPrefix;
+}SchBwpParams;
+
+typedef struct schCandidatesInfo
+{
+   uint8_t aggLevel1;
+   uint8_t aggLevel2;
+   uint8_t aggLevel4;
+   uint8_t aggLevel8;
+   uint8_t aggLevel16;
+}SchCandidatesInfo;
+
+typedef struct schSearchSpaceCfg
+{
+   uint8_t searchSpaceId;
+       uint8_t coresetId;
+       uint16_t monitoringSlot;
+       uint16_t duration;
+       uint16_t monitoringSymbol;
+       SchCandidatesInfo candidate;
+}SchSearchSpaceCfg;
+
+typedef struct schPdcchCfgCmn
+{
+   SchSearchSpaceCfg raSearchSpace;
+}SchPdcchCfgCmn;
+
+typedef struct schBwpDlCfg
+{
+   SchBwpParams   bwp;
+       SchPdcchCfgCmn pdcchCommon;
+}SchBwpDlCfg;
+
 typedef struct schCellCfg
 {
    uint16_t    cellId;     /* Cell Id */
@@ -241,6 +281,7 @@ typedef struct schCellCfg
        SchSsbCfg   ssbSchCfg;  /* SSB config */
        SchSib1Cfg  sib1SchCfg; /* SIB1 config */
    SchRachCfg  schRachCfg; /* PRACH config */
+       SchBwpDlCfg    schInitialBwp;
 }SchCellCfg;
 
 typedef struct schCellCfgCfm
@@ -352,6 +393,17 @@ typedef struct rachIndInfo
    uint16_t    timingAdv;
 }RachIndInfo;
 
+
+typedef struct crcIndInfo
+{
+   uint16_t    cellId;
+   uint16_t    crnti;
+   SlotIndInfo timingInfo;
+   uint16_t    numCrcInd;
+   uint8_t     crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
+}CrcIndInfo;
+
+
 /* function pointers */
 
 typedef int (*SchCellCfgCfmFunc)    ARGS((
@@ -391,6 +443,9 @@ EXTERN int MacProcUlSchInfo(Pst *pst, UlSchInfo *ulSchInfo);
 typedef int (*MacSchRachIndFunc)(Pst *pst, RachIndInfo *rachInd);
 int packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
 int macSchRachInd(Pst *pst, RachIndInfo *rachInd);
+typedef int (*MacSchCrcIndFunc)(Pst *pst, CrcIndInfo *crcInd);
+int packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
+int macSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
 
 /**********************************************************************
   End of file