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
51 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
52 #define SCH_SSB_MASK_SIZE 1
54 #define MAX_NUM_PRG 1 /* max value should be later 275 */
55 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
56 #define MAX_CODEWORDS 1 /* max should be 2 */
57 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
58 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
60 /* Datatype in UL SCH Info */
61 #define SCH_DATATYPE_PUSCH 1
62 #define SCH_DATATYPE_PUSCH_UCI 2
63 #define SCH_DATATYPE_UCI 4
64 #define SCH_DATATYPE_SRS 8
65 #define SCH_DATATYPE_PRACH 16
67 #define MAX_NUMBER_OF_CRC_IND_BITS 1
68 #define MAX_NUMBER_OF_UCI_IND_BITS 1
69 #define MAX_SR_BITS_IN_BYTES 1
70 #define MAX_HARQ_BITS_IN_BYTES 1
71 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
72 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
73 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
74 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
75 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
76 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
77 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
78 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
79 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
80 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
82 /* PUCCH Configuration Macro */
83 #define MAX_NUM_PUCCH_RESRC 128
84 #define MAX_NUM_PUCCH_RESRC_SET 4
85 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
86 #define MAX_NUM_SPATIAL_RELATIONS 8
87 #define MAX_NUM_PUCCH_P0_PER_SET 8
88 #define MAX_NUM_PATH_LOSS_REF_RS 4
89 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
90 #define QPSK_MODULATION 2
92 #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 */
93 #define TX_PAYLOAD_HDR_LEN 32 /* Intel L1 requires adding a 32 byte header to transmitted payload */
94 #define UL_TX_BUFFER_SIZE 5
96 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
97 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
98 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
99 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
100 #define MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
101 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
102 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
103 #define DEFAULT_K2_VALUE_FOR_SCS15 1
104 #define DEFAULT_K2_VALUE_FOR_SCS30 1
105 #define DEFAULT_K2_VALUE_FOR_SCS60 2
106 #define DEFAULT_K2_VALUE_FOR_SCS120 3
108 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr) \
110 if ((crntTime.slot + incr) > (MAX_SLOTS - 1)) \
112 toFill.sfn = (crntTime.sfn + 1); \
116 toFill.sfn = crntTime.sfn; \
118 toFill.slot = (crntTime.slot + incr) % MAX_SLOTS; \
119 if (toFill.sfn >= MAX_SFN) \
121 toFill.sfn%=MAX_SFN; \
129 RRC_CONNECTED_USERS_RSRC
149 RESOURCE_UNAVAILABLE,
186 TIME_ALIGNMENT_TIMER_MS500,
187 TIME_ALIGNMENT_TIMER_MS750,
188 TIME_ALIGNMENT_TIMER_MS1280,
189 TIME_ALIGNMENT_TIMER_MS1920,
190 TIME_ALIGNMENT_TIMER_MS2560,
191 TIME_ALIGNMENT_TIMER_MS5120,
192 TIME_ALIGNMENT_TIMER_MS10240,
193 TIME_ALIGNMENT_TIMER_INFINITE
194 }SchTimeAlignmentTimer;
198 PHR_PERIODIC_TIMER_SF10,
199 PHR_PERIODIC_TIMER_SF20,
200 PHR_PERIODIC_TIMER_SF50,
201 PHR_PERIODIC_TIMER_SF100,
202 PHR_PERIODIC_TIMER_SF200,
203 PHR_PERIODIC_TIMER_SF500,
204 PHR_PERIODIC_TIMER_SF1000,
205 PHR_PERIODIC_TIMER_INFINITE
206 }SchPhrPeriodicTimer;
210 PHR_PROHIBIT_TIMER_SF0,
211 PHR_PROHIBIT_TIMER_SF10,
212 PHR_PROHIBIT_TIMER_SF20,
213 PHR_PROHIBIT_TIMER_SF50,
214 PHR_PROHIBIT_TIMER_SF100,
215 PHR_PROHIBIT_TIMER_SF200,
216 PHR_PROHIBIT_TIMER_SF500,
217 PHR_PROHIBIT_TIMER_SF1000
218 }SchPhrProhibitTimer;
222 PHR_TX_PWR_FACTOR_CHANGE_DB1,
223 PHR_TX_PWR_FACTOR_CHANGE_DB3,
224 PHR_TX_PWR_FACTOR_CHANGE_DB6,
225 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
226 }SchPhrTxPwrFactorChange;
236 HARQ_ACK_CODEBOOK_SEMISTATIC,
237 HARQ_ACK_CODEBOOK_DYNAMIC
238 }SchPdschHarqAckCodebook;
242 NUM_HARQ_PROC_FOR_PDSCH_N2,
243 NUM_HARQ_PROC_FOR_PDSCH_N4,
244 NUM_HARQ_PROC_FOR_PDSCH_N6,
245 NUM_HARQ_PROC_FOR_PDSCH_N10,
246 NUM_HARQ_PROC_FOR_PDSCH_N16
247 }SchNumHarqProcForPdsch;
251 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
252 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
253 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
254 MAX_CODE_BLOCK_GROUP_PER_TB_N8
255 }SchMaxCodeBlkGrpPerTB;
259 PDSCH_X_OVERHEAD_XOH_6,
260 PDSCH_X_OVERHEAD_XOH_12,
261 PDSCH_X_OVERHEAD_XOH_18
266 DMRS_ADDITIONAL_POS0,
267 DMRS_ADDITIONAL_POS1,
269 }SchDmrsAdditionPosition;
273 RESOURCE_ALLOCTION_TYPE_0,
274 RESOURCE_ALLOCTION_TYPE_1,
275 RESOURCE_ALLOCTION_DYN_SWITCH
276 }SchResourceAllocType;
280 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
281 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
282 }SchTimeDomRsrcAllocMappingType;
286 ENABLED_TRANSFORM_PRECODER,
287 DISABLED_TRANSFORM_PRECODER
288 }SchTransformPrecoder;
292 INTERLEAVED_CCE_REG_MAPPING = 1,
293 NONINTERLEAVED_CCE_REG_MAPPING
298 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
299 SLOT_PERIODICITY_AND_OFFSET_SL_2,
300 SLOT_PERIODICITY_AND_OFFSET_SL_4,
301 SLOT_PERIODICITY_AND_OFFSET_SL_5,
302 SLOT_PERIODICITY_AND_OFFSET_SL_8,
303 SLOT_PERIODICITY_AND_OFFSET_SL_10,
304 SLOT_PERIODICITY_AND_OFFSET_SL_16,
305 SLOT_PERIODICITY_AND_OFFSET_SL_20,
306 SLOT_PERIODICITY_AND_OFFSET_SL_40,
307 SLOT_PERIODICITY_AND_OFFSET_SL_80,
308 SLOT_PERIODICITY_AND_OFFSET_SL_160,
309 SLOT_PERIODICITY_AND_OFFSET_SL_320,
310 SLOT_PERIODICITY_AND_OFFSET_SL_640,
311 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
312 SLOT_PERIODICITY_AND_OFFSET_SL_2560
313 }SchMSlotPeriodAndOffset;
323 SEARCH_SPACE_TYPE_COMMON = 1,
324 SEARCH_SPACE_TYPE_UE_SPECIFIC
329 SCH_QOS_NON_DYNAMIC = 1,
335 AGGREGATION_LEVEL_N0,
336 AGGREGATION_LEVEL_N1,
337 AGGREGATION_LEVEL_N2,
338 AGGREGATION_LEVEL_N3,
339 AGGREGATION_LEVEL_N4,
340 AGGREGATION_LEVEL_N5,
341 AGGREGATION_LEVEL_N6,
353 CODE_WORDS_SCHED_BY_DCI_N1,
354 CODE_WORDS_SCHED_BY_DCI_N2
355 }SchCodeWordsSchedByDci;
359 STATIC_BUNDLING_TYPE = 1,
360 DYNAMIC_BUNDLING_TYPE
366 SCH_SET1_SIZE_WIDEBAND,
367 SCH_SET1_SIZE_N2_WIDEBAND,
368 SCH_SET1_SIZE_N4_WIDEBAND
369 }SchBundlingSizeSet1;
374 SCH_SET2_SIZE_WIDEBAND
375 }SchBundlingSizeSet2;
417 SCH_MCS_TABLE_QAM_64,
418 SCH_MCS_TABLE_QAM_256,
419 SCH_MCS_TABLE_QAM_64_LOW_SE
432 DATA_TRANSMISSION_ALLOWED,
433 STOP_DATA_TRANSMISSION,
434 RESTART_DATA_TRANSMISSION
435 }SchDataTransmission;
438 typedef struct timeDomainAlloc
444 typedef struct freqDomainAlloc
453 uint32_t ssbPbchPwr; /* SSB block power */
454 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
455 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
456 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
457 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
458 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
460 /*Ref:Spec 38.331 "ssb-PositionsInBurst", Value 0 in Bitmap => corresponding SS/PBCH block is not transmitted
461 *value 1 => corresponding SS/PBCH block is transmitted*/
462 uint8_t totNumSsb; /*S = Total Number of Actual SSB transmitted*/
465 typedef struct bwpCfg
467 uint8_t subcarrierSpacing;
468 uint8_t cyclicPrefix;
469 FreqDomainAlloc freqAlloc;
475 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
478 typedef struct beamformingInfo
482 uint8_t digBfInterfaces;
483 Prg prg[MAX_NUM_PRG];
486 /* SIB1 PDSCH structures */
488 typedef struct codewordinfo
490 uint16_t targetCodeRate;
498 typedef struct dmrsInfo
500 uint16_t dlDmrsSymbPos;
501 uint8_t dmrsConfigType;
502 uint16_t dlDmrsScramblingId;
504 uint8_t numDmrsCdmGrpsNoData;
507 uint8_t nrOfDmrsSymbols;
511 typedef struct pdschFreqAlloc
513 uint8_t resourceAllocType;
514 /* since we are using type-1, rbBitmap excluded */
515 FreqDomainAlloc freqAlloc;
516 uint8_t vrbPrbMapping;
519 typedef struct pdschTimeAlloc
522 TimeDomainAlloc timeAlloc;
525 typedef struct txPowerPdschInfo
527 uint8_t powerControlOffset;
528 uint8_t powerControlOffsetSS;
531 typedef struct pdschCfg
536 uint8_t numCodewords;
537 CodewordInfo codeword[MAX_CODEWORDS];
538 uint16_t dataScramblingId;
540 uint8_t transmissionScheme;
543 PdschFreqAlloc pdschFreqAlloc;
544 PdschTimeAlloc pdschTimeAlloc;
545 BeamformingInfo beamPdschInfo;
546 TxPowerPdschInfo txPdschPower;
548 /* SIB1 PDSCH structures end */
550 /* SIB1 interface structure */
552 typedef struct coresetCfg
555 uint8_t startSymbolIndex;
556 uint8_t durationSymbols;
557 uint8_t freqDomainResource[6];
558 uint8_t cceRegMappingType;
559 uint8_t regBundleSize;
560 uint8_t interleaverSize;
563 uint8_t precoderGranularity;
565 uint8_t aggregationLevel;
568 typedef struct txPowerPdcchInfo
571 uint8_t powerControlOffsetSS;
577 uint16_t scramblingId;
578 uint16_t scramblingRnti;
581 BeamformingInfo beamPdcchInfo;
582 TxPowerPdcchInfo txPdcchPower;
586 typedef struct pdcchCfg
588 /* coreset-0 configuration */
589 CoresetCfg coresetCfg;
592 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
594 /* end of SIB1 PDCCH structures */
596 typedef struct pageCfg
598 uint8_t numPO; /*Derived from Ns*/
599 bool poPresent; /*FirstPDCCH-MonitoringPO is present or not*/
600 uint16_t pagingOcc[MAX_PO_PER_PF]; /*FirstPDCCH-Monitoring Paging Occasion*/
605 /* parameters recieved from DU-APP */
607 uint16_t sib1RepetitionPeriod;
608 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
609 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
612 /* parameters derived in scheduler */
615 PdcchCfg sib1PdcchCfg;
616 PdschCfg sib1PdschCfg;
617 PageCfg pageCfg; /*Config of Paging*/
620 typedef struct schRachCfg
622 uint8_t prachCfgIdx; /* PRACH config idx */
623 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
624 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
625 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
626 uint8_t rootSeqLen; /* root sequence length */
627 uint16_t rootSeqIdx; /* Root sequence index */
628 uint8_t numRootSeq; /* Number of root sequences required for FD */
629 uint16_t k1; /* Frequency Offset for each FD */
630 uint8_t totalNumRaPreamble; /* Total number of RA preambles */
631 uint8_t ssbPerRach; /* SSB per RACH occassion */
632 uint8_t numCbPreamblePerSsb; /* Number of CB preamble per SSB */
633 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
634 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
635 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
636 uint8_t raRspWindow; /* RA Response Window */
637 uint8_t maxMsg3Tx; /* MAximum num of msg3 tx*/
640 typedef struct schBwpParams
642 FreqDomainAlloc freqAlloc;
644 uint8_t cyclicPrefix;
647 typedef struct schCandidatesInfo
656 typedef struct schSearchSpaceCfg
658 uint8_t searchSpaceId;
660 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
661 uint16_t monitoringSlot;
663 uint16_t monitoringSymbol;
664 SchCandidatesInfo candidate;
667 typedef struct schPdcchCfgCmn
669 SchSearchSpaceCfg commonSearchSpace;
670 uint8_t raSearchSpaceId;
673 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
678 uint8_t lengthSymbol;
679 }SchPdschCfgCmnTimeDomRsrcAlloc;
681 typedef struct schPdschCfgCmn
683 uint8_t numTimeDomAlloc;
684 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
687 typedef struct schPucchCfgCmn
689 uint8_t pucchResourceCommon;
690 uint8_t pucchGroupHopping;
693 /* PUSCH Time Domain Resource Allocation */
694 typedef struct schPuschTimeDomRsrcAlloc
697 SchTimeDomRsrcAllocMappingType mappingType;
699 uint8_t symbolLength;
700 }SchPuschTimeDomRsrcAlloc;
702 typedef struct schPuschCfgCmn
704 uint8_t numTimeDomRsrcAlloc;
705 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
708 typedef struct schK1TimingInfo
711 uint8_t k1Indexes[MAX_NUM_K1_IDX];
714 typedef struct schK0TimingInfo
717 SchK1TimingInfo k1TimingInfo;
720 typedef struct schK0K1TimingInfo
723 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
726 typedef struct schK0K1TimingInfoTbl
729 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
730 }SchK0K1TimingInfoTbl;
732 typedef struct schBwpDlCfg
735 SchPdcchCfgCmn pdcchCommon;
736 SchPdschCfgCmn pdschCommon;
737 SchK0K1TimingInfoTbl k0K1InfoTbl;
740 typedef struct schK2TimingInfo
743 uint8_t k2Indexes[MAX_NUM_K2_IDX];
746 typedef struct schK2TimingInfoTbl
749 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
752 typedef struct schBwpUlCfg
755 SchPucchCfgCmn pucchCommon;
756 SchPuschCfgCmn puschCommon;
757 SchK2TimingInfoTbl msg3K2InfoTbl;
758 SchK2TimingInfoTbl k2InfoTbl;
761 typedef struct schPlmnInfoList
764 uint8_t numSliceSupport; /* Total slice supporting */
765 Snssai **snssai; /* List of supporting snssai*/
768 typedef struct schHqCfgParam
770 uint8_t maxDlDataHqTx;
772 uint8_t maxUlDataHqTx;
776 /* The following list of structures is taken from the DRX-Config section of specification 33.331. */
778 typedef struct schDrxOnDurationTimer
780 bool onDurationTimerValInMs;
783 uint8_t subMilliSeconds;
784 uint16_t milliSeconds;
785 }onDurationtimerValue;
786 }SchDrxOnDurationTimer;
788 typedef struct schDrxLongCycleStartOffset
790 uint16_t drxLongCycleStartOffsetChoice;
791 uint16_t drxLongCycleStartOffsetVal;
792 }SchDrxLongCycleStartOffset;
794 typedef struct schShortDrx
796 uint16_t drxShortCycle;
797 uint8_t drxShortCycleTimer;
800 typedef struct schDrxInfo
802 SchDrxOnDurationTimer drxOnDurationTimer;
803 uint16_t drxInactivityTimer;
804 uint8_t drxHarqRttTimerDl;
805 uint8_t drxHarqRttTimerUl;
806 uint16_t drxRetransmissionTimerDl;
807 uint16_t drxRetransmissionTimerUl;
808 SchDrxLongCycleStartOffset drxLongCycleStartOffset;
809 SchShortDrx shortDrx;
810 uint8_t drxSlotOffset;
814 typedef struct schCellCfg
816 uint16_t cellId; /* Cell Id */
817 uint16_t phyCellId; /* Physical cell id */
818 uint8_t numerology; /* Supported numerology */
819 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
820 uint8_t bandwidth; /* Supported B/W */
821 uint32_t dlFreq; /* DL Frequency */
822 uint32_t ulFreq; /* UL Frequency */
823 SchSsbCfg ssbSchCfg; /* SSB config */
824 SchSib1Cfg sib1SchCfg; /* SIB1 config */
825 SchRachCfg schRachCfg; /* PRACH config */
826 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
827 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
828 SchPlmnInfoList plmnInfoList; /* Consits of PlmnId and Snssai list */
831 TDDCfg tddCfg; /* TDD Cfg */
834 SchDrxInfo drxInfo; /* Drx configuration */
838 typedef struct schCellCfgCfm
840 uint16_t cellId; /* Cell Id */
844 typedef struct ssbInfo
846 uint8_t ssbIdx; /* SSB Index */
847 TimeDomainAlloc tdAlloc; /* Time domain allocation */
848 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
851 typedef struct sib1AllocInfo
854 PdcchCfg sib1PdcchCfg;
855 PdschCfg sib1PdschCfg;
858 typedef struct prachSchInfo
860 uint8_t numPrachOcas; /* Num Prach Ocassions */
861 uint8_t prachFormat; /* PRACH Format */
862 uint8_t numRa; /* Freq domain ocassion */
863 uint8_t prachStartSymb; /* Freq domain ocassion */
866 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
867 typedef struct dlBrdcstAlloc
869 /* Ssb transmission is determined as follows:
870 * 0 : No tranamission
871 * 1 : SSB Transmission
872 * 2 : SSB Repetition */
874 uint8_t ssbIdxSupported;
875 SsbInfo ssbInfo[MAX_SSB_IDX];
876 /* Sib1 transmission is determined as follows:
877 * 0 : No tranamission
878 * 1 : SIB1 Transmission
879 * 2 : SIB1 Repetition */
881 Sib1AllocInfo sib1Alloc;
884 typedef struct msg3UlGrant
888 FreqDomainAlloc msg3FreqAlloc;
895 typedef struct rarInfo
902 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
906 typedef struct rarAlloc
912 PdcchCfg rarPdcchCfg;
913 PdschCfg rarPdschCfg;
916 typedef struct dlMsgInfo
924 uint8_t harqFeedbackInd;
927 uint16_t dlMsgPduLen;
931 typedef struct lcSchInfo
934 uint32_t schBytes; /* Number of scheduled bytes */
937 typedef struct dlMsgSchedInfo
941 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
943 PdcchCfg dlMsgPdcchCfg;
944 PdschCfg dlMsgPdschCfg;
950 typedef struct dlMsgAlloc
953 uint8_t numSchedInfo;
954 DlMsgSchInfo dlMsgSchedInfo[2];
957 typedef struct schSlotValue
959 SlotTimingInfo currentTime;
960 SlotTimingInfo broadcastTime;
961 SlotTimingInfo rarTime;
962 SlotTimingInfo dlMsgTime;
963 SlotTimingInfo ulDciTime;
966 typedef struct format0_0
968 uint8_t resourceAllocType;
969 /* since we are using type-1, hence rbBitmap excluded */
970 FreqDomainAlloc freqAlloc;
971 TimeDomainAlloc timeAlloc;
974 uint8_t harqProcId; /* HARQ Process ID */
977 uint8_t ndi; /* NDI */
978 uint8_t rv; /* Redundancy Version */
983 typedef struct format0_1
989 typedef struct format1_0
995 typedef struct format1_1
1000 typedef struct dciInfo
1003 uint16_t crnti; /* CRNI */
1004 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1005 BwpCfg bwpCfg; /* BWP Cfg */
1006 CoresetCfg coresetCfg; /* Coreset1 Cfg */
1007 FormatType formatType; /* DCI Format */
1010 Format0_0 format0_0; /* Format 0_0 */
1011 Format0_1 format0_1; /* Format 0_1 */
1012 Format1_0 format1_0; /* Format 1_0 */
1013 Format1_1 format1_1; /* Format 1_1 */
1019 typedef struct dlSchedInfo
1021 uint16_t cellId; /* Cell Id */
1022 SchSlotValue schSlotValue;
1024 /* Allocation for broadcast messages */
1025 bool isBroadcastPres;
1026 DlBrdcstAlloc brdcstAlloc;
1028 /* Allocation for RAR message */
1029 RarAlloc *rarAlloc[MAX_NUM_UE];
1031 /* UL grant in response to BSR */
1034 /* Allocation from dedicated DL msg */
1035 DlMsgAlloc *dlMsgAlloc[MAX_NUM_UE];
1039 typedef struct dlPageAlloc
1042 SlotTimingInfo dlPageTime;
1047 PdcchCfg pagePdcchCfg;
1048 PdschCfg pagePdschCfg;
1049 uint16_t dlPagePduLen;
1053 typedef struct tbInfo
1055 uint8_t qamOrder; /* Modulation Order */
1056 uint8_t mcs; /* MCS */
1057 SchMcsTable mcsTable; /* MCS Table */
1058 uint8_t ndi; /* NDI */
1059 uint8_t rv; /* Redundancy Version */
1060 uint16_t tbSize; /* TB Size */
1063 typedef struct schPuschInfo
1066 uint8_t harqProcId; /* HARQ Process ID */
1067 uint8_t resAllocType; /* Resource allocation type */
1068 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1069 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1070 TbInfo tbInfo; /* TB info */
1071 uint8_t dmrsMappingType;
1072 uint8_t nrOfDmrsSymbols;
1076 typedef struct schPucchFormatCfg
1078 uint8_t interSlotFreqHop;
1080 uint8_t maxCodeRate;
1086 typedef struct schPucchInfo
1089 uint8_t pucchFormat;
1090 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1091 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1094 uint8_t numHarqBits;
1097 uint8_t intraFreqHop;
1098 uint16_t secondPrbHop;
1099 uint8_t initialCyclicShift;
1103 SchPucchFormatCfg cmnFormatCfg;
1106 typedef struct ulSchedInfo
1108 uint16_t cellId; /* Cell Id */
1109 uint16_t crnti; /* CRNI */
1110 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1111 uint8_t dataType; /* Type of info being scheduled */
1112 PrachSchInfo prachSchInfo; /* Prach scheduling info */
1113 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
1114 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
1117 typedef struct rachIndInfo
1121 SlotTimingInfo timingInfo;
1125 uint8_t preambleIdx;
1130 typedef struct crcIndInfo
1134 SlotTimingInfo timingInfo;
1136 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1139 typedef struct boInfo
1142 uint32_t dataVolume;
1145 typedef struct dlRlcBOInfo
1150 uint32_t dataVolume;
1153 /* Info of Scheduling Request to Add/Modify */
1154 typedef struct schSchedReqInfo
1157 SchSrProhibitTimer srProhibitTmr;
1158 SchSrTransMax srTransMax;
1161 /* Scheduling Request Configuration */
1162 typedef struct schSchedReqCfg
1164 uint8_t addModListCount;
1165 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1166 uint8_t relListCount;
1167 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1170 /* Info of Tag to Add/Modify */
1171 typedef struct schTagInfo
1174 SchTimeAlignmentTimer timeAlignmentTmr;
1177 /* Timing Advance Group Configuration */
1178 typedef struct schTagCfg
1180 uint8_t addModListCount;
1181 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1182 uint8_t relListCount;
1183 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1186 /* Configuration for Power headroom reporting */
1187 typedef struct schPhrCfg
1189 SchPhrPeriodicTimer periodicTmr;
1190 SchPhrProhibitTimer prohibitTmr;
1191 SchPhrTxPwrFactorChange txpowerFactorChange;
1194 bool type2OtherCell;
1195 SchPhrModeOtherCG modeOtherCG;
1198 /* MAC cell Group configuration */
1199 typedef struct schMacCellGrpCfg
1201 SchSchedReqCfg schedReqCfg;
1203 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1206 /* Physical Cell Group Configuration */
1207 typedef struct schPhyCellGrpCfg
1209 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1213 /* Control resource set info */
1214 typedef struct schControlRsrcSet
1216 uint8_t cRSetId; /* Control resource set id */
1217 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1219 SchREGMappingType cceRegMappingType;
1220 SchPrecoderGranul precoderGranularity;
1221 uint16_t dmrsScramblingId;
1224 /* Search Space info */
1225 typedef struct schSearchSpace
1227 uint8_t searchSpaceId;
1229 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1230 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1231 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1232 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1233 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1234 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1235 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1236 SchSearchSpaceType searchSpaceType;
1237 uint8_t ueSpecificDciFormat;
1240 /* PDCCH cofniguration */
1241 typedef struct schPdcchConfig
1243 uint8_t numCRsetToAddMod;
1244 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1245 uint8_t numCRsetToRel;
1246 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1247 uint8_t numSearchSpcToAddMod;
1248 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1249 uint8_t numSearchSpcToRel;
1250 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1253 /* PDSCH time domain resource allocation */
1254 typedef struct schPdschTimeDomRsrcAlloc
1257 SchTimeDomRsrcAllocMappingType mappingType;
1258 uint8_t startSymbol;
1259 uint8_t symbolLength;
1260 }SchPdschTimeDomRsrcAlloc;
1263 typedef struct schPdschBundling
1265 struct schStaticBundling
1267 SchBundlingSizeSet2 size;
1269 struct schDynamicBundling
1271 SchBundlingSizeSet1 sizeSet1;
1272 SchBundlingSizeSet2 sizeSet2;
1273 }SchDynamicBundling;
1276 /* DMRS downlink configuration */
1277 typedef struct schDmrsDlCfg
1279 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1282 /* PDSCH Configuration */
1283 typedef struct schPdschConfig
1285 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1286 SchResourceAllocType resourceAllocType;
1287 uint8_t numTimeDomRsrcAlloc;
1288 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1290 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1291 SchBundlingType bundlingType;
1292 SchPdschBundling bundlingInfo;
1295 /* Initial Downlink BWP */
1296 typedef struct schInitalDlBwp
1299 SchPdcchConfig pdcchCfg;
1301 SchPdschConfig pdschCfg;
1303 SchK0K1TimingInfoTbl k0K1InfoTbl;
1306 /* BWP Downlink common */
1307 typedef struct schBwpDlCommon
1311 /* Downlink BWP information */
1312 typedef struct schDlBwpInfo
1317 /* PDCCH Serving Cell configuration */
1318 typedef struct schPdschServCellCfg
1320 uint8_t *maxMimoLayers;
1321 SchNumHarqProcForPdsch numHarqProcForPdsch;
1322 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1323 bool *codeBlkGrpFlushInd;
1324 SchPdschXOverhead *xOverhead;
1325 }SchPdschServCellCfg;
1327 /* PUCCH Configuration */
1328 typedef struct schPucchResrcSetInfo
1331 uint8_t resrcListCount;
1332 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1333 uint8_t maxPayLoadSize;
1334 }SchPucchResrcSetInfo;
1336 typedef struct schPucchResrcSetCfg
1338 uint8_t resrcSetToAddModListCount;
1339 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1340 uint8_t resrcSetToRelListCount;
1341 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1342 }SchPucchResrcSetCfg;
1344 typedef struct schPucchFormat0
1346 uint8_t initialCyclicShift;
1348 uint8_t startSymbolIdx;
1351 typedef struct schPucchFormat1
1353 uint8_t initialCyclicShift;
1355 uint8_t startSymbolIdx;
1359 typedef struct schPucchFormat2_3
1363 uint8_t startSymbolIdx;
1366 typedef struct schPucchFormat4
1371 uint8_t startSymbolIdx;
1374 typedef struct schPucchResrcInfo
1378 uint8_t intraFreqHop;
1379 uint16_t secondPrbHop;
1380 uint8_t pucchFormat;
1382 SchPucchFormat0 *format0;
1383 SchPucchFormat1 *format1;
1384 SchPucchFormat2_3 *format2;
1385 SchPucchFormat2_3 *format3;
1386 SchPucchFormat4 *format4;
1390 typedef struct schPucchResrcCfg
1392 uint8_t resrcToAddModListCount;
1393 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1394 uint8_t resrcToRelListCount;
1395 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1399 typedef struct schSchedReqResrcInfo
1403 uint8_t periodicity;
1406 }SchSchedReqResrcInfo;
1408 typedef struct schPucchSchedReqCfg
1410 uint8_t schedAddModListCount;
1411 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1412 uint8_t schedRelListCount;
1413 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1414 }SchPucchSchedReqCfg;
1416 typedef struct schSpatialRelationInfo
1418 uint8_t spatialRelationId;
1419 uint8_t servCellIdx;
1420 uint8_t pathLossRefRSId;
1422 uint8_t closeLoopIdx;
1423 }SchSpatialRelationInfo;
1425 typedef struct schPucchSpatialCfg
1427 uint8_t spatialAddModListCount;
1428 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1429 uint8_t spatialRelListCount;
1430 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1431 }SchPucchSpatialCfg;
1433 typedef struct schP0PucchCfg
1439 typedef struct schPathLossRefRSCfg
1441 uint8_t pathLossRefRSId;
1442 }SchPathLossRefRSCfg;
1444 typedef struct schPucchMultiCsiCfg
1446 uint8_t multiCsiResrcListCount;
1447 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1448 }SchPucchMultiCsiCfg;
1450 typedef struct schPucchDlDataToUlAck
1452 uint8_t dlDataToUlAckListCount;
1453 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1454 }SchPucchDlDataToUlAck;
1456 typedef struct schPucchPowerControl
1464 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1465 uint8_t pathLossRefRSListCount;
1466 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1467 }SchPucchPowerControl;
1469 typedef struct schPucchCfg
1471 SchPucchResrcSetCfg *resrcSet;
1472 SchPucchResrcCfg *resrc;
1473 SchPucchFormatCfg *format1;
1474 SchPucchFormatCfg *format2;
1475 SchPucchFormatCfg *format3;
1476 SchPucchFormatCfg *format4;
1477 SchPucchSchedReqCfg *schedReq;
1478 SchPucchMultiCsiCfg *multiCsiCfg;
1479 SchPucchSpatialCfg *spatialInfo;
1480 SchPucchDlDataToUlAck *dlDataToUlAck;
1481 SchPucchPowerControl *powerControl;
1484 /* Transform precoding disabled */
1485 typedef struct schTransPrecodDisabled
1487 uint16_t scramblingId0;
1488 }SchTransPrecodDisabled;
1490 /* DMRS Uplink configuration */
1491 typedef struct SchDmrsUlCfg
1493 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1494 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1497 /* PUSCH Configuration */
1498 typedef struct schPuschCfg
1500 uint8_t dataScramblingId;
1501 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1502 SchResourceAllocType resourceAllocType;
1503 uint8_t numTimeDomRsrcAlloc;
1504 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1505 SchTransformPrecoder transformPrecoder;
1508 /* Initial Uplink BWP */
1509 typedef struct schInitialUlBwp
1512 SchPucchCfg pucchCfg;
1514 SchPuschCfg puschCfg;
1516 SchK2TimingInfoTbl k2InfoTbl;
1519 /* Uplink BWP information */
1520 typedef struct schUlBwpInfo
1525 /* Serving cell configuration */
1526 typedef struct schServCellCfgInfo
1528 SchInitalDlBwp initDlBwp;
1529 uint8_t numDlBwpToAdd;
1530 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1531 uint8_t firstActvDlBwpId;
1532 uint8_t defaultDlBwpId;
1533 uint8_t *bwpInactivityTmr;
1534 SchPdschServCellCfg pdschServCellCfg;
1535 SchInitialUlBwp initUlBwp;
1536 uint8_t numUlBwpToAdd;
1537 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1538 uint8_t firstActvUlBwpId;
1539 }SchServCellCfgInfo;
1541 typedef struct schNonDynFiveQi
1546 uint16_t maxDataBurstVol;
1549 typedef struct schDynFiveQi
1552 uint16_t packetDelayBudget;
1553 uint8_t packetErrRateScalar;
1554 uint8_t packetErrRateExp;
1556 uint8_t delayCritical;
1558 uint16_t maxDataBurstVol;
1561 typedef struct schNgRanAllocAndRetPri
1563 uint8_t priorityLevel;
1564 uint8_t preEmptionCap;
1565 uint8_t preEmptionVul;
1566 }SchNgRanAllocAndRetPri;
1568 typedef struct schGrbQosFlowInfo
1570 uint32_t maxFlowBitRateDl;
1571 uint32_t maxFlowBitRateUl;
1572 uint32_t guarFlowBitRateDl;
1573 uint32_t guarFlowBitRateUl;
1577 typedef struct schDrbQos
1579 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1582 SchNonDynFiveQi nonDyn5Qi;
1583 SchDynFiveQi dyn5Qi;
1585 SchNgRanAllocAndRetPri ngRanRetPri;
1586 SchGrbQosFlowInfo grbQosFlowInfo;
1587 uint16_t pduSessionId;
1588 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1591 /* Special cell configuration */
1592 typedef struct schSpCellCfg
1594 uint8_t servCellIdx;
1595 SchServCellCfgInfo servCellCfg;
1598 /* Uplink logical channel configuration */
1599 typedef struct SchUlLcCfg
1604 uint8_t pbr; // prioritisedBitRate
1605 uint8_t bsd; // bucketSizeDuration
1608 /* Downlink logical channel configuration */
1609 typedef struct schDlLcCfg
1611 uint8_t lcp; // logical Channel Prioritization
1614 /* Logical Channel configuration */
1615 typedef struct schLcCfg
1617 ConfigType configType;
1619 SchDrbQosInfo *drbQos;
1625 /* Aggregate max bit rate */
1626 typedef struct schAmbrCfg
1628 uint32_t ulBr; /* Ul BitRate */
1631 typedef struct schModulationInfo
1635 SchMcsTable mcsTable;
1638 /* UE configuration */
1639 typedef struct schUeCfg
1644 bool macCellGrpCfgPres;
1645 SchMacCellGrpCfg macCellGrpCfg;
1646 bool phyCellGrpCfgPres;
1647 SchPhyCellGrpCfg phyCellGrpCfg;
1649 SchSpCellCfg spCellCfg;
1650 SchAmbrCfg *ambrCfg;
1651 SchModulationInfo dlModInfo;
1652 SchModulationInfo ulModInfo;
1654 SchLcCfg schLcCfg[MAX_NUM_LC];
1655 SchDataTransmission dataTransmissionInfo;
1658 typedef struct schUeCfgRsp
1664 SchFailureCause cause;
1667 typedef struct schRachRsrcReq
1672 uint8_t ssbIdx[MAX_NUM_SSB];
1675 typedef struct schCfraSsbResource
1678 uint8_t raPreambleIdx;
1679 }SchCfraSsbResource;
1681 typedef struct schCfraRsrc
1684 SchCfraSsbResource ssbResource[MAX_NUM_SSB];
1687 typedef struct schRachRsrcRsp
1692 SchCfraResource cfraResource;
1695 typedef struct schRachRsrcRel
1699 SchCfraResource cfraResource;
1702 typedef struct schUeDelete
1708 typedef struct schUeDeleteRsp
1716 typedef struct schCellDelete
1722 typedef struct schCellDeleteRsp
1728 typedef struct dataVolInfo
1734 typedef struct ulBufferStatusRptInd
1740 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1741 }UlBufferStatusRptInd;
1743 typedef struct srUciIndInfo
1747 SlotTimingInfo slotInd;
1749 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1752 typedef struct harqUciIndInfo
1756 SlotTimingInfo slotInd;
1758 uint8_t harqPayload[MAX_HARQ_BITS_IN_BYTES];
1761 typedef struct schRrmPolicyRatio
1763 uint8_t policyMaxRatio;
1764 uint8_t policyMinRatio;
1765 uint8_t policyDedicatedRatio;
1768 typedef struct schRrmPolicyOfSlice
1771 SchRrmPolicyRatio *rrmPolicyRatioInfo;
1772 }SchRrmPolicyOfSlice;
1774 typedef struct schSliceCfgReq
1776 uint8_t numOfConfiguredSlice;
1777 SchRrmPolicyOfSlice **listOfConfirguration;
1780 typedef struct sliceRsp
1787 typedef struct schSliceRsp
1789 uint8_t numSliceCfgRsp;
1790 SliceRsp **listOfSliceCfgRsp;
1793 typedef struct schPageInd
1802 typedef struct schUeHqInfo
1808 typedef struct schRlsHqInfo
1812 SchUeHqInfo *ueHqInfo;
1815 /* function pointers */
1816 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1817 Pst *pst, /* Post Structure */
1818 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1821 typedef uint8_t (*SchCellCfgFunc) ARGS((
1822 Pst *pst, /* Post Structure */
1823 SchCellCfg *schCellCfg /* Cell Cfg */
1826 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1827 Pst *pst, /* Post Structure */
1828 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1831 typedef uint8_t (*SchMacDlPageAllocFunc) ARGS((
1832 Pst *pst, /* Post Structure */
1833 DlPageAlloc *dlPageAlloc /* dl Page allocation Info */
1836 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1837 Pst *pst, /* Post Structure */
1838 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1841 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1842 Pst *pst, /* Post structure */
1843 RachIndInfo *rachInd)); /* Rach Indication Info */
1845 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1846 Pst *pst, /* Post structure */
1847 CrcIndInfo *crcInd)); /* CRC Info */
1849 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1850 Pst *pst, /* Post structure */
1851 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1853 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1854 Pst *pst, /* Post structure */
1855 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1857 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1858 Pst *pst, /* Post structure */
1859 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1861 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1862 Pst *pst, /* Post structure */
1863 SlotTimingInfo *slotInd)); /* Slot Info */
1865 typedef uint8_t (*MacSchBsrFunc) ARGS((
1867 UlBufferStatusRptInd *bsrInd
1870 typedef uint8_t (*MacSchHarqUciIndFunc) ARGS((
1871 Pst *pst, /* Post structure */
1872 HarqUciIndInfo *uciInd)); /* UCI IND Info */
1874 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1875 Pst *pst, /* Post structure */
1876 SrUciIndInfo *uciInd)); /* UCI IND Info */
1878 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1879 Pst *pst, /* Post structure */
1880 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1882 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1883 Pst *pst, /* Post structure */
1884 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1886 typedef uint8_t (*MacSchRachRsrcReqFunc) ARGS((
1887 Pst *pst, /* Post structure */
1888 SchRachRsrcReq *schRachRsrcReq)); /* RACH resource request to SCH */
1890 typedef uint8_t (*SchRachRsrcRspFunc) ARGS((
1891 Pst *pst, /* Post structure */
1892 SchRachRsrcRsp *schRachRsrcRsp)); /* RACH resource request to MAC */
1894 typedef uint8_t (*MacSchRachRsrcRelFunc) ARGS((
1895 Pst *pst, /* Post structure */
1896 SchRachRsrcRel *schRachRsrcRel)); /* RACH resource release to SCH */
1898 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1899 Pst *pst, /* Post structure */
1900 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1902 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1903 Pst *pst, /* Post structure */
1904 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1906 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1907 Pst *pst, /* Post structure */
1908 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1910 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1911 Pst *pst, /* Post structure */
1912 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1914 typedef uint8_t (*MacSchSliceCfgReqFunc) ARGS((
1915 Pst *pst, /* Post structure */
1916 SchSliceCfgReq *schSliceCfgReq)); /* Scheduler Slice Cfg Req */
1918 typedef uint8_t (*SchSliceCfgRspFunc) ARGS((
1919 Pst *pst, /* Post Structure */
1920 SchSliceCfgRsp *schSliceCfgRsp /* Cell Cfg Cfm */
1923 typedef uint8_t (*MacSchSliceReCfgReqFunc) ARGS((
1924 Pst *pst, /* Post structure */
1925 SchSliceCfgReq *schSliceReCfgReq)); /* Scheduler Slice ReCfg Req */
1927 typedef uint8_t (*SchSliceReCfgRspFunc) ARGS((
1928 Pst *pst, /* Post Structure */
1929 SchSliceCfgRsp *schSliceReCfgRsp /* Cell ReCfg Cfm */
1932 typedef uint8_t (*MacSchPagingIndFunc) ARGS((
1933 Pst *pst, /* Post structure */
1934 SchPageInd *schPagingInd)); /* Paging Indication */
1936 typedef uint8_t (*SchMacDlReleaseHarqFunc) ARGS((
1937 Pst *pst, /* Post structure */
1938 SchRlsHqInfo *rlsHqInfo)); /* Release Harq proc */
1940 /* function declarations */
1941 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1942 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1943 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1944 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1945 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1946 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1947 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1948 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1949 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1950 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1951 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1952 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1953 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1954 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1955 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1956 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1957 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1958 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1959 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1960 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1961 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1962 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1963 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1964 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1965 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1966 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1967 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1968 uint8_t packMacSchHarqUciInd(Pst *pst, HarqUciIndInfo *uciInd);
1969 uint8_t MacSchHarqUciInd(Pst *pst, HarqUciIndInfo *uciInd);
1970 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1971 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1972 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1973 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1974 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1975 uint8_t packMacSchRachRsrcReq(Pst *pst, SchRachRsrcReq *schRachRsrcReq);
1976 uint8_t MacSchRachRsrcReq(Pst *pst, SchRachRsrcReq *schRachRsrcReq);
1977 uint8_t packSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp);
1978 uint8_t MacProcSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp);
1979 uint8_t packMacSchRachRsrcRel(Pst *pst, SchRachRsrcRel *schRachRsrcRel);
1980 uint8_t MacSchRachRsrcRel(Pst *pst, SchRachRsrcRel *schRachRsrcRel);
1981 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1982 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1983 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1984 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1985 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1986 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1987 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1988 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1989 uint8_t packMacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1990 uint8_t MacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1991 uint8_t packSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1992 uint8_t MacProcSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1993 uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1994 uint8_t MacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1995 uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1996 uint8_t MacProcSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *sliceReCfgrsp);
1997 uint8_t packMacSchPagingInd(Pst *pst, SchPageInd *pageInd);
1998 uint8_t MacSchPagingInd(Pst *pst, SchPageInd *pageInd);
1999 uint8_t packSchMacDlPageAlloc(Pst *pst, DlPageAlloc *dlPageAlloc);
2000 uint8_t MacProcDlPageAlloc(Pst *pst, DlPageAlloc *dlPageAlloc);
2001 uint8_t packSchMacDlReleaseHarq(Pst *pst, SchRlsHqInfo *rlsHqInfo);
2002 uint8_t MacSchReleaseDlHarqProc(Pst *pst, SchRlsHqInfo *rlsHqInfo);
2003 /**********************************************************************
2005 **********************************************************************/