#define SEARCHSPACE_0_INDEX 0
#define SIB1_MCS 4
+/* Macros for coupling */
+#define DU_MAC_LC 0
+#define DU_MAC_TC 1
+#define DU_MAC_LWLC 2
/* Event IDs */
#define EVENT_MAC_CELL_CONFIG_REQ 200
#define EVENT_MAC_CELL_CONFIG_CFM 201
+#define EVENT_MAC_CELL_START_REQ 202
+#define EVENT_MAC_CELL_STOP_REQ 203
+#define EVENT_MAC_SLOT_IND 204
typedef enum
{
U8 zeroCorrZoneCfg; /* Zero correlation zone cofig */
U8 numUnusedRootSeq; /* Number of unused root sequence */
U8 *unsuedRootSeq; /* Unused root sequence per FD */
-}FdmInfo;
+}PrachFdmInfo;
typedef struct prachCfg
{
Bool pres;
+ uint8_t prachCfgIdx; /* PRACH Cfg Index */
PrachSeqLen prachSeqLen; /* RACH Sequence length: Long/short */
- U8 prachSubcSpacing; /* Subcarrier spacing of RACH */
+ uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
RstSetCfg prachRstSetCfg; /* PRACH restricted set config */
- U8 prachFdm; /* PRACH FDM (1,2,4,8) */
- FdmInfo fdm[8];
- U8 ssbPerRach; /* SSB per RACH occassion */
- Bool prachMultCarrBand; /* Multiple carriers in Band */
+ uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
+ uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
+ PrachFdmInfo fdm[8]; /* FDM info */
+ uint8_t ssbPerRach; /* SSB per RACH occassion */
+ Bool prachMultCarrBand; /* Multiple carriers in Band */
+ uint8_t prachRestrictedSet; /* Support for PRACH restricted set */
+ uint8_t raContResTmr; /* RA Contention Resoultion Timer */
+ uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
+ uint8_t raRspWindow; /* RA Response Window */
}PrachCfg;
typedef struct tddCfg
U16 transId;
}MacCellCfgCfm;
-/* function pointers for packing macCellCfg Request */
-typedef U16 (*packMacCellCfgReq) ARGS((
+typedef struct slotInfo
+{
+ uint16_t cellId;
+ uint16_t sfn;
+ uint16_t slot;
+}SlotInfo;
+
+typedef struct macCellStartInfo
+{
+ uint16_t cellId;
+}MacCellStartInfo;
+
+typedef struct macCellStopInfo
+{
+ uint16_t cellId;
+}MacCellStopInfo;
+
+/* Functions for slot Ind from MAC to DU APP*/
+typedef uint16_t (*DuMacSlotInd) ARGS((
+ Pst *pst,
+ SlotInfo *slotInfo ));
+
+extern uint16_t packMacSlotInd(Pst *pst, SlotInfo *slotInfo );
+extern uint16_t unpackMacSlotInd(DuMacSlotInd func, Pst *pst, Buffer *mBuf);
+extern uint16_t duHandleSlotInd(Pst *pst, SlotInfo *slotInfo);
+
+/* Functions for mac cell start req */
+typedef uint16_t (*DuMacCellStartReq) ARGS((
+ Pst *pst,
+ MacCellStartInfo *cellStartInfo ));
+
+extern uint16_t packMacCellStartReq(Pst *pst, MacCellStartInfo *cellStartInfo);
+extern uint16_t unpackMacCellStartReq(DuMacCellStartReq func, Pst *pst, Buffer *mBuf);
+extern uint16_t MacHdlCellStartReq(Pst *pst, MacCellStartInfo *cellStartInfo);
+
+/* Functions for mac cell stop request */
+typedef uint16_t (*DuMacCellStopReq) ARGS((
+ Pst *pst,
+ MacCellStopInfo *cellStopInfo ));
+
+extern uint16_t packMacCellStopReq(Pst *pst, MacCellStopInfo *cellStopInfo);
+extern uint16_t unpackMacCellStopReq(DuMacCellStopReq func, Pst *pst, Buffer *mBuf);
+extern uint16_t MacHdlCellStopReq(Pst *pst, MacCellStopInfo *cellStopInfo);
+
+/* Function pointers for packing macCellCfg Request and Confirm */
+typedef int (*packMacCellCfgReq) ARGS((
Pst *pst,
- MacCellCfg *macCellCfg
-));
+ MacCellCfg *macCellCfg ));
-typedef S16 (*packMacCellCfgConfirm) ARGS((
+typedef int (*packMacCellCfgConfirm) ARGS((
Pst *pst,
- MacCellCfgCfm *macCellCfgCfm
-));
-
-typedef S16 (*DuMacCellCfgReq) ARGS((
- Pst *pst, /* Post Structure */
- MacCellCfg *macCellCfg /* Config Structure */
- ));
-
-typedef S16 (*DuMacCellCfgCfm) ARGS((
- MacCellCfgCfm *macCellCfgCfm /* Config Structure */
- ));
-
-U16 packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg);
-
-EXTERN int MacHdlCellCfgReq
-(
- Pst *pst,
- MacCellCfg *macCellCfg
-);
-
-void cmUnpackLwLcMacCellCfg(
- DuMacCellCfgReq func,
- Pst *pst,
- Buffer *mBuf);
-
-U16 unpackMacCellCfgCfm(
- DuMacCellCfgCfm func,
- Pst *pst,
- Buffer *mBuf);
-
-EXTERN S16 duHandleMacCellCfgCfm
-(
- MacCellCfgCfm *macCellCfgCfm
-);
+ MacCellCfgCfm *macCellCfgCfm ));
+
+typedef int (*DuMacCellCfgReq) ARGS((
+ Pst *pst,
+ MacCellCfg *macCellCfg));
+
+typedef int (*DuMacCellCfgCfm) ARGS((
+ Pst *pst,
+ MacCellCfgCfm *macCellCfgCfm ));
+
+extern int packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg);
+extern int MacHdlCellCfgReq(Pst *pst, MacCellCfg *macCellCfg);
+extern void cmUnpackLwLcMacCellCfg(DuMacCellCfgReq func, Pst *pst, Buffer *mBuf);
+extern int unpackMacCellCfgCfm(DuMacCellCfgCfm func, Pst *pst, Buffer *mBuf);
+extern int duHandleMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm);
#endif