X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac.h;h=43d1e102ca1276e88a7b0a3832bee510bdd41cac;hb=d33a3a253832f19807f2ff6e2de6881ce342f4fd;hp=f6b483fbf16e1ce8295e074c2035c380481cfc7c;hpb=f15bab416a36e421d42be3d2d1a42bf4c8c8b6c2;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac.h b/src/5gnrmac/mac.h index f6b483fbf..43d1e102c 100644 --- a/src/5gnrmac/mac.h +++ b/src/5gnrmac/mac.h @@ -48,26 +48,39 @@ #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); +void fillRarPdu(RarInfo *rarInfo); #endif /**********************************************************************