SLice Mapping to RLC DB [ Jira Id - ODUHIGH-371 ]
[o-du/l2.git] / src / cm / common_def.h
index d326e37..26a327a 100644 (file)
@@ -56,6 +56,7 @@
 #define RADIO_FRAME_DURATION 10 /* Time duration of a radio frame in ms */
 /* MAX values */
 #define MAX_NUM_CELL 1
+#define MAX_NUM_MU   4
 #define MAX_NUM_UE   2
 #define MAX_NUM_UE_PER_TTI 1
 #define MAX_NUM_LC   32   /*Spec 38.331: Sec 6.4: maxLC-ID Keyword*/
 #define ODU_SET_THREAD_AFFINITY SSetAffinity
 #define ODU_CREATE_TASK SCreateSTsk
 
+/* Slice */
+#define SD_SIZE 3
+
 #ifdef NR_TDD
 /* Maximum slots for max periodicity and highest numerology is 320.
  * However, aligning to fapi_interface.h, setting this macro to 160 */
    _bitPos = __builtin_ctz(_in);                 \
 }
 
+/* MACRO for checking CRNTI range*/
+#define CHECK_CRNTI(_crnti, _isCrntiValid)                                         \
+{                                                                   \
+  _isCrntiValid = ((_crnti >= ODU_START_CRNTI && _crnti <= ODU_END_CRNTI ) ? 1 : 0); \
+}
+
 typedef enum
 {
    UE_CFG_INACTIVE,
@@ -243,6 +253,12 @@ typedef struct PlmnIdentity
    uint8_t mnc[3];
 }Plmn;
 
+typedef struct snssai
+{
+   uint8_t   sst;
+   uint8_t   sd[SD_SIZE];
+}Snssai;
+
 typedef struct oduCellId
 {
    uint16_t cellId;