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 *******************************************************************************/
20 #define EVENT_SCH_GEN_CFG 1
21 #define EVENT_SCH_CELL_CFG 2
22 #define EVENT_SCH_CELL_CFG_CFM 3
23 #define EVENT_DL_SCH_INFO 4
24 #define EVENT_UL_SCH_INFO 5
25 #define EVENT_RACH_IND_TO_SCH 6
26 #define EVENT_CRC_IND_TO_SCH 7
27 #define EVENT_DL_RLC_BO_INFO_TO_SCH 8
28 #define EVENT_ADD_UE_CONFIG_REQ_TO_SCH 9
29 #define EVENT_UE_CONFIG_RSP_TO_MAC 10
30 #define EVENT_SLOT_IND_TO_SCH 11
31 #define EVENT_SHORT_BSR 12
32 #define EVENT_UCI_IND_TO_SCH 13
33 #define EVENT_MODIFY_UE_CONFIG_REQ_TO_SCH 14
34 #define EVENT_UE_RECONFIG_RSP_TO_MAC 15
35 #define EVENT_UE_DELETE_REQ_TO_SCH 16
36 #define EVENT_UE_DELETE_RSP_TO_MAC 17
37 #define EVENT_CELL_DELETE_REQ_TO_SCH 18
38 #define EVENT_CELL_DELETE_RSP_TO_MAC 19
39 #define EVENT_LONG_BSR 20
40 #define EVENT_SLICE_CFG_REQ_TO_SCH 21
41 #define EVENT_SLICE_CFG_RSP_TO_MAC 22
42 #define EVENT_SLICE_RECFG_REQ_TO_SCH 23
43 #define EVENT_SLICE_RECFG_RSP_TO_MAC 24
44 #define EVENT_RACH_RESOURCE_REQUEST_TO_SCH 25
45 #define EVENT_RACH_RESOURCE_RESPONSE_TO_MAC 26
46 #define EVENT_RACH_RESOURCE_RELEASE_TO_SCH 27
47 #define EVENT_PAGING_IND_TO_SCH 28
48 #define EVENT_DL_PAGING_ALLOC 29
49 #define EVENT_DL_REL_HQ_PROC 30
50 #define EVENT_DL_HARQ_IND_TO_SCH 31
52 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
53 #define SCH_SSB_MASK_SIZE 1
55 #define MAX_NUM_PRG 1 /* max value should be later 275 */
56 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
57 #define MAX_CODEWORDS 1 /* max should be 2 */
58 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
59 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
61 /* Datatype in UL SCH Info */
62 #define SCH_DATATYPE_PUSCH 1
63 #define SCH_DATATYPE_PUSCH_UCI 2
64 #define SCH_DATATYPE_UCI 4
65 #define SCH_DATATYPE_SRS 8
66 #define SCH_DATATYPE_PRACH 16
68 #define MAX_NUMBER_OF_CRC_IND_BITS 1
69 #define MAX_NUMBER_OF_UCI_IND_BITS 1
70 #define MAX_SR_BITS_IN_BYTES 1
71 #define MAX_HARQ_BITS_IN_BYTES 1
72 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
73 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
74 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
75 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
76 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
77 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
78 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
79 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
80 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
81 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
83 /* PUCCH Configuration Macro */
84 #define MAX_NUM_PUCCH_RESRC 128
85 #define MAX_NUM_PUCCH_RESRC_SET 4
86 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
87 #define MAX_NUM_SPATIAL_RELATIONS 8
88 #define MAX_NUM_PUCCH_P0_PER_SET 8
89 #define MAX_NUM_PATH_LOSS_REF_RS 4
90 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
91 #define QPSK_MODULATION 2
93 #define RAR_PAYLOAD_SIZE 10 /* As per spec 38.321, sections 6.1.5 and 6.2.3, RAR PDU is 8 bytes long and 2 bytes of padding */
94 #define TX_PAYLOAD_HDR_LEN 32 /* Intel L1 requires adding a 32 byte header to transmitted payload */
95 #define UL_TX_BUFFER_SIZE 5
97 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
98 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
99 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
100 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
101 #define MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
102 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
103 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
104 #define DEFAULT_K2_VALUE_FOR_SCS15 1
105 #define DEFAULT_K2_VALUE_FOR_SCS30 1
106 #define DEFAULT_K2_VALUE_FOR_SCS60 2
107 #define DEFAULT_K2_VALUE_FOR_SCS120 3
109 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr, numOfSlot) \
111 if ((crntTime.slot + incr) > (numOfSlot - 1)) \
113 toFill.sfn = (crntTime.sfn + 1); \
117 toFill.sfn = crntTime.sfn; \
119 toFill.slot = (crntTime.slot + incr) % numOfSlot; \
120 if (toFill.sfn >= MAX_SFN) \
122 toFill.sfn%=MAX_SFN; \
130 RRC_CONNECTED_USERS_RSRC
150 RESOURCE_UNAVAILABLE,
187 TIME_ALIGNMENT_TIMER_MS500,
188 TIME_ALIGNMENT_TIMER_MS750,
189 TIME_ALIGNMENT_TIMER_MS1280,
190 TIME_ALIGNMENT_TIMER_MS1920,
191 TIME_ALIGNMENT_TIMER_MS2560,
192 TIME_ALIGNMENT_TIMER_MS5120,
193 TIME_ALIGNMENT_TIMER_MS10240,
194 TIME_ALIGNMENT_TIMER_INFINITE
195 }SchTimeAlignmentTimer;
199 PHR_PERIODIC_TIMER_SF10,
200 PHR_PERIODIC_TIMER_SF20,
201 PHR_PERIODIC_TIMER_SF50,
202 PHR_PERIODIC_TIMER_SF100,
203 PHR_PERIODIC_TIMER_SF200,
204 PHR_PERIODIC_TIMER_SF500,
205 PHR_PERIODIC_TIMER_SF1000,
206 PHR_PERIODIC_TIMER_INFINITE
207 }SchPhrPeriodicTimer;
211 PHR_PROHIBIT_TIMER_SF0,
212 PHR_PROHIBIT_TIMER_SF10,
213 PHR_PROHIBIT_TIMER_SF20,
214 PHR_PROHIBIT_TIMER_SF50,
215 PHR_PROHIBIT_TIMER_SF100,
216 PHR_PROHIBIT_TIMER_SF200,
217 PHR_PROHIBIT_TIMER_SF500,
218 PHR_PROHIBIT_TIMER_SF1000
219 }SchPhrProhibitTimer;
223 PHR_TX_PWR_FACTOR_CHANGE_DB1,
224 PHR_TX_PWR_FACTOR_CHANGE_DB3,
225 PHR_TX_PWR_FACTOR_CHANGE_DB6,
226 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
227 }SchPhrTxPwrFactorChange;
237 HARQ_ACK_CODEBOOK_SEMISTATIC,
238 HARQ_ACK_CODEBOOK_DYNAMIC
239 }SchPdschHarqAckCodebook;
243 NUM_HARQ_PROC_FOR_PDSCH_N2,
244 NUM_HARQ_PROC_FOR_PDSCH_N4,
245 NUM_HARQ_PROC_FOR_PDSCH_N6,
246 NUM_HARQ_PROC_FOR_PDSCH_N10,
247 NUM_HARQ_PROC_FOR_PDSCH_N16
248 }SchNumHarqProcForPdsch;
252 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
253 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
254 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
255 MAX_CODE_BLOCK_GROUP_PER_TB_N8
256 }SchMaxCodeBlkGrpPerTB;
260 PDSCH_X_OVERHEAD_XOH_6,
261 PDSCH_X_OVERHEAD_XOH_12,
262 PDSCH_X_OVERHEAD_XOH_18
267 DMRS_ADDITIONAL_POS0,
268 DMRS_ADDITIONAL_POS1,
270 }SchDmrsAdditionPosition;
274 RESOURCE_ALLOCTION_TYPE_0,
275 RESOURCE_ALLOCTION_TYPE_1,
276 RESOURCE_ALLOCTION_DYN_SWITCH
277 }SchResourceAllocType;
281 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
282 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
283 }SchTimeDomRsrcAllocMappingType;
287 ENABLED_TRANSFORM_PRECODER,
288 DISABLED_TRANSFORM_PRECODER
289 }SchTransformPrecoder;
293 INTERLEAVED_CCE_REG_MAPPING = 1,
294 NONINTERLEAVED_CCE_REG_MAPPING
299 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
300 SLOT_PERIODICITY_AND_OFFSET_SL_2,
301 SLOT_PERIODICITY_AND_OFFSET_SL_4,
302 SLOT_PERIODICITY_AND_OFFSET_SL_5,
303 SLOT_PERIODICITY_AND_OFFSET_SL_8,
304 SLOT_PERIODICITY_AND_OFFSET_SL_10,
305 SLOT_PERIODICITY_AND_OFFSET_SL_16,
306 SLOT_PERIODICITY_AND_OFFSET_SL_20,
307 SLOT_PERIODICITY_AND_OFFSET_SL_40,
308 SLOT_PERIODICITY_AND_OFFSET_SL_80,
309 SLOT_PERIODICITY_AND_OFFSET_SL_160,
310 SLOT_PERIODICITY_AND_OFFSET_SL_320,
311 SLOT_PERIODICITY_AND_OFFSET_SL_640,
312 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
313 SLOT_PERIODICITY_AND_OFFSET_SL_2560
314 }SchMSlotPeriodAndOffset;
324 SEARCH_SPACE_TYPE_COMMON = 1,
325 SEARCH_SPACE_TYPE_UE_SPECIFIC
330 SCH_QOS_NON_DYNAMIC = 1,
336 AGGREGATION_LEVEL_N0,
337 AGGREGATION_LEVEL_N1,
338 AGGREGATION_LEVEL_N2,
339 AGGREGATION_LEVEL_N3,
340 AGGREGATION_LEVEL_N4,
341 AGGREGATION_LEVEL_N5,
342 AGGREGATION_LEVEL_N6,
354 CODE_WORDS_SCHED_BY_DCI_N1,
355 CODE_WORDS_SCHED_BY_DCI_N2
356 }SchCodeWordsSchedByDci;
360 STATIC_BUNDLING_TYPE = 1,
361 DYNAMIC_BUNDLING_TYPE
367 SCH_SET1_SIZE_WIDEBAND,
368 SCH_SET1_SIZE_N2_WIDEBAND,
369 SCH_SET1_SIZE_N4_WIDEBAND
370 }SchBundlingSizeSet1;
375 SCH_SET2_SIZE_WIDEBAND
376 }SchBundlingSizeSet2;
418 SCH_MCS_TABLE_QAM_64,
419 SCH_MCS_TABLE_QAM_256,
420 SCH_MCS_TABLE_QAM_64_LOW_SE
433 DATA_TRANSMISSION_ALLOWED,
434 STOP_DATA_TRANSMISSION,
435 RESTART_DATA_TRANSMISSION
436 }SchDataTransmission;
439 typedef struct timeDomainAlloc
445 typedef struct resAllocType0
447 uint8_t rbBitmap[36];
450 typedef struct resAllocType1
458 uint32_t ssbPbchPwr; /* SSB block power */
459 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
460 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
461 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
462 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
463 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
465 /*Ref:Spec 38.331 "ssb-PositionsInBurst", Value 0 in Bitmap => corresponding SS/PBCH block is not transmitted
466 *value 1 => corresponding SS/PBCH block is transmitted*/
467 uint8_t totNumSsb; /*S = Total Number of Actual SSB transmitted*/
470 typedef struct bwpCfg
472 uint8_t subcarrierSpacing;
473 uint8_t cyclicPrefix;
474 ResAllocType1 freqAlloc;
480 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
483 typedef struct beamformingInfo
487 uint8_t digBfInterfaces;
488 Prg prg[MAX_NUM_PRG];
491 /* SIB1 PDSCH structures */
493 typedef struct codewordinfo
495 uint16_t targetCodeRate;
503 typedef struct dmrsInfo
505 uint16_t dlDmrsSymbPos;
506 uint8_t dmrsConfigType;
507 uint16_t dlDmrsScramblingId;
509 uint8_t numDmrsCdmGrpsNoData;
512 uint8_t nrOfDmrsSymbols;
516 typedef struct pdschFreqAlloc
518 uint8_t resourceAllocType;
519 /* since we are using type-1, rbBitmap excluded */
520 ResAllocType1 freqAlloc;
521 uint8_t vrbPrbMapping;
524 typedef struct pdschTimeAlloc
527 TimeDomainAlloc timeAlloc;
530 typedef struct txPowerPdschInfo
532 uint8_t powerControlOffset;
533 uint8_t powerControlOffsetSS;
536 typedef struct pdschCfg
541 uint8_t numCodewords;
542 CodewordInfo codeword[MAX_CODEWORDS];
543 uint16_t dataScramblingId;
545 uint8_t transmissionScheme;
548 PdschFreqAlloc pdschFreqAlloc;
549 PdschTimeAlloc pdschTimeAlloc;
550 BeamformingInfo beamPdschInfo;
551 TxPowerPdschInfo txPdschPower;
553 /* SIB1 PDSCH structures end */
555 /* SIB1 interface structure */
557 typedef struct coresetCfg
560 uint8_t startSymbolIndex;
561 uint8_t durationSymbols;
562 uint8_t freqDomainResource[6];
563 uint8_t cceRegMappingType;
564 uint8_t regBundleSize;
565 uint8_t interleaverSize;
568 uint8_t precoderGranularity;
570 uint8_t aggregationLevel;
573 typedef struct txPowerPdcchInfo
576 uint8_t powerControlOffsetSS;
582 uint16_t scramblingId;
583 uint16_t scramblingRnti;
586 BeamformingInfo beamPdcchInfo;
587 TxPowerPdcchInfo txPdcchPower;
591 typedef struct pdcchCfg
593 /* coreset-0 configuration */
594 CoresetCfg coresetCfg;
597 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
599 /* end of SIB1 PDCCH structures */
601 typedef struct pageCfg
603 uint8_t numPO; /*Derived from Ns*/
604 bool poPresent; /*FirstPDCCH-MonitoringPO is present or not*/
605 uint16_t pagingOcc[MAX_PO_PER_PF]; /*FirstPDCCH-Monitoring Paging Occasion*/
610 /* parameters recieved from DU-APP */
612 uint16_t sib1RepetitionPeriod;
613 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
614 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
617 /* parameters derived in scheduler */
620 PdcchCfg sib1PdcchCfg;
621 PdschCfg sib1PdschCfg;
622 PageCfg pageCfg; /*Config of Paging*/
625 typedef struct schRachCfg
627 uint8_t prachCfgIdx; /* PRACH config idx */
628 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
629 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
630 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
631 uint8_t rootSeqLen; /* root sequence length */
632 uint16_t rootSeqIdx; /* Root sequence index */
633 uint8_t numRootSeq; /* Number of root sequences required for FD */
634 uint16_t k1; /* Frequency Offset for each FD */
635 uint8_t totalNumRaPreamble; /* Total number of RA preambles */
636 uint8_t ssbPerRach; /* SSB per RACH occassion */
637 uint8_t numCbPreamblePerSsb; /* Number of CB preamble per SSB */
638 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
639 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
640 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
641 uint8_t raRspWindow; /* RA Response Window */
642 uint8_t maxMsg3Tx; /* MAximum num of msg3 tx*/
645 typedef struct schBwpParams
647 ResAllocType1 freqAlloc;
649 uint8_t cyclicPrefix;
652 typedef struct schCandidatesInfo
661 typedef struct schSearchSpaceCfg
663 uint8_t searchSpaceId;
665 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
666 uint16_t monitoringSlot;
668 uint16_t monitoringSymbol;
669 SchCandidatesInfo candidate;
672 typedef struct schPdcchCfgCmn
674 SchSearchSpaceCfg commonSearchSpace;
675 uint8_t raSearchSpaceId;
678 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
683 uint8_t lengthSymbol;
684 }SchPdschCfgCmnTimeDomRsrcAlloc;
686 typedef struct schPdschCfgCmn
688 uint8_t numTimeDomAlloc;
689 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
692 typedef struct schPucchCfgCmn
694 uint8_t pucchResourceCommon;
695 uint8_t pucchGroupHopping;
698 /* PUSCH Time Domain Resource Allocation */
699 typedef struct schPuschTimeDomRsrcAlloc
702 SchTimeDomRsrcAllocMappingType mappingType;
704 uint8_t symbolLength;
705 }SchPuschTimeDomRsrcAlloc;
707 typedef struct schPuschCfgCmn
709 uint8_t numTimeDomRsrcAlloc;
710 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
713 typedef struct schK1TimingInfo
716 uint8_t k1Indexes[MAX_NUM_K1_IDX];
719 typedef struct schK0TimingInfo
722 SchK1TimingInfo k1TimingInfo;
725 typedef struct schK0K1TimingInfo
728 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
731 typedef struct schK0K1TimingInfoTbl
734 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
735 }SchK0K1TimingInfoTbl;
737 typedef struct schBwpDlCfg
740 SchPdcchCfgCmn pdcchCommon;
741 SchPdschCfgCmn pdschCommon;
742 SchK0K1TimingInfoTbl k0K1InfoTbl;
745 typedef struct schK2TimingInfo
748 uint8_t k2Indexes[MAX_NUM_K2_IDX];
751 typedef struct schK2TimingInfoTbl
754 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
757 typedef struct schBwpUlCfg
760 SchPucchCfgCmn pucchCommon;
761 SchPuschCfgCmn puschCommon;
762 SchK2TimingInfoTbl msg3K2InfoTbl;
763 SchK2TimingInfoTbl k2InfoTbl;
766 typedef struct schPlmnInfoList
769 uint8_t numSliceSupport; /* Total slice supporting */
770 Snssai **snssai; /* List of supporting snssai*/
773 typedef struct schHqCfgParam
775 uint8_t maxDlDataHqTx;
777 uint8_t maxUlDataHqTx;
781 /* The following list of structures is taken from the DRX-Config section of specification 33.331. */
783 typedef struct schDrxOnDurationTimer
785 bool onDurationTimerValInMs;
788 uint8_t subMilliSeconds;
789 uint16_t milliSeconds;
790 }onDurationtimerValue;
791 }SchDrxOnDurationTimer;
793 typedef struct schDrxLongCycleStartOffset
795 uint16_t drxLongCycleStartOffsetChoice;
796 uint16_t drxLongCycleStartOffsetVal;
797 }SchDrxLongCycleStartOffset;
799 typedef struct schShortDrx
801 uint16_t drxShortCycle;
802 uint8_t drxShortCycleTimer;
805 typedef struct schDrxCfg
807 SchDrxOnDurationTimer drxOnDurationTimer;
808 uint16_t drxInactivityTimer;
809 uint8_t drxHarqRttTimerDl;
810 uint8_t drxHarqRttTimerUl;
811 uint16_t drxRetransmissionTimerDl;
812 uint16_t drxRetransmissionTimerUl;
813 SchDrxLongCycleStartOffset drxLongCycleStartOffset;
815 SchShortDrx shortDrx;
816 uint8_t drxSlotOffset;
820 typedef struct schCellCfg
822 uint16_t cellId; /* Cell Id */
823 uint16_t phyCellId; /* Physical cell id */
824 uint8_t numerology; /* Supported numerology */
825 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
826 uint8_t bandwidth; /* Supported B/W */
827 uint32_t dlFreq; /* DL Frequency */
828 uint32_t ulFreq; /* UL Frequency */
829 SchSsbCfg ssbSchCfg; /* SSB config */
830 SchSib1Cfg sib1SchCfg; /* SIB1 config */
831 SchRachCfg schRachCfg; /* PRACH config */
832 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
833 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
834 SchPlmnInfoList plmnInfoList; /* Consits of PlmnId and Snssai list */
837 TDDCfg tddCfg; /* TDD Cfg */
841 typedef struct schCellCfgCfm
843 uint16_t cellId; /* Cell Id */
845 SchFailureCause cause;
848 typedef struct ssbInfo
850 uint8_t ssbIdx; /* SSB Index */
851 TimeDomainAlloc tdAlloc; /* Time domain allocation */
852 ResAllocType1 fdAlloc; /* Freq domain allocation */
855 typedef struct sib1AllocInfo
858 PdcchCfg sib1PdcchCfg;
859 PdschCfg sib1PdschCfg;
862 typedef struct prachSchInfo
864 uint8_t numPrachOcas; /* Num Prach Ocassions */
865 uint8_t prachFormat; /* PRACH Format */
866 uint8_t numRa; /* Freq domain ocassion */
867 uint8_t prachStartSymb; /* Freq domain ocassion */
870 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
871 typedef struct dlBrdcstAlloc
873 /* Ssb transmission is determined as follows:
874 * 0 : No tranamission
875 * 1 : SSB Transmission
876 * 2 : SSB Repetition */
878 uint8_t ssbIdxSupported;
879 SsbInfo ssbInfo[MAX_SSB_IDX];
880 /* Sib1 transmission is determined as follows:
881 * 0 : No tranamission
882 * 1 : SIB1 Transmission
883 * 2 : SIB1 Repetition */
885 Sib1AllocInfo sib1Alloc;
888 typedef struct msg3UlGrant
892 ResAllocType1 msg3FreqAlloc;
899 typedef struct rarInfo
906 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
910 typedef struct rarAlloc
916 PdcchCfg rarPdcchCfg;
917 PdschCfg rarPdschCfg;
920 typedef struct dlMsgInfo
928 uint8_t harqFeedbackInd;
931 uint16_t dlMsgPduLen;
935 typedef struct lcSchInfo
938 uint32_t schBytes; /* Number of scheduled bytes */
941 typedef struct dlMsgSchedInfo
945 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
947 PdcchCfg dlMsgPdcchCfg;
948 PdschCfg dlMsgPdschCfg;
954 typedef struct dlMsgAlloc
957 uint8_t numSchedInfo;
958 DlMsgSchInfo dlMsgSchedInfo[2];
961 typedef struct schSlotValue
963 SlotTimingInfo currentTime;
964 SlotTimingInfo broadcastTime;
965 SlotTimingInfo rarTime;
966 SlotTimingInfo dlMsgTime;
967 SlotTimingInfo ulDciTime;
970 typedef struct format0_0
972 uint8_t resourceAllocType;
973 /* since we are using type-1, hence rbBitmap excluded */
974 ResAllocType1 freqAlloc;
975 TimeDomainAlloc timeAlloc;
978 uint8_t harqProcId; /* HARQ Process ID */
981 uint8_t ndi; /* NDI */
982 uint8_t rv; /* Redundancy Version */
987 typedef struct format0_1
993 typedef struct format1_0
999 typedef struct format1_1
1004 typedef struct dciInfo
1007 uint16_t crnti; /* CRNI */
1008 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1009 BwpCfg bwpCfg; /* BWP Cfg */
1010 CoresetCfg coresetCfg; /* Coreset1 Cfg */
1011 FormatType formatType; /* DCI Format */
1014 Format0_0 format0_0; /* Format 0_0 */
1015 Format0_1 format0_1; /* Format 0_1 */
1016 Format1_0 format1_0; /* Format 1_0 */
1017 Format1_1 format1_1; /* Format 1_1 */
1023 typedef struct dlSchedInfo
1025 uint16_t cellId; /* Cell Id */
1026 SchSlotValue schSlotValue;
1028 /* Allocation for broadcast messages */
1029 bool isBroadcastPres;
1030 DlBrdcstAlloc brdcstAlloc;
1032 /* Allocation for RAR message */
1033 RarAlloc *rarAlloc[MAX_NUM_UE];
1035 /* UL grant in response to BSR */
1038 /* Allocation from dedicated DL msg */
1039 DlMsgAlloc *dlMsgAlloc[MAX_NUM_UE];
1043 typedef struct dlPageAlloc
1046 SlotTimingInfo dlPageTime;
1051 PdcchCfg pagePdcchCfg;
1052 PdschCfg pagePdschCfg;
1053 uint16_t dlPagePduLen;
1057 typedef struct tbInfo
1059 uint8_t mcs; /* MCS */
1060 uint8_t ndi; /* NDI */
1061 uint8_t rv; /* Redundancy Version */
1062 uint16_t tbSize; /* TB Size */
1063 uint8_t qamOrder; /* Modulation Order */
1064 SchMcsTable mcsTable; /* MCS Table */
1067 typedef struct freqDomainAlloc
1069 uint8_t resAllocType; /* Resource allocation type */
1072 ResAllocType0 type0;
1073 ResAllocType1 type1;
1077 typedef struct schPuschInfo
1079 uint8_t harqProcId; /* HARQ Process ID */
1080 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1081 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1082 TbInfo tbInfo; /* TB info */
1084 uint8_t dmrsMappingType;
1085 uint8_t nrOfDmrsSymbols;
1090 typedef struct harqInfo
1092 uint16_t harqAckBitLength;
1093 uint8_t betaOffsetHarqAck;
1096 typedef struct csiInfo
1099 uint8_t betaOffsetCsi;
1102 typedef struct harqAckInfo
1104 uint16_t harqBitLength;
1107 typedef struct csiPartInfo
1112 typedef struct schPucchFormatCfg
1114 uint8_t interSlotFreqHop;
1116 uint8_t maxCodeRate;
1122 typedef struct schPucchInfo
1124 FreqDomainAlloc fdAlloc;
1125 TimeDomainAlloc tdAlloc;
1127 HarqFdbkInfo harqInfo;
1128 csiFdbkInfo csiInfo;
1129 BeamformingInfo beamPucchInfo;
1130 uint8_t pucchFormat;
1131 uint8_t intraFreqHop;
1132 uint16_t secondPrbHop;
1133 uint8_t initialCyclicShift;
1141 typedef struct schPuschUci
1143 uint8_t harqProcId; /* HARQ Process ID */
1144 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1145 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1146 TbInfo tbInfo; /* TB information */
1147 HarqInfo harqInfo; /* Harq Information */
1148 CsiInfo csiInfo; /* Csi information*/
1151 typedef struct ulSchedInfo
1153 uint16_t cellId; /* Cell Id */
1154 uint16_t crnti; /* CRNI */
1155 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1156 uint8_t dataType; /* Type of info being scheduled */
1157 SchPrachInfo prachSchInfo; /* Prach scheduling info */
1158 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
1159 SchPuschUci schPuschUci; /* Pusch Uci */
1160 SchPucchInfo schPucchInfo; /* Pucch and Uci scheduling info */
1163 typedef struct rachIndInfo
1167 SlotTimingInfo timingInfo;
1171 uint8_t preambleIdx;
1176 typedef struct crcIndInfo
1180 SlotTimingInfo timingInfo;
1182 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1185 typedef struct boInfo
1188 uint32_t dataVolume;
1191 typedef struct dlRlcBOInfo
1196 uint32_t dataVolume;
1199 /* Info of Scheduling Request to Add/Modify */
1200 typedef struct schSchedReqInfo
1203 SchSrProhibitTimer srProhibitTmr;
1204 SchSrTransMax srTransMax;
1207 /* Scheduling Request Configuration */
1208 typedef struct schSchedReqCfg
1210 uint8_t addModListCount;
1211 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1212 uint8_t relListCount;
1213 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1216 /* Info of Tag to Add/Modify */
1217 typedef struct schTagInfo
1220 SchTimeAlignmentTimer timeAlignmentTmr;
1223 /* Timing Advance Group Configuration */
1224 typedef struct schTagCfg
1226 uint8_t addModListCount;
1227 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1228 uint8_t relListCount;
1229 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1232 /* Configuration for Power headroom reporting */
1233 typedef struct schPhrCfg
1235 SchPhrPeriodicTimer periodicTmr;
1236 SchPhrProhibitTimer prohibitTmr;
1237 SchPhrTxPwrFactorChange txpowerFactorChange;
1240 bool type2OtherCell;
1241 SchPhrModeOtherCG modeOtherCG;
1244 /* MAC cell Group configuration */
1245 typedef struct schMacCellGrpCfg
1247 SchSchedReqCfg schedReqCfg;
1249 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1252 SchDrxCfg drxCfg; /* Drx configuration */
1256 /* Physical Cell Group Configuration */
1257 typedef struct schPhyCellGrpCfg
1259 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1263 /* Control resource set info */
1264 typedef struct schControlRsrcSet
1266 uint8_t cRSetId; /* Control resource set id */
1267 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1269 SchREGMappingType cceRegMappingType;
1270 SchPrecoderGranul precoderGranularity;
1271 uint16_t dmrsScramblingId;
1274 /* Search Space info */
1275 typedef struct schSearchSpace
1277 uint8_t searchSpaceId;
1279 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1280 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1281 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1282 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1283 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1284 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1285 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1286 SchSearchSpaceType searchSpaceType;
1287 uint8_t ueSpecificDciFormat;
1290 /* PDCCH cofniguration */
1291 typedef struct schPdcchConfig
1293 uint8_t numCRsetToAddMod;
1294 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1295 uint8_t numCRsetToRel;
1296 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1297 uint8_t numSearchSpcToAddMod;
1298 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1299 uint8_t numSearchSpcToRel;
1300 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1303 /* PDSCH time domain resource allocation */
1304 typedef struct schPdschTimeDomRsrcAlloc
1307 SchTimeDomRsrcAllocMappingType mappingType;
1308 uint8_t startSymbol;
1309 uint8_t symbolLength;
1310 }SchPdschTimeDomRsrcAlloc;
1313 typedef struct schPdschBundling
1315 struct schStaticBundling
1317 SchBundlingSizeSet2 size;
1319 struct schDynamicBundling
1321 SchBundlingSizeSet1 sizeSet1;
1322 SchBundlingSizeSet2 sizeSet2;
1323 }SchDynamicBundling;
1326 /* DMRS downlink configuration */
1327 typedef struct schDmrsDlCfg
1329 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1332 /* PDSCH Configuration */
1333 typedef struct schPdschConfig
1335 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1336 SchResourceAllocType resourceAllocType;
1337 uint8_t numTimeDomRsrcAlloc;
1338 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1340 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1341 SchBundlingType bundlingType;
1342 SchPdschBundling bundlingInfo;
1345 /* Initial Downlink BWP */
1346 typedef struct schInitalDlBwp
1349 SchPdcchConfig pdcchCfg;
1351 SchPdschConfig pdschCfg;
1353 SchK0K1TimingInfoTbl k0K1InfoTbl;
1356 /* BWP Downlink common */
1357 typedef struct schBwpDlCommon
1361 /* Downlink BWP information */
1362 typedef struct schDlBwpInfo
1367 /* PDCCH Serving Cell configuration */
1368 typedef struct schPdschServCellCfg
1370 uint8_t *maxMimoLayers;
1371 SchNumHarqProcForPdsch numHarqProcForPdsch;
1372 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1373 bool *codeBlkGrpFlushInd;
1374 SchPdschXOverhead *xOverhead;
1375 }SchPdschServCellCfg;
1377 /* PUCCH Configuration */
1378 typedef struct schPucchResrcSetInfo
1381 uint8_t resrcListCount;
1382 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1383 uint8_t maxPayLoadSize;
1384 }SchPucchResrcSetInfo;
1386 typedef struct schPucchResrcSetCfg
1388 uint8_t resrcSetToAddModListCount;
1389 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1390 uint8_t resrcSetToRelListCount;
1391 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1392 }SchPucchResrcSetCfg;
1394 typedef struct schPucchFormat0
1396 uint8_t initialCyclicShift;
1398 uint8_t startSymbolIdx;
1401 typedef struct schPucchFormat1
1403 uint8_t initialCyclicShift;
1405 uint8_t startSymbolIdx;
1409 typedef struct schPucchFormat2_3
1413 uint8_t startSymbolIdx;
1416 typedef struct schPucchFormat4
1421 uint8_t startSymbolIdx;
1424 typedef struct schPucchResrcInfo
1428 uint8_t intraFreqHop;
1429 uint16_t secondPrbHop;
1430 uint8_t pucchFormat;
1432 SchPucchFormat0 *format0;
1433 SchPucchFormat1 *format1;
1434 SchPucchFormat2_3 *format2;
1435 SchPucchFormat2_3 *format3;
1436 SchPucchFormat4 *format4;
1440 typedef struct schPucchResrcCfg
1442 uint8_t resrcToAddModListCount;
1443 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1444 uint8_t resrcToRelListCount;
1445 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1449 typedef struct schSchedReqResrcInfo
1453 uint8_t periodicity;
1456 }SchSchedReqResrcInfo;
1458 typedef struct schPucchSchedReqCfg
1460 uint8_t schedAddModListCount;
1461 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1462 uint8_t schedRelListCount;
1463 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1464 }SchPucchSchedReqCfg;
1466 typedef struct schSpatialRelationInfo
1468 uint8_t spatialRelationId;
1469 uint8_t servCellIdx;
1470 uint8_t pathLossRefRSId;
1472 uint8_t closeLoopIdx;
1473 }SchSpatialRelationInfo;
1475 typedef struct schPucchSpatialCfg
1477 uint8_t spatialAddModListCount;
1478 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1479 uint8_t spatialRelListCount;
1480 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1481 }SchPucchSpatialCfg;
1483 typedef struct schP0PucchCfg
1489 typedef struct schPathLossRefRSCfg
1491 uint8_t pathLossRefRSId;
1492 }SchPathLossRefRSCfg;
1494 typedef struct schPucchMultiCsiCfg
1496 uint8_t multiCsiResrcListCount;
1497 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1498 }SchPucchMultiCsiCfg;
1500 typedef struct schPucchDlDataToUlAck
1502 uint8_t dlDataToUlAckListCount;
1503 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1504 }SchPucchDlDataToUlAck;
1506 typedef struct schPucchPowerControl
1514 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1515 uint8_t pathLossRefRSListCount;
1516 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1517 }SchPucchPowerControl;
1519 typedef struct schPucchCfg
1521 SchPucchResrcSetCfg *resrcSet;
1522 SchPucchResrcCfg *resrc;
1523 SchPucchFormatCfg *format1;
1524 SchPucchFormatCfg *format2;
1525 SchPucchFormatCfg *format3;
1526 SchPucchFormatCfg *format4;
1527 SchPucchSchedReqCfg *schedReq;
1528 SchPucchMultiCsiCfg *multiCsiCfg;
1529 SchPucchSpatialCfg *spatialInfo;
1530 SchPucchDlDataToUlAck *dlDataToUlAck;
1531 SchPucchPowerControl *powerControl;
1534 /* Transform precoding disabled */
1535 typedef struct schTransPrecodDisabled
1537 uint16_t scramblingId0;
1538 }SchTransPrecodDisabled;
1540 /* DMRS Uplink configuration */
1541 typedef struct SchDmrsUlCfg
1543 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1544 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1547 /* PUSCH Configuration */
1548 typedef struct schPuschCfg
1550 uint8_t dataScramblingId;
1551 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1552 SchResourceAllocType resourceAllocType;
1553 uint8_t numTimeDomRsrcAlloc;
1554 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1555 SchTransformPrecoder transformPrecoder;
1558 /* Initial Uplink BWP */
1559 typedef struct schInitialUlBwp
1562 SchPucchCfg pucchCfg;
1564 SchPuschCfg puschCfg;
1566 SchK2TimingInfoTbl k2InfoTbl;
1569 /* Uplink BWP information */
1570 typedef struct schUlBwpInfo
1575 /* Serving cell configuration */
1576 typedef struct schServCellRecfgInfo
1578 SchInitalDlBwp initDlBwp;
1579 uint8_t numDlBwpToAddOrMod;
1580 SchDlBwpInfo dlBwpToAddOrModList[MAX_NUM_BWP];
1581 uint8_t numDlBwpToRel;
1582 SchDlBwpInfo dlBwpToRelList[MAX_NUM_BWP];
1583 uint8_t firstActvDlBwpId;
1584 uint8_t defaultDlBwpId;
1585 uint8_t *bwpInactivityTmr;
1586 SchPdschServCellCfg pdschServCellCfg;
1587 SchInitialUlBwp initUlBwp;
1588 uint8_t numUlBwpToAddOrMod;
1589 SchUlBwpInfo ulBwpToAddOrModList[MAX_NUM_BWP];
1590 uint8_t numUlBwpToRel;
1591 SchUlBwpInfo ulBwpToRelList[MAX_NUM_BWP];
1592 uint8_t firstActvUlBwpId;
1593 }SchServCellRecfgInfo;
1595 /* Serving cell configuration */
1596 typedef struct schServCellCfgInfo
1598 SchInitalDlBwp initDlBwp;
1599 uint8_t numDlBwpToAdd;
1600 SchDlBwpInfo dlBwpToAddList[MAX_NUM_BWP];
1601 uint8_t firstActvDlBwpId;
1602 uint8_t defaultDlBwpId;
1603 uint8_t *bwpInactivityTmr;
1604 SchPdschServCellCfg pdschServCellCfg;
1605 SchInitialUlBwp initUlBwp;
1606 uint8_t numUlBwpToAdd;
1607 SchUlBwpInfo ulBwpToAddList[MAX_NUM_BWP];
1608 uint8_t firstActvUlBwpId;
1609 }SchServCellCfgInfo;
1611 typedef struct schNonDynFiveQi
1616 uint16_t maxDataBurstVol;
1619 typedef struct schDynFiveQi
1622 uint16_t packetDelayBudget;
1623 uint8_t packetErrRateScalar;
1624 uint8_t packetErrRateExp;
1626 uint8_t delayCritical;
1628 uint16_t maxDataBurstVol;
1631 typedef struct schNgRanAllocAndRetPri
1633 uint8_t priorityLevel;
1634 uint8_t preEmptionCap;
1635 uint8_t preEmptionVul;
1636 }SchNgRanAllocAndRetPri;
1638 typedef struct schGrbQosFlowInfo
1640 uint32_t maxFlowBitRateDl;
1641 uint32_t maxFlowBitRateUl;
1642 uint32_t guarFlowBitRateDl;
1643 uint32_t guarFlowBitRateUl;
1647 typedef struct schDrbQos
1649 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1652 SchNonDynFiveQi nonDyn5Qi;
1653 SchDynFiveQi dyn5Qi;
1655 SchNgRanAllocAndRetPri ngRanRetPri;
1656 SchGrbQosFlowInfo grbQosFlowInfo;
1657 uint16_t pduSessionId;
1658 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1661 /* Special cell configuration */
1662 typedef struct schSpCellCfg
1664 uint8_t servCellIdx;
1665 SchServCellCfgInfo servCellCfg;
1668 /* Special cell Reconfiguration */
1669 typedef struct schSpCellRecfg
1671 uint8_t servCellIdx;
1672 SchServCellRecfgInfo servCellRecfg;
1675 /* Uplink logical channel configuration */
1676 typedef struct SchUlLcCfg
1681 uint8_t pbr; // prioritisedBitRate
1682 uint8_t bsd; // bucketSizeDuration
1685 /* Downlink logical channel configuration */
1686 typedef struct schDlLcCfg
1688 uint8_t lcp; // logical Channel Prioritization
1691 /* Logical Channel configuration */
1692 typedef struct schLcCfg
1696 SchDrbQosInfo *drbQos;
1701 /* Aggregate max bit rate */
1702 typedef struct schAmbrCfg
1704 uint32_t ulBr; /* Ul BitRate */
1707 typedef struct schModulationInfo
1711 SchMcsTable mcsTable;
1714 /* UE configuration */
1715 typedef struct schUeCfgReq
1721 bool macCellGrpCfgPres;
1722 SchMacCellGrpCfg macCellGrpCfg;
1723 bool phyCellGrpCfgPres;
1724 SchPhyCellGrpCfg phyCellGrpCfg;
1726 SchSpCellCfg spCellCfg;
1727 SchAmbrCfg *ambrCfg;
1728 SchModulationInfo dlModInfo;
1729 SchModulationInfo ulModInfo;
1730 uint8_t numLcsToAdd;
1731 SchLcCfg schLcCfg[MAX_NUM_LC];
1734 /* UE Re-configuration */
1735 typedef struct schUeRecfgReq
1741 bool macCellGrpRecfgPres;
1742 SchMacCellGrpCfg macCellGrpRecfg;
1743 bool phyCellGrpRecfgPres;
1744 SchPhyCellGrpCfg phyCellGrpRecfg;
1745 bool spCellRecfgPres;
1746 SchSpCellRecfg spCellRecfg;
1747 SchAmbrCfg *ambrRecfg;
1748 SchModulationInfo dlModInfo;
1749 SchModulationInfo ulModInfo;
1750 uint8_t numLcsToAdd;
1751 SchLcCfg schLcCfgAdd[MAX_NUM_LC];
1752 uint8_t numLcsToDel;
1753 uint8_t lcIdToDel[MAX_NUM_LC];
1754 uint8_t numLcsToMod;
1755 SchLcCfg schLcCfgMod[MAX_NUM_LC];
1756 SchDataTransmission dataTransmissionInfo;
1758 bool drxConfigIndicatorRelease;
1762 typedef struct schUeCfgRsp
1769 SchFailureCause cause;
1772 /*As per WG8, UE ReCFG and UECFG have same structure definition*/
1773 typedef struct schUeCfgRsp SchUeRecfgRsp;
1775 typedef struct schRachRsrcReq
1777 SlotTimingInfo slotInd;
1781 uint8_t ssbIdx[MAX_NUM_SSB];
1784 typedef struct schCfraSsbResource
1787 uint8_t raPreambleIdx;
1788 }SchCfraSsbResource;
1790 typedef struct schCfraRsrc
1793 SchCfraSsbResource ssbResource[MAX_NUM_SSB];
1796 typedef struct schRachRsrcRsp
1801 SchCfraResource cfraResource;
1804 typedef struct schRachRsrcRel
1806 SlotTimingInfo slotInd;
1809 SchCfraResource cfraResource;
1812 typedef struct schUeDelete
1818 typedef struct schUeDeleteRsp
1826 typedef struct schCellDeleteReq
1832 typedef struct schCellDeleteRsp
1836 SchFailureCause cause;
1839 typedef struct dataVolInfo
1845 typedef struct ulBufferStatusRptInd
1851 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1852 }UlBufferStatusRptInd;
1854 typedef struct srUciIndInfo
1858 SlotTimingInfo slotInd;
1860 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1863 typedef struct dlHarqInd
1867 SlotTimingInfo slotInd;
1869 uint8_t harqPayload[MAX_HARQ_BITS_IN_BYTES];
1872 typedef struct schRrmPolicyRatio
1876 uint8_t dedicatedRatio;
1879 typedef struct schRrmPolicyOfSlice
1882 SchRrmPolicyRatio rrmPolicyRatioInfo;
1883 }SchRrmPolicyOfSlice;
1885 typedef struct schSliceCfgReq
1887 uint8_t numOfConfiguredSlice;
1888 SchRrmPolicyOfSlice **listOfSlices;
1891 typedef struct sliceRsp
1898 typedef struct schSliceCfgRsp
1900 uint8_t numSliceCfgRsp;
1901 SliceRsp **listOfSliceCfgRsp;
1904 /*As per ORAN-WG8, Slice Cfg and Recfg are same structures*/
1905 typedef struct schSliceCfgReq SchSliceRecfgReq;
1906 typedef struct schSliceCfgRsp SchSliceRecfgRsp;
1908 typedef struct schPageInd
1917 typedef struct schUeHqInfo
1923 typedef struct schRlsHqInfo
1927 SchUeHqInfo *ueHqInfo;
1930 /* function declarations */
1931 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1932 uint8_t MacMessageRouter(Pst *pst, void *msg);
1933 uint8_t SchMessageRouter(Pst *pst, void *msg);
1935 /**********************************************************************
1937 **********************************************************************/