X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_cfg.h;h=1b902dd59d00caa81e9e72925354a30cd2a0bb2c;hb=d18d80cc82c8bae113c62a45b30345bfb4ca570f;hp=8046e6163a8ef323ae57b5593ce0a33f7060bedf;hpb=1848207fc6601561cbac8cbb5950d1c6e80f2bea;p=o-du%2Fl2.git diff --git a/src/du_app/du_cfg.h b/src/du_app/du_cfg.h index 8046e6163..1b902dd59 100644 --- a/src/du_app/du_cfg.h +++ b/src/du_app/du_cfg.h @@ -179,7 +179,7 @@ /* Macro define for PUCCH Configuration */ #define PUCCH_RSRC_COMMON 0 -#define PUCCH_GROUP_HOPPING 0 /* Neither sequence hopping nor group hopping */ +#define PUCCH_NEITHER_HOPPING 0 /* Neither sequence hopping nor group hopping */ #define PUCCH_P0_NOMINAL -74 /* MACRO defines for TDD DL-UL Configuration */ @@ -317,6 +317,13 @@ #define DRX_SLOT_OFFSET 0 #endif +/* In case of initial configuration we are supporting only 2 measurement + * information RRU.PrbTotDl and RRU.PrbTotUl. + * In case of configuration modification we are supporting 3 measurement + * information RRU.PrbTotDl, RRU.PrbTotUl and UECNTX.RelReq */ +#define NUM_OF_MEASUREMENT_INFO_SUPPORTED(_configType) \ + ((_configType == CONFIG_ADD) ? 2 :3) + typedef enum { GNBDU, @@ -680,17 +687,11 @@ typedef struct epIpAddrPort char port[2]; }EpIpAddrPort; -typedef struct f1TaiSliceSuppLst -{ - uint8_t numSupportedSlices; - Snssai **snssai; -}F1TaiSliceSuppLst; - typedef struct f1SrvdPlmn { Plmn plmn; Plmn extPlmn; /* Extended available PLMN list */ - F1TaiSliceSuppLst taiSliceSuppLst; + SupportedSliceList taiSliceSuppLst; }F1SrvdPlmn; typedef struct f1BrdcstPlmnInfo @@ -1246,13 +1247,34 @@ typedef struct sib1Params SrvCellCfgCommSib srvCellCfgCommSib; }Sib1Params; +typedef struct threadInfo +{ + SSTskId duAppSTskId; + uint8_t duAppCoreId; + SSTskId egtpSTskId; + uint8_t egtpCoreId; + SSTskId sctpSTskId; + uint8_t sctpCoreId; + SSTskId rlcUlSTskId; + uint8_t rlcUlCoreId; + SSTskId rlcMacSTskId; + uint8_t rlcMacCoreId; + SSTskId schSTskId; + uint8_t schCoreId; + SSTskId lwrMacSTskId; + uint8_t lwrMacCoreId; +}ThreadInfo; + typedef struct duCfgParams -{ - SctpParams sctpParams; /* SCTP Params */ - F1EgtpParams egtpParams; /* EGTP Params */ - uint32_t maxUe; +{ uint32_t duId; char *duName; + uint16_t maxNumDrb; + uint16_t maxSupportedUes; + uint32_t maxUe; + ThreadInfo threadInfo; + SctpParams sctpParams; /* SCTP Params */ + F1EgtpParams egtpParams; /* EGTP Params */ SchedulerCfg schedCfg; F1DuSrvdCellInfo srvdCellLst[MAX_NUM_CELL]; /* Serving cell list *///TODO: this must be removed eventually F1RrcVersion rrcVersion; /* RRC version */ @@ -1300,6 +1322,10 @@ DuCfgParams duCfgParam; uint8_t readClCfg(); uint8_t readCfg(); uint8_t duReadCfg(); +void printDuConfig(); + +uint8_t fillDuSrvdCellSysInfo(F1DuSysInfo *sysInfo); + uint16_t calcSliv(uint8_t startSymbol, uint8_t lengthSymbol); uint8_t cpyRrmPolicyInDuCfgParams(RrmPolicyList rrmPolicy[], uint8_t policyNum, MacSliceCfgReq *tempSliceCfg);