X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac.h;h=6af82e37c2bc5bc10f8fe45756e8b3969409165a;hb=50aa3f9538e700074800c809f226760079e68d4a;hp=e0eebe09c339b750f4739841516e7ec13de48dee;hpb=b490cd1231cfcc837e8bfccc40c6bb106dceef7c;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac.h b/src/5gnrmac/mac.h index e0eebe09c..6af82e37c 100644 --- a/src/5gnrmac/mac.h +++ b/src/5gnrmac/mac.h @@ -50,11 +50,30 @@ #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 + +#define MAC_LCID_CCCH 0 +#define MAC_DEDLC_MIN_LCID 1 +#define MAC_DEDLC_MAX_LCID 32 +#define MAC_LCID_RESERVED_MIN 33 +#define MAC_LCID_RESERVED_MAX 51 +#define MAC_LCID_CCCH_48BIT 52 +#define MAC_LCID_BIT_RATE_QUERY 53 +#define MAC_LCID_MULT_PHR_FOUR_OCT 54 +#define MAC_LCID_CFG_GRANT_CFM 55 +#define MAC_LCID_MULT_PHR_ONE_OCT 56 +#define MAC_LCID_SINGLE_PHR 57 +#define MAC_LCID_CRNTI 58 +#define MAC_LCID_SHORT_TRUNC_BSR 59 +#define MAC_LCID_LONG_TRUNC_BSR 60 +#define MAC_LCID_SHORT_BSR 61 +#define MAC_LCID_LONG_BSR 62 +#define MAC_LCID_PADDING 63 typedef struct macDlSlot { - DlBrdcstAlloc cellBroadcastInfo; - + DlAlloc dlInfo; }MacDlSlot; typedef struct macUlSlot @@ -79,6 +98,8 @@ typedef struct macCb /* global variable */ EXTERN MacCb macCb; void fillMacToSchPst(Pst *pst); +void fillRarPdu(RarInfo *rarInfo); +int unpackRxData(SlotIndInfo timingInfo, RxDataIndPdu *rxDataIndPdu); #endif /**********************************************************************