1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /* Defines APIs exchanged between du_app and cl module of MAC */
23 #define NUM_NUMEROLOGY 5 /* Number of numerology */
25 #define NUM_SSB 1 /* max value is 64 */
26 #define SSB_MASK_SIZE 1 /* SSB mask size is 32bit for sub6 */
27 #define SIB1_REPETITION_PERIOD 20
28 #define CORESET_0_INDEX 0
29 #define CORESET_1_INDEX 1
30 #define CORESET_2_INDEX 2
31 #define CORESET_3_INDEX 3
32 #define CORESET_4_INDEX 4
33 #define SEARCHSPACE_0_INDEX 0
34 #define SEARCHSPACE_1_INDEX 1
35 #define SEARCHSPACE_2_INDEX 2
36 #define SEARCHSPACE_3_INDEX 3
37 #define SEARCHSPACE_4_INDEX 4
38 #define SS_MONITORING_SLOT_SL1 0 /* all slots */
39 #define SS_MONITORING_SYMBOL 0x2000; /* symbol-0, set 14th bit */
41 /* Macro for Ue Context */
42 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
43 #define MAC_NUM_TAGS 4 /* Max number of timing advance groups */
44 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
45 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
46 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
47 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
48 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
49 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
50 #define MAX_NUM_SCELL 32
52 /* PUCCH Configuration Macro */
53 #define MAX_NUM_PUCCH_RESRC 128
54 #define MAX_NUM_PUCCH_RESRC_SET 4
55 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
56 #define MAX_NUM_SPATIAL_RELATIONS 8
57 #define MAX_NUM_PUCCH_P0_PER_SET 8
58 #define MAX_NUM_PATH_LOSS_REF_RS 4
59 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
62 #define EVENT_MAC_CELL_CONFIG_REQ 200
63 #define EVENT_MAC_CELL_CONFIG_CFM 201
64 #define EVENT_MAC_CELL_START 202
65 #define EVENT_MAC_CELL_STOP 203
66 #define EVENT_MAC_CELL_UP_IND 204
67 #define EVENT_MAC_STOP_IND 205
68 #define EVENT_MAC_UL_CCCH_IND 206
69 #define EVENT_MAC_DL_CCCH_IND 207
70 #define EVENT_MAC_UE_CREATE_REQ 208
71 #define EVENT_MAC_UE_CREATE_RSP 209
72 #define EVENT_MAC_UE_RECONFIG_REQ 210
73 #define EVENT_MAC_UE_RECONFIG_RSP 211
74 #define EVENT_MAC_UE_DELETE_REQ 212
75 #define EVENT_MAC_UE_DELETE_RSP 213
76 #define EVENT_MAC_CELL_DELETE_REQ 214
77 #define EVENT_MAC_CELL_DELETE_RSP 215
78 #define EVENT_MAC_SLICE_CFG_REQ 216
79 #define EVENT_MAC_SLICE_CFG_RSP 217
80 #define EVENT_MAC_SLICE_RECFG_REQ 218
81 #define EVENT_MAC_SLICE_RECFG_RSP 219
82 #define EVENT_MAC_SLOT_IND 220
83 #define EVENT_MAC_RACH_RESOURCE_REQ 221
84 #define EVENT_MAC_RACH_RESOURCE_RSP 222
85 #define EVENT_MAC_RACH_RESOURCE_REL 223
86 #define EVENT_MAC_DL_PCCH_IND 224
88 #define BSR_PERIODIC_TIMER_SF_10 10
89 #define BSR_RETX_TIMER_SF_320 320
90 #define BSR_SR_DELAY_TMR_2560 2560
92 #define PAGING_SCHED_DELTA 4
127 MAC_GEN_FULL_PBCH_PAYLD, /* MAC generated the full PBCH Payload */
128 PHY_GEN_TIMING_PBCH_BIT, /* PHY generates the timing PBCH bits */
129 PHY_GEN_FULL_PBCH_PAYLD /* PHY generates full PBCH payload */
141 RESTRICTED_SET_TYPE_A,
142 RESTRICTED_SET_TYPE_B
174 /* Enums for Ue Create Request */
176 /* SR PROHIBIT TIMER */
203 TIME_ALIGNMENT_TIMER_MS_500,
204 TIME_ALIGNMENT_TIMER_MS_750,
205 TIME_ALIGNMENT_TIMER_MS_1280,
206 TIME_ALIGNMENT_TIMER_MS_1920,
207 TIME_ALIGNMENT_TIMER_MS_2560,
208 TIME_ALIGNMENT_TIMER_MS_5120,
209 TIME_ALIGNMENT_TIMER_MS_10240,
210 TIME_ALIGNMENT_TIMER_INFINITY
215 PHR_PERIODIC_TIMER_SF_10,
216 PHR_PERIODIC_TIMER_SF_20,
217 PHR_PERIODIC_TIMER_SF_50,
218 PHR_PERIODIC_TIMER_SF_100,
219 PHR_PERIODIC_TIMER_SF_200,
220 PHR_PERIODIC_TIMER_SF_500,
221 PHR_PERIODIC_TIMER_SF_1000,
222 PHR_PERIODIC_TIMER_INFINITY
227 PHR_PROHIBIT_TIMER_SF_0,
228 PHR_PROHIBIT_TIMER_SF_10,
229 PHR_PROHIBIT_TIMER_SF_20,
230 PHR_PROHIBIT_TIMER_SF_50,
231 PHR_PROHIBIT_TIMER_SF_100,
232 PHR_PROHIBIT_TIMER_SF_200,
233 PHR_PROHIBIT_TIMER_SF_500,
234 PHR_PROHIBIT_TIMER_SF_1000
239 PHR_TX_PWR_FACTOR_CHANGE_DB_1,
240 PHR_TX_PWR_FACTOR_CHANGE_DB_3,
241 PHR_TX_PWR_FACTOR_CHANGE_DB_6,
242 PHR_TX_PWR_FACTOR_CHANGE_INFINITY
243 }PhrTxPwrFactorChange;
247 PHR_MODE_OTHER_CG_REAL,
248 PHR_MODE_OTHER_CG_VIRTUAL
253 PDSCH_HARQ_ACK_CODEBOOK_SEMISTATIC,
254 PDSCH_HARQ_ACK_CODEBOOK_DYNAMIC
255 }PdschHarqAckCodebook;
259 NUM_HARQ_PROC_FOR_PDSCH_N_2,
260 NUM_HARQ_PROC_FOR_PDSCH_N_4,
261 NUM_HARQ_PROC_FOR_PDSCH_N_6,
262 NUM_HARQ_PROC_FOR_PDSCH_N_10,
263 NUM_HARQ_PROC_FOR_PDSCH_N_16
264 }NumHarqProcForPdsch;
268 MAX_CODE_BLOCK_GROUP_PER_TB_N_2,
269 MAX_CODE_BLOCK_GROUP_PER_TB_N_4,
270 MAX_CODE_BLOCK_GROUP_PER_TB_N_6,
271 MAX_CODE_BLOCK_GROUP_PER_TB_N_8
283 TRANSFORM_PRECODER_ENABLED,
284 TRANSFORM_PRECODER_DISABLED
289 CCE_REG_MAPPINGTYPE_PR_INTERLEAVED = 1,
290 CCE_REG_MAPPINGTYPE_PR_NONINTERLEAVED
295 SLOTPERIODICITYANDOFFSET_PR_SL1 = 1,
296 SLOTPERIODICITYANDOFFSET_PR_SL2,
297 SLOTPERIODICITYANDOFFSET_PR_SL4,
298 SLOTPERIODICITYANDOFFSET_PR_SL5,
299 SLOTPERIODICITYANDOFFSET_PR_SL8,
300 SLOTPERIODICITYANDOFFSET_PR_SL10,
301 SLOTPERIODICITYANDOFFSET_PR_SL16,
302 SLOTPERIODICITYANDOFFSET_PR_SL20,
303 SLOTPERIODICITYANDOFFSET_PR_SL40,
304 SLOTPERIODICITYANDOFFSET_PR_SL80,
305 SLOTPERIODICITYANDOFFSET_PR_SL160,
306 SLOTPERIODICITYANDOFFSET_PR_SL320,
307 SLOTPERIODICITYANDOFFSET_PR_SL640,
308 SLOTPERIODICITYANDOFFSET_PR_SL1280,
309 SLOTPERIODICITYANDOFFSET_PR_SL2560
310 }MSlotPeriodAndOffset;
320 SEARCHSPACETYPE_PR_COMMON = 1,
321 SEARCHSPACETYPE_PR_UE_SPECIFIC
332 AGGREGATIONLEVEL_N0 = 0,
333 AGGREGATIONLEVEL_N1 = 1,
334 AGGREGATIONLEVEL_N2 = 2,
335 AGGREGATIONLEVEL_N3 = 3,
336 AGGREGATIONLEVEL_N4 = 4,
337 AGGREGATIONLEVEL_N5 = 5,
338 AGGREGATIONLEVEL_N6 = 6,
339 AGGREGATIONLEVEL_N8 = 7
344 ADDITIONALPOSITION_POS0,
345 ADDITIONALPOSITION_POS1,
346 ADDITIONALPOSITION_POS3
357 RESOURCEALLOCATION_TYPE0,
358 RESOURCEALLOCATION_TYPE1,
359 RESOURCEALLOCATION_DYNAMICSWITCH
370 CODEWORDS_SCHED_BY_DCI_N1,
371 CODEWORDS_SCHED_BY_DCI_N2
376 TYPE_STATIC_BUNDLING = 1,
377 TYPE_DYNAMIC_BUNDLING
390 SET1_SIZE_N2_WIDEBAND,
391 SET1_SIZE_N4_WIDEBAND
445 TRANSPORT_LAYER_FAIL,
452 UNSPECIFIED_RADIO_NW_CAUSE,
454 UNKNOWN_GNB_CU_UE_F1AP_ID,
455 ALREADY_ALLOCATED_GNB_CU_UE_F1AP_ID,
456 UNKNOWN_GNB_DU_UE_F1AP_ID,
457 ALREADY_ALLOCATED_GNB_DU_UE_F1AP_ID,
458 UNKNOWN_UE_F1AP_ID_PAIR,
459 INCONSISTENT_UE_F1AP_ID_PAIR,
460 INTERACTION_WITH_OTHER_PROCEDURE,
462 ACTION_REQUIRED_FOR_RADIO_REASONS,
463 RADIO_RESOURCES_UNAVAILABLE,
469 RESOURCES_UNAVAILABLE_FOR_SLICE
474 UNSPECIFIED_TRANSPORT_LAYER_CAUSE,
475 TRANSPORT_RESOURCE_UNAVAILABLE
480 TRANSFER_SYNTAX_ERROR,
481 ABSTRACT_SYNTAX_ERROR_REJECT,
482 ABSTRACT_SYNTAX_ERROR_IGNORE_AND_REJECT,
483 INCOMPATIBLE_MESSAGE_FOR_RECEIVER_STATE,
485 ABSTRAXCT_SYNTAX_ERROR_FALSELY_CONSTRUCTED_MSG,
486 UNSPECIFIED_PROTOCOL_CAUSE
491 CONTROL_PROCESSING_OVERLOAD,
493 PLANE_PROCESSING_RESOURCES,
495 INTERVENTION_BY_O_AND_M,
496 UNSPECIFIED_MISC_CAUSE
503 MCS_TABLE_QAM64_LOW_SE
510 RSRC_RRC_CONNECTED_USERS
515 TRANSMISSION_ALLOWED,
518 }DataTransmissionAction;
520 typedef struct failureCause
525 RadioNwLyrCause radioNwCause;
526 TransLyrCause transportCause;
527 ProtCause protcolCause;
528 MiscFailCause miscCause;
532 typedef struct carrierCfg
535 uint32_t bw; /* DL/UL bandwidth */
536 uint32_t freq; /* Absolute frequency of DL/UL point A in KHz */
537 uint16_t k0[NUM_NUMEROLOGY]; /* K0 for DL/UL */
538 uint16_t gridSize[NUM_NUMEROLOGY]; /* DL/UL Grid size for each numerologies */
539 uint16_t numAnt; /* Number of Tx/Rx antennas */
542 typedef struct ssbCfg
544 uint32_t ssbPbchPwr; /* SSB block power */
545 BchPduOpt bchPayloadFlag; /* Options for generation of payload */
546 uint8_t scsCmn; /* subcarrier spacing for common */
547 uint16_t ssbOffsetPointA; /* SSB subcarrier offset from point A */
549 SSBPeriod ssbPeriod; /* SSB Periodicity in msec */
550 uint8_t ssbScOffset; /* Subcarrier Offset */
551 uint8_t mibPdu[3]; /* MIB payload */
552 uint32_t ssbMask[SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
553 uint8_t beamId[NUM_SSB];
554 bool multCarrBand; /* Multiple carriers in a band */
555 bool multCellCarr; /* Multiple cells in single carrier */
558 typedef struct fdmInfo
560 uint16_t rootSeqIdx; /* Root sequence index */
561 uint8_t numRootSeq; /* Number of root sequences required for FD */
562 uint16_t k1; /* Frequency Offset for each FD */
563 uint8_t zeroCorrZoneCfg; /* Zero correlation zone cofig */
564 uint8_t numUnusedRootSeq; /* Number of unused root sequence */
565 uint8_t *unsuedRootSeq; /* Unused root sequence per FD */
568 typedef struct prachCfg
571 uint8_t prachCfgIdx; /* PRACH Cfg Index */
572 PrachSeqLen prachSeqLen; /* RACH Sequence length: Long/short */
573 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
574 RstSetCfg prachRstSetCfg; /* PRACH restricted set config */
575 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
576 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
577 uint8_t rootSeqLen; /* Root sequence length */
578 PrachFdmInfo fdm[8]; /* FDM info */
579 uint8_t totalNumRaPreamble; /* Total number of RA preambles */
580 uint8_t ssbPerRach; /* SSB per RACH occassion */
581 uint8_t numCbPreamblePerSsb; /* Number of CB preamble per SSB */
582 bool prachMultCarrBand; /* Multiple carriers in Band */
583 uint8_t prachRestrictedSet; /* Support for PRACH restricted set */
584 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
585 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
586 uint8_t raRspWindow; /* RA Response Window */
589 typedef struct schPageCfg
591 uint8_t numPO; /*Derived from Ns*/
592 bool poPresent; /*Whether FirstPDCCH-MonitoringPO is present or not*/
593 uint16_t pagingOcc[MAX_PO_PER_PF]; /*FirstPDCCH-Monitoring Paging Occasion*/
596 typedef struct sib1CellCfg
600 uint16_t sib1RepetitionPeriod;
601 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
602 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
604 SchPageCfg pagingCfg;
607 typedef struct bwpParams
612 uint8_t cyclicPrefix;
615 typedef struct candidatesInfo
624 typedef struct searchSpaceCfg
626 uint8_t searchSpaceId;
628 uint16_t monitoringSlot;
630 uint16_t monitoringSymbol;
631 CandidatesInfo candidate;
634 typedef struct pdcchConfigCommon
636 /* only one search space is configured during SIB1 */
637 SearchSpaceCfg commonSearchSpace;
638 uint8_t raSearchSpaceId;
641 typedef struct pdschCfgCommTimeDomRsrcAlloc
646 uint8_t lengthSymbol;
647 }PdschCfgCommTimeDomRsrcAlloc;
649 typedef struct pdschConfigCommon
651 uint8_t numTimeDomAlloc;
652 /* PDSCH time domain DL resource allocation list */
653 PdschCfgCommTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
656 typedef struct pucchConfigCommon
658 uint8_t pucchResourceCommon;
659 uint8_t pucchGroupHopping;
662 /* PUSCH Time Domain Resource Allocation */
663 typedef struct puschTimeDomRsrcAlloc
666 CommonMappingType mappingType;
668 uint8_t symbolLength;
669 uint8_t startSymbolAndLength;
670 }PuschTimeDomRsrcAlloc;
673 typedef struct puschConfigCommon
675 /* PUSCH-TimeDomainResourceAllocation info */
676 uint8_t numTimeDomRsrcAlloc;
677 PuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
680 typedef struct bwpDlConfig
683 PdcchConfigCommon pdcchCommon;
684 PdschConfigCommon pdschCommon;
687 typedef struct bwpUlConfig
690 // rach config common sent in PrachCfg
691 PucchConfigCommon pucchCommon;
692 PuschConfigCommon puschCommon;
695 typedef struct plmnInfoList
698 uint8_t numSupportedSlice; /* Total slice supporting */
699 Snssai **snssai; /* List of supporting snssai*/
703 /* The following list of structures is taken from the DRX-Config section of specification 33.331. */
704 typedef struct drxOnDurationTimer
706 bool onDurationTimerValInMs;
709 uint8_t subMilliSeconds;
710 uint16_t milliSeconds;
711 }onDurationtimerValue;
714 typedef struct drxLongCycleStartOffset
716 uint16_t drxLongCycleStartOffsetChoice;
717 uint16_t drxLongCycleStartOffsetVal;
718 }DrxLongCycleStartOffset;
720 typedef struct shortDrx
722 uint16_t drxShortCycle;
723 uint8_t drxShortCycleTimer;
726 typedef struct drxCfg
728 DrxOnDurationTimer drxOnDurationTimer;
729 uint16_t drxInactivityTimer;
730 uint8_t drxHarqRttTimerDl;
731 uint8_t drxHarqRttTimerUl;
732 uint16_t drxRetransmissionTimerDl;
733 uint16_t drxRetransmissionTimerUl;
734 DrxLongCycleStartOffset drxLongCycleStartOffset;
737 uint8_t drxSlotOffset;
741 typedef struct macCellCfg
743 uint16_t cellId; /* Cell Id */
744 uint8_t carrierId; /* Carrired Index */
745 uint16_t phyCellId; /* Physical cell id */
746 uint8_t numerology; /* Supported numerology */
747 DuplexMode dupType; /* Duplex type: TDD/FDD */
748 CarrierCfg dlCarrCfg; /* DL Carrier configuration */
749 CarrierCfg ulCarrCfg; /* UL Carrier configuration */
750 bool freqShft; /* Indicates presence of 7.5kHz frequency shift */
751 SsbCfg ssbCfg; /* SSB configuration */
752 PrachCfg prachCfg; /* PRACH Configuration */
754 TDDCfg tddCfg; /* TDD periodicity and slot configuration */
756 RSSIMeasUnit rssiUnit; /* RSSI measurement unit */
757 Sib1CellCfg sib1Cfg; /* SIB1 config */
758 BwpDlConfig initialDlBwp; /* Initial DL BWP */
759 BwpUlConfig initialUlBwp; /* Initial UL BWP */
760 uint8_t dmrsTypeAPos; /* DMRS Type A position */
761 PlmnInfoList plmnInfoList; /* Consits of PlmnId and Snssai list */
762 //RrmPolicy *rrmPolicy; /* RRM policy details */
765 typedef struct macCellCfgCfm
771 typedef struct ulCcchInd
775 uint16_t ulCcchMsgLen;
779 typedef struct dlCcchInd
783 DlCcchMsgType msgType;
784 uint16_t dlCcchMsgLen;
788 typedef struct bsrTmrCfg
790 uint16_t periodicTimer;
792 uint16_t srDelayTimer;
796 /* Info of Scheduling Request to Add/Modify */
797 typedef struct schedReqInfo
800 SrProhibitTimer srProhibitTmr;
801 SrTransMax srTransMax;
804 /* Scheduling Request Configuration */
805 typedef struct schedReqCfg
807 uint8_t addModListCount;
808 SchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
809 uint8_t relListCount;
810 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
813 typedef struct tagInfo
816 TimeAlignmentTimer timeAlignTimer;
819 typedef struct tagCfg
821 uint8_t addModListCount;
822 TagInfo addModList[MAC_NUM_TAGS]; /* List of Tag to Add/Modify */
823 uint8_t relListCount;
824 uint8_t relList[MAC_NUM_TAGS]; /* list of Tag Id to release */
827 typedef struct phrCfg
829 PhrPeriodicTimer periodicTimer;
830 PhrProhibitTimer prohibitTimer;
831 PhrTxPwrFactorChange txPowerFactor;
834 bool phrType2OtherCell;
835 PhrModeOtherCG phrOtherCG;
838 typedef struct macCellGrpCfg
840 SchedReqCfg schReqCfg;
843 bool phrCfgSetupPres; /* true/false: phrCfgSetup/phrCfgRelease */
851 typedef struct phyCellGrpCfg
853 PdschHarqAckCodebook pdschHarqAckCodebook;
857 /* Control resource set info */
858 typedef struct controlRsrcSet
860 uint8_t cRSetId; /* Control resource set id */
861 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
863 REGMappingType cceRegMappingType;
864 PrecoderGranul precoderGranularity;
865 uint16_t dmrsScramblingId;
868 /* Search Space info */
869 typedef struct searchSpace
871 uint8_t searchSpaceId;
873 MSlotPeriodAndOffset mSlotPeriodicityAndOffset;
874 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
875 AggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
876 AggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
877 AggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
878 AggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
879 AggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
880 SearchSpaceType searchSpaceType;
881 uint8_t ueSpecificDciFormat;
884 /* PDCCH cofniguration */
885 typedef struct pdcchConfig
887 uint8_t numCRsetToAddMod;
888 ControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
889 uint8_t numCRsetToRel;
890 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
891 uint8_t numSearchSpcToAddMod;
892 SearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
893 uint8_t numSearchSpcToRel;
894 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
897 /* PDSCH time domain resource allocation */
898 typedef struct pdschTimeDomRsrcAlloc
901 CommonMappingType mappingType;
903 uint8_t symbolLength;
904 uint8_t startSymbolAndLength;
905 }PdschTimeDomRsrcAlloc;
908 typedef struct pdschBundling
910 struct staticBundling
912 BundlingSizeSet2 size;
914 struct dynamicBundling
916 BundlingSizeSet1 sizeSet1;
917 BundlingSizeSet2 sizeSet2;
921 /* DMRS downlink configuration */
922 typedef struct dmrsDlCfg
924 AddPosType addPos; /* DMRS additional position */
927 /* PDSCH Configuration */
928 typedef struct pdschConfig
930 DmrsDlCfg dmrsDlCfgForPdschMapTypeA;
931 ResAllocType resourceAllocType;
932 uint8_t numTimeDomRsrcAlloc;
933 PdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
935 CodeWordsSchedDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
936 BundlingType bundlingType;
937 PdschBundling bundlingInfo;
940 /* Initial Downlink BWP */
941 typedef struct initialDlBwp
944 PdcchConfig pdcchCfg;
946 PdschConfig pdschCfg;
949 /* BWP Downlink common */
950 typedef struct bwpDlCommon
954 /* Downlink BWP information */
955 typedef struct dlBwpInfo
960 /* PDCCH Serving Cell configuration */
961 typedef struct pdschServCellCfg
963 uint8_t *maxMimoLayers;
964 NumHarqProcForPdsch numHarqProcForPdsch;
965 MaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
966 bool *codeBlkGrpFlushInd;
967 PdschXOverhead *xOverhead;
970 /* PUCCH Configuration */
972 typedef struct pucchResrcSetInfo
975 uint8_t resrcListCount;
976 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
977 uint8_t maxPayLoadSize;
980 typedef struct pucchResrcSetCfg
982 uint8_t resrcSetToAddModListCount;
983 PucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
984 uint8_t resrcSetToRelListCount;
985 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
988 typedef struct pucchFormat0
990 uint8_t initialCyclicShift;
992 uint8_t startSymbolIdx;
995 typedef struct pucchFormat1
997 uint8_t initialCyclicShift;
999 uint8_t startSymbolIdx;
1003 typedef struct pucchFormat2_3
1007 uint8_t startSymbolIdx;
1010 typedef struct pucchFormat4
1015 uint8_t startSymbolIdx;
1018 typedef struct pucchResrcInfo
1022 uint8_t intraFreqHop;
1023 uint16_t secondPrbHop;
1024 uint8_t pucchFormat;
1027 PucchFormat0 *format0;
1028 PucchFormat1 *format1;
1029 PucchFormat2_3 *format2;
1030 PucchFormat2_3 *format3;
1031 PucchFormat4 *format4;
1035 typedef struct pucchResrcCfg
1037 uint8_t resrcToAddModListCount;
1038 PucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1039 uint8_t resrcToRelListCount;
1040 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1043 typedef struct pucchFormatCfg
1045 bool interSlotFreqHop;
1047 uint8_t maxCodeRate;
1053 typedef struct schedReqResrcInfo
1057 uint8_t periodicity;
1062 typedef struct pucchSchedReqCfg
1064 uint8_t schedAddModListCount;
1065 SchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1066 uint8_t schedRelListCount;
1067 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1070 typedef struct spatialRelationInfo
1072 uint8_t spatialRelationId;
1073 uint8_t servCellIdx;
1074 uint8_t pathLossRefRSId;
1076 uint8_t closeLoopIdx;
1077 }SpatialRelationInfo;
1079 typedef struct pucchSpatialCfg
1081 uint8_t spatialAddModListCount;
1082 SpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1083 uint8_t spatialRelListCount;
1084 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1087 typedef struct p0PucchCfg
1093 typedef struct pathLossRefRSCfg
1095 uint8_t pathLossRefRSId;
1098 typedef struct pucchMultiCsiCfg
1100 uint8_t multiCsiResrcListCount;
1101 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1104 typedef struct pucchDlDataToUlAck
1106 uint8_t dlDataToUlAckListCount;
1107 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1108 }PucchDlDataToUlAck;
1110 typedef struct pucchPowerControl
1118 P0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1119 uint8_t pathLossRefRSListCount;
1120 PathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1123 typedef struct pucchCfg
1125 PucchResrcSetCfg *resrcSet;
1126 PucchResrcCfg *resrc;
1127 PucchFormatCfg *format1;
1128 PucchFormatCfg *format2;
1129 PucchFormatCfg *format3;
1130 PucchFormatCfg *format4;
1131 PucchSchedReqCfg *schedReq;
1132 PucchMultiCsiCfg *multiCsiCfg;
1133 PucchSpatialCfg *spatialInfo;
1134 PucchDlDataToUlAck *dlDataToUlAck;
1135 PucchPowerControl *powerControl;
1138 /* Transform precoding disabled */
1139 typedef struct transPrecodDisabled
1141 uint16_t scramblingId0;
1142 }TransPrecodDisabled;
1144 /* DMRS Uplink configuration */
1145 typedef struct dmrsUlCfg
1147 AddPosType addPos; /* DMRS additional position */
1148 TransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1151 /* PUSCH Configuration */
1152 typedef struct puschCfg
1154 uint8_t dataScramblingId;
1155 DmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1156 ResAllocType resourceAllocType;
1157 uint8_t numTimeDomRsrcAlloc;
1158 PuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1159 TransformPrecoder transformPrecoder;
1162 /* Initial Uplink BWP */
1163 typedef struct initialUlBwp
1171 /* Uplink BWP information */
1172 typedef struct ulBwpInfo
1177 /* Serving cell configuration */
1178 typedef struct servCellCfgInfo
1180 InitialDlBwp initDlBwp;
1181 uint8_t numDlBwpToAdd;
1182 DlBwpInfo dlBwpToAddList[MAX_NUM_BWP];
1183 uint8_t firstActvDlBwpId;
1184 uint8_t defaultDlBwpId;
1185 uint8_t *bwpInactivityTmr;
1186 PdschServCellCfg pdschServCellCfg;
1187 InitialUlBwp initUlBwp;
1188 uint8_t numUlBwpToAdd;
1189 UlBwpInfo ulBwpToAddList[MAX_NUM_BWP];
1190 uint8_t firstActvUlBwpId;
1193 /* Special cell configuration */
1194 typedef struct spCellCfg
1196 uint8_t servCellIdx;
1197 ServCellCfgInfo servCellCfg;
1200 /* Serving cell Re-configuration */
1201 typedef struct servCellRecfgInfo
1203 InitialDlBwp initDlBwp;
1204 uint8_t numDlBwpToAddOrMod;
1205 DlBwpInfo dlBwpToAddOrModList[MAX_NUM_BWP];
1206 uint8_t numDlBwpToRel;
1207 DlBwpInfo dlBwpToRelList[MAX_NUM_BWP];
1208 uint8_t firstActvDlBwpId;
1209 uint8_t defaultDlBwpId;
1210 uint8_t *bwpInactivityTmr;
1211 PdschServCellCfg pdschServCellCfg;
1212 InitialUlBwp initUlBwp;
1213 uint8_t numUlBwpToAddOrMod;
1214 UlBwpInfo ulBwpToAddOrModList[MAX_NUM_BWP];
1215 uint8_t numUlBwpToRel;
1216 UlBwpInfo ulBwpToRelList[MAX_NUM_BWP];
1217 uint8_t firstActvUlBwpId;
1220 /* Special cell Re-configuration */
1221 typedef struct spCellRecfg
1223 uint8_t servCellIdx;
1224 ServCellRecfgInfo servCellCfg;
1227 typedef struct ambrCfg
1229 uint32_t ulBr; /* UL Bit rate */
1232 typedef struct nonDynFiveQi
1237 uint16_t maxDataBurstVol;
1240 typedef struct dynFiveQi
1243 uint16_t packetDelayBudget;
1244 uint8_t packetErrRateScalar;
1245 uint8_t packetErrRateExp;
1247 uint8_t delayCritical;
1249 uint16_t maxDataBurstVol;
1252 typedef struct ngRanAllocAndRetPri
1254 uint8_t priorityLevel;
1255 uint8_t preEmptionCap;
1256 uint8_t preEmptionVul;
1257 }NgRanAllocAndRetPri;
1259 typedef struct grbQosInfo
1261 uint32_t maxFlowBitRateDl;
1262 uint32_t maxFlowBitRateUl;
1263 uint32_t guarFlowBitRateDl;
1264 uint32_t guarFlowBitRateUl;
1267 typedef struct drbQos
1269 QosType fiveQiType; /* Dynamic or non-dynamic */
1272 NonDynFiveQi nonDyn5Qi;
1275 NgRanAllocAndRetPri ngRanRetPri;
1276 GrbQosInfo grbQosInfo;
1277 uint16_t pduSessionId;
1278 uint32_t ulPduSessAggMaxBitRate;
1281 typedef struct ulLcCfg
1286 PBitRate pbr; // prioritisedBitRate
1287 BucketSizeDur bsd; // bucketSizeDuration
1290 typedef struct dlLcCfg
1292 LcPriority lcp; // logical Channel Prioritization
1295 typedef struct lcCfg
1305 typedef struct modulationInfo
1307 uint8_t modOrder; /* Modulation order */
1308 uint8_t mcsIndex; /* MCS Index */
1309 McsTable mcsTable; /* MCS table */
1312 typedef struct macUeCfg
1317 bool macCellGrpCfgPres;
1318 MacCellGrpCfg macCellGrpCfg;
1319 bool phyCellGrpCfgPres;
1320 PhyCellGrpCfg phyCellGrpCfg;
1322 SpCellCfg spCellCfg;
1324 ModulationInfo dlModInfo; /* DL modulation info */
1325 ModulationInfo ulModInfo; /* UL modulation info */
1327 LcCfg lcCfgList[MAX_NUM_LC];
1330 /* UE Re-configuration */
1331 typedef struct macUeRecfg
1337 bool macCellGrpRecfgPres;
1338 MacCellGrpCfg macCellGrpRecfg;
1339 bool phyCellGrpRecfgPres;
1340 PhyCellGrpCfg phyCellGrpRecfg;
1341 bool spCellRecfgPres;
1342 SpCellRecfg spCellRecfg;
1344 ModulationInfo dlModInfo;
1345 ModulationInfo ulModInfo;
1346 uint8_t numLcsToAdd;
1347 LcCfg lcCfgAdd[MAX_NUM_LC];
1348 uint8_t numLcsToDel;
1349 uint8_t lcIdToDel[MAX_NUM_LC];
1350 uint8_t numLcsToMod;
1351 LcCfg lcCfgMod[MAX_NUM_LC];
1352 DataTransmissionAction transmissionAction;
1354 bool drxConfigIndicatorRelease;
1358 typedef struct nrcgi
1364 typedef struct srbFailInfo
1370 typedef struct drbFailInfo
1376 typedef struct sCellFailInfo
1382 typedef struct ueCfgRsp
1387 uint8_t numSRBFailed; /* valid values : 0 to MAX_NUM_SRB */
1388 SRBFailInfo *failedSRBlisti;
1389 uint8_t numDRBFailed; /* valid values : 0 to MAX_NUM_DRB */
1390 DRBFailInfo *failedDRBlist;
1391 uint8_t numSCellFailed; /* valid values : 0 to MAX_NUM_SCELL */
1392 SCellFailInfo *failedSCellList;
1393 uint8_t numDRBModFailed; /* valid values : 0 to MAX_NUM_DRB */
1394 DRBFailInfo *failedDRBModlist;
1397 typedef struct ueCfgRsp MacUeRecfgRsp;
1399 typedef struct rachRsrcReq
1404 uint8_t ssbIdx[MAX_NUM_SSB];
1407 typedef struct macCfraSsbResource
1410 uint8_t raPreambleIdx;
1411 }MacCfraSsbResource;
1413 typedef struct macCfraResource
1416 MacCfraSsbResource ssbResource[MAX_NUM_SSB];
1419 typedef struct macRachRsrcRsp
1424 uint16_t newCrnti; /* This parameter maps to 3GPP TS 38.331 newUE-Identity */
1425 MacCfraResource cfraResource;
1428 typedef struct macRachRsrcRel
1435 typedef struct ueDelete
1442 typedef struct ueDeleteRsp
1446 UeDeleteStatus result;
1449 typedef struct macCellDeleteReq
1454 typedef struct macCellDeleteRsp
1457 CellDeleteStatus result;
1460 typedef struct macSliceRsp
1467 typedef struct rrmPolicyRatio
1469 uint8_t policyMaxRatio;
1470 uint8_t policyMinRatio;
1471 uint8_t policyDedicatedRatio;
1474 typedef struct macSliceRrmPolicy
1477 RrmPolicyRatio *rrmPolicyRatio;
1480 typedef struct macSliceCfgReq
1482 uint8_t numOfConfiguredSlice;
1483 MacSliceRrmPolicy **listOfSliceCfg;
1486 typedef struct macSliceCfgRsp
1488 uint8_t numSliceCfgRsp;
1489 MacSliceRsp **listOfSliceCfgRsp;
1492 /*As per ORAN-WG8, Slice Cfg and ReCfg are same structures*/
1493 typedef struct macSliceCfgReq MacSliceRecfgReq;
1494 typedef struct macSliceCfgRsp MacSliceRecfgRsp;
1496 typedef struct dlPcchInd
1505 typedef struct cellInfo
1507 SlotTimingInfo slotInfo;
1511 typedef struct cellInfo CellStartInfo;
1512 typedef struct cellInfo CellStopInfo;
1514 /* Functions for CellUp Ind from MAC to DU APP*/
1515 typedef uint8_t (*DuMacCellUpInd) ARGS((
1517 OduCellId *cellId ));
1519 /* Functions for slot Ind from MAC to DU APP*/
1520 typedef uint8_t (*DuMacSlotInd) ARGS((
1522 SlotTimingInfo *slotIndInfo));
1524 /* Functions for stop Ind from MAC to DU APP*/
1525 typedef uint8_t (*DuMacStopInd) ARGS((
1527 OduCellId *cellId ));
1529 /* Functions for mac cell start req */
1530 typedef uint8_t (*DuMacCellStart) ARGS((
1532 CellStartInfo *cellId));
1534 /* Functions for mac cell stop request */
1535 typedef uint8_t (*DuMacCellStop) ARGS((
1537 CellStopInfo *cellId ));
1539 /* Function pointers for packing macCellCfg Request and Confirm */
1540 typedef uint8_t (*packMacCellCfgReq) ARGS((
1542 MacCellCfg *macCellCfg ));
1544 typedef uint8_t (*packMacCellCfgConfirm) ARGS((
1546 MacCellCfgCfm *macCellCfgCfm ));
1548 typedef uint8_t (*DuMacCellCfgReq) ARGS((
1550 MacCellCfg *macCellCfg));
1552 typedef uint8_t (*DuMacCellCfgCfm) ARGS((
1554 MacCellCfgCfm *macCellCfgCfm ));
1556 /* Functions for UL CCCH Ind from MAC to DU APP*/
1557 typedef uint8_t (*DuMacUlCcchInd) ARGS((
1559 UlCcchIndInfo *ulCcchIndInfo ));
1561 /* Functions for DL CCCH Ind from DU APP to MAC*/
1562 typedef uint8_t (*DuMacDlCcchInd) ARGS((
1564 DlCcchIndInfo *dlCcchIndInfo ));
1566 /* UE create Request from DU APP to MAC*/
1567 typedef uint8_t (*DuMacUeCreateReq) ARGS((
1571 /* UE create Response from MAC to DU APP */
1572 typedef uint8_t (*MacDuUeCfgRspFunc) ARGS((
1574 MacUeCfgRsp *cfgRsp));
1576 /* UE Reconfig Request from DU APP to MAC */
1577 typedef uint8_t (*DuMacUeReconfigReq) ARGS((
1579 MacUeRecfg *ueCfg ));
1581 /* UE Reconfig Response from MAC to DU APP */
1582 typedef uint8_t (*MacDuUeRecfgRspFunc) ARGS((
1584 MacUeRecfgRsp *cfgRsp));
1586 /* RACH Resource Request from DU APP to MAC */
1587 typedef uint8_t (*DuMacRachRsrcReq) ARGS((
1589 MacRachRsrcReq *rachRsrcReq));
1591 /* RACH Resource Response from MAC to DU APP */
1592 typedef uint8_t (*MacDuRachRsrcRspFunc) ARGS((
1594 MacRachRsrcRsp *rachRsrcRsp));
1596 /* RACH Resource Release from DU APP to MAC */
1597 typedef uint8_t (*DuMacRachRsrcRel) ARGS((
1599 MacRachRsrcRel *rachRsrcRel));
1601 /* UE Delete Request from DU APP to MAC*/
1602 typedef uint8_t (*DuMacUeDeleteReq) ARGS((
1604 MacUeDelete *ueDel ));
1606 /* UE Delete Response from MAC to DU APP*/
1607 typedef uint8_t (*MacDuUeDeleteRspFunc) ARGS((
1609 MacUeDeleteRsp *deleteRsp));
1611 /* Cell Delete Request from DU APP to MAC*/
1612 typedef uint8_t (*DuMacCellDeleteReq) ARGS((
1614 MacCellDeleteReq *cellDelete ));
1616 /* Cell Delete Response from MAC to DU APP*/
1617 typedef uint8_t (*MacDuCellDeleteRspFunc) ARGS((
1619 MacCellDeleteRsp *cellDeleteRsp));
1621 /* Slice Cfg Request from DU APP to MAC*/
1622 typedef uint8_t (*DuMacSliceCfgReq) ARGS((
1624 MacSliceCfgReq *CfgReq));
1626 /* Slice Cfg Response from MAC to DU APP */
1627 typedef uint8_t (*MacDuSliceCfgRspFunc) ARGS((
1629 MacSliceCfgRsp *cfgRsp));
1631 /* Slice ReReCfg Request from DU APP to MAC*/
1632 typedef uint8_t (*DuMacSliceRecfgReq) ARGS((
1634 MacSliceRecfgReq *CfgReq));
1636 /* Slice ReReCfg Response from MAC to DU APP */
1637 typedef uint8_t (*MacDuSliceRecfgRspFunc) ARGS((
1639 MacSliceRecfgRsp *cfgRsp));
1641 /* Pcch indication from DU APP to MAC*/
1642 typedef uint8_t (*DuMacDlPcchInd) ARGS((
1644 DlPcchInd *pcchInd));
1646 uint64_t ueBitMapPerCell[MAX_NUM_CELL]; /* Bit Map to store used/free UE-IDX per Cell */
1648 uint8_t packMacCellUpInd(Pst *pst, OduCellId *cellId);
1649 uint8_t unpackMacCellUpInd(DuMacCellUpInd func, Pst *pst, Buffer *mBuf);
1650 uint8_t duHandleCellUpInd(Pst *pst, OduCellId *cellId);
1651 uint8_t packMacCellStart(Pst *pst, CellStartInfo *cellStartInfo);
1652 uint8_t unpackMacCellStart(DuMacCellStart func, Pst *pst, Buffer *mBuf);
1653 uint8_t MacProcCellStart(Pst *pst, CellStartInfo *cellStartInfo);
1654 uint8_t packMacCellStop(Pst *pst, CellStopInfo *cellStopInfo);
1655 uint8_t unpackMacCellStop(DuMacCellStop func, Pst *pst, Buffer *mBuf);
1656 uint8_t MacProcCellStop(Pst *pst, CellStopInfo *cellStopInfo);
1657 uint8_t packMacCellCfg(Pst *pst, MacCellCfg *macCellCfg);
1658 uint8_t unpackDuMacCellCfg(DuMacCellCfgReq func, Pst *pst, Buffer *mBuf);
1659 uint8_t MacProcCellCfgReq(Pst *pst, MacCellCfg *macCellCfg);
1660 uint8_t packMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm);
1661 uint8_t unpackMacCellCfgCfm(DuMacCellCfgCfm func, Pst *pst, Buffer *mBuf);
1662 uint8_t duHandleMacCellCfgCfm(Pst *pst, MacCellCfgCfm *macCellCfgCfm);
1663 uint8_t packMacStopInd(Pst *pst, OduCellId *cellId);
1664 uint8_t unpackMacStopInd(DuMacStopInd func, Pst *pst, Buffer *mBuf);
1665 uint8_t duHandleStopInd(Pst *pst, OduCellId *cellId);
1666 uint8_t packMacUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo);
1667 uint8_t unpackMacUlCcchInd(DuMacUlCcchInd func, Pst *pst, Buffer *mBuf);
1668 uint8_t duHandleUlCcchInd(Pst *pst, UlCcchIndInfo *ulCcchIndInfo);
1669 uint8_t packMacDlCcchInd(Pst *pst, DlCcchIndInfo *dlCcchIndInfo);
1670 uint8_t unpackMacDlCcchInd(DuMacDlCcchInd func, Pst *pst, Buffer *mBuf);
1671 uint8_t MacProcDlCcchInd(Pst *pst, DlCcchIndInfo *dlCcchIndInfo);
1672 uint8_t packDuMacUeCreateReq(Pst *pst, MacUeCfg *ueCfg);
1673 uint8_t unpackMacUeCreateReq(DuMacUeCreateReq func, Pst *pst, Buffer *mBuf);
1674 uint8_t MacProcUeCreateReq(Pst *pst, MacUeCfg *ueCfg);
1675 uint8_t sendStopIndMacToDuApp(uint16_t cellId);
1676 uint8_t packDuMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp);
1677 uint8_t unpackDuMacUeCfgRsp(MacDuUeCfgRspFunc func, Pst *pst, Buffer *mBuf);
1678 uint8_t DuProcMacUeCfgRsp(Pst *pst, MacUeCfgRsp *cfgRsp);
1679 uint8_t packDuMacUeReconfigReq(Pst *pst, MacUeRecfg *ueRecfg);
1680 uint8_t unpackMacUeReconfigReq(DuMacUeReconfigReq func, Pst *pst, Buffer *mBuf);
1681 uint8_t MacProcUeReconfigReq(Pst *pst, MacUeRecfg *ueRecfg);
1682 uint8_t packDuMacUeRecfgRsp(Pst *pst, MacUeRecfgRsp *recfgRsp);
1683 uint8_t unpackDuMacUeRecfgRsp(MacDuUeRecfgRspFunc func, Pst *pst, Buffer *mBuf);
1684 uint8_t DuProcMacUeRecfgRsp(Pst *pst, MacUeRecfgRsp *recfgRsp);
1685 uint8_t packDuMacRachRsrcReq(Pst *pst, MacRachRsrcReq *rachRsrcReq);
1686 uint8_t unpackMacRachRsrcReq(DuMacRachRsrcReq func, Pst *pst, Buffer *mBuf);
1687 uint8_t MacProcRachRsrcReq(Pst *pst, MacRachRsrcReq *rachRsrcReq);
1688 uint8_t packDuMacRachRsrcRsp(Pst *pst, MacRachRsrcRsp *rachRsrcRsp);
1689 uint8_t unpackDuMacRachRsrcRsp(MacDuRachRsrcRspFunc func, Pst *pst, Buffer *mBuf);
1690 uint8_t DuProcMacRachRsrcRsp(Pst *pst, MacRachRsrcRsp *rachRsrcRsp);
1691 uint8_t packDuMacRachRsrcRel(Pst *pst, MacRachRsrcRel *rachRsrcRel);
1692 uint8_t unpackMacRachRsrcRel(DuMacRachRsrcRel func, Pst *pst, Buffer *mBuf);
1693 uint8_t MacProcRachRsrcRel(Pst *pst, MacRachRsrcRel *rachRsrcRel);
1694 uint8_t packDuMacUeDeleteReq(Pst *pst, MacUeDelete *ueDelete);
1695 uint8_t MacProcUeDeleteReq(Pst *pst, MacUeDelete *ueDelete);
1696 uint8_t unpackMacUeDeleteReq(DuMacUeDeleteReq func, Pst *pst, Buffer *mBuf);
1697 uint8_t packDuMacUeDeleteRsp(Pst *pst, MacUeDeleteRsp *deleteRsp);
1698 uint8_t DuProcMacUeDeleteRsp(Pst *pst, MacUeDeleteRsp *deleteRsp);
1699 uint8_t unpackDuMacUeDeleteRsp(MacDuUeDeleteRspFunc func, Pst *pst, Buffer *mBuf);
1700 uint8_t packDuMacCellDeleteReq(Pst *pst, MacCellDeleteReq *cellDelete);
1701 uint8_t MacProcCellDeleteReq(Pst *pst, MacCellDeleteReq *cellDelete);
1702 uint8_t unpackMacCellDeleteReq(DuMacCellDeleteReq func, Pst *pst, Buffer *mBuf);
1703 uint8_t packDuMacCellDeleteRsp(Pst *pst, MacCellDeleteRsp *cellDeleteRsp);
1704 uint8_t DuProcMacCellDeleteRsp(Pst *pst, MacCellDeleteRsp *cellDeleteRsp);
1705 uint8_t unpackDuMacCellDeleteRsp(MacDuCellDeleteRspFunc func, Pst *pst, Buffer *mBuf);
1706 uint8_t packDuMacSliceCfgReq(Pst *pst, MacSliceCfgReq *sliceCfgReq);
1707 uint8_t MacProcSliceCfgReq(Pst *pst, MacSliceCfgReq *sliceCfgReq);
1708 uint8_t unpackMacSliceCfgReq(DuMacSliceCfgReq func, Pst *pst, Buffer *mBuf);
1709 uint8_t DuProcMacSliceCfgRsp(Pst *pst, MacSliceCfgRsp *cfgRsp);
1710 uint8_t packDuMacSliceCfgRsp(Pst *pst, MacSliceCfgRsp *cfgRsp);
1711 uint8_t unpackDuMacSliceCfgRsp(MacDuSliceCfgRspFunc func, Pst *pst, Buffer *mBuf);
1712 uint8_t packDuMacSliceRecfgReq(Pst *pst, MacSliceRecfgReq *sliceRecfgReq);
1713 uint8_t MacProcSliceRecfgReq(Pst *pst, MacSliceRecfgReq *sliceRecfgReq);
1714 uint8_t unpackMacSliceRecfgReq(DuMacSliceRecfgReq func, Pst *pst, Buffer *mBuf);
1715 uint8_t DuProcMacSliceRecfgRsp(Pst *pst, MacSliceRecfgRsp *sliceRecfgRsp);
1716 uint8_t packDuMacSliceRecfgRsp(Pst *pst, MacSliceRecfgRsp *sliceRecfgRsp);
1717 uint8_t unpackDuMacSliceRecfgRsp(MacDuSliceRecfgRspFunc func, Pst *pst, Buffer *mBuf);
1718 uint8_t duHandleSlotInd(Pst *pst, SlotTimingInfo *slotIndInfo);
1719 uint8_t packMacSlotInd(Pst *pst, SlotTimingInfo *slotIndInfo);
1720 uint8_t unpackDuMacSlotInd(DuMacSlotInd func, Pst *pst, Buffer *mBuf);
1721 uint8_t packDuMacDlPcchInd(Pst *pst, DlPcchInd *pcchInd);
1722 uint8_t MacProcDlPcchInd(Pst *pst, DlPcchInd *pcchInd);
1723 uint8_t unpackMacDlPcchInd(DuMacDlPcchInd func, Pst *pst, Buffer *mBuf);
1724 int8_t getFreeBitFromUeBitMap(uint16_t cellId);
1725 void unsetBitInUeBitMap(uint16_t cellId, uint8_t bitPos);
1729 /**********************************************************************
1731 **********************************************************************/