warning set 4
[o-du/l2.git] / src / 5gnrmac / mac.h
index f6b483f..b5dd425 100644 (file)
 #include "tfu.x"           /* RGU Interface includes */
 #include "lrg.x"
 
-#define MAX_SLOT_SUPPORTED 50
+#define MAX_SLOT_SUPPORTED    10 /* numerology 0 15Khz */
+#define MAX_ZERO_CORR_CFG_IDX 16 /* max zero correlation config index */
+#define SI_RNTI 0xFFFF
+#define P_RNTI 0xFFFE
 
 typedef struct macDlSlot
 {
-   DlBrdcstAlloc cellBroadcastInfo;
+   DlAlloc dlInfo;
 
 }MacDlSlot;
 
+typedef struct macUlSlot
+{
+   UlSchInfo    ulCellInfo;
+}MacUlSlot;
+
 typedef struct macCellCb
 {
+   uint16_t   cellId;
+   RachIndInfo raCb;
    MacDlSlot  dlSlot[MAX_SLOT_SUPPORTED];
+   MacUlSlot  ulSlot[MAX_SLOT_SUPPORTED];
 }MacCellCb;
 
 typedef struct macCb
 {
+   Inst       macInst;
    MacCellCb  *macCell;
 }MacCb;
 
 /* global variable */
-MacCb macCb;
+EXTERN MacCb macCb;
+void fillMacToSchPst(Pst *pst);
 
 #endif
 /**********************************************************************