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_CELL_CFG 1
21 #define EVENT_SCH_CELL_CFG_CFM 2
22 #define EVENT_DL_SCH_INFO 3
23 #define EVENT_UL_SCH_INFO 4
24 #define EVENT_RACH_IND_TO_SCH 5
25 #define EVENT_CRC_IND_TO_SCH 6
26 #define EVENT_DL_RLC_BO_INFO_TO_SCH 7
27 #define EVENT_ADD_UE_CONFIG_REQ_TO_SCH 8
28 #define EVENT_UE_CONFIG_RSP_TO_MAC 9
29 #define EVENT_SLOT_IND_TO_SCH 10
30 #define EVENT_SHORT_BSR 11
31 #define EVENT_UCI_IND_TO_SCH 12
32 #define EVENT_MODIFY_UE_CONFIG_REQ_TO_SCH 13
33 #define EVENT_UE_RECONFIG_RSP_TO_MAC 14
34 #define EVENT_UE_DELETE_REQ_TO_SCH 15
35 #define EVENT_UE_DELETE_RSP_TO_MAC 16
36 #define EVENT_CELL_DELETE_REQ_TO_SCH 17
37 #define EVENT_CELL_DELETE_RSP_TO_MAC 18
42 #define SSB_TRANSMISSION 1
44 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
45 #define SCH_SSB_MASK_SIZE 1
48 #define SIB1_TRANSMISSION 1
49 #define SIB1_REPITITION 2
51 #define MAX_NUM_PRG 1 /* max value should be later 275 */
52 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
53 #define MAX_CODEWORDS 1 /* max should be 2 */
54 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
55 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
57 /* Datatype in UL SCH Info */
58 #define SCH_DATATYPE_PUSCH 1
59 #define SCH_DATATYPE_PUSCH_UCI 2
60 #define SCH_DATATYPE_UCI 4
61 #define SCH_DATATYPE_SRS 8
62 #define SCH_DATATYPE_PRACH 16
64 #define MAX_NUMBER_OF_CRC_IND_BITS 1
65 #define MAX_NUMBER_OF_UCI_IND_BITS 1
66 #define MAX_SR_BITS_IN_BYTES 1
67 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
68 /* can we have a common numslot numscs between mac sch */
75 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
76 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
77 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
78 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
79 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
80 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
81 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
82 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
83 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
85 /* PUCCH Configuration Macro */
86 #define MAX_NUM_PUCCH_RESRC 128
87 #define MAX_NUM_PUCCH_RESRC_SET 4
88 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
89 #define MAX_NUM_SPATIAL_RELATIONS 8
90 #define MAX_NUM_PUCCH_P0_PER_SET 8
91 #define MAX_NUM_PATH_LOSS_REF_RS 4
92 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
95 #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 */
96 #define TX_PAYLOAD_HDR_LEN 32 /* Intel L1 requires adding a 32 byte header to transmitted payload */
98 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
99 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
100 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
101 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
102 #define DEFAULT_K0_VALUE 0 /*As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions*/
104 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr) \
106 if ((crntTime.slot + incr) > (MAX_SLOTS - 1)) \
108 toFill.sfn = (crntTime.sfn + 1); \
112 toFill.sfn = crntTime.sfn; \
114 toFill.slot = (crntTime.slot + incr) % MAX_SLOTS; \
115 if (toFill.sfn >= MAX_SFN) \
117 toFill.sfn%=MAX_SFN; \
125 RESOURCE_UNAVAILABLE,
162 TIME_ALIGNMENT_TIMER_MS500,
163 TIME_ALIGNMENT_TIMER_MS750,
164 TIME_ALIGNMENT_TIMER_MS1280,
165 TIME_ALIGNMENT_TIMER_MS1920,
166 TIME_ALIGNMENT_TIMER_MS2560,
167 TIME_ALIGNMENT_TIMER_MS5120,
168 TIME_ALIGNMENT_TIMER_MS10240,
169 TIME_ALIGNMENT_TIMER_INFINITE
170 }SchTimeAlignmentTimer;
174 PHR_PERIODIC_TIMER_SF10,
175 PHR_PERIODIC_TIMER_SF20,
176 PHR_PERIODIC_TIMER_SF50,
177 PHR_PERIODIC_TIMER_SF100,
178 PHR_PERIODIC_TIMER_SF200,
179 PHR_PERIODIC_TIMER_SF500,
180 PHR_PERIODIC_TIMER_SF1000,
181 PHR_PERIODIC_TIMER_INFINITE
182 }SchPhrPeriodicTimer;
186 PHR_PROHIBIT_TIMER_SF0,
187 PHR_PROHIBIT_TIMER_SF10,
188 PHR_PROHIBIT_TIMER_SF20,
189 PHR_PROHIBIT_TIMER_SF50,
190 PHR_PROHIBIT_TIMER_SF100,
191 PHR_PROHIBIT_TIMER_SF200,
192 PHR_PROHIBIT_TIMER_SF500,
193 PHR_PROHIBIT_TIMER_SF1000
194 }SchPhrProhibitTimer;
198 PHR_TX_PWR_FACTOR_CHANGE_DB1,
199 PHR_TX_PWR_FACTOR_CHANGE_DB3,
200 PHR_TX_PWR_FACTOR_CHANGE_DB6,
201 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
202 }SchPhrTxPwrFactorChange;
212 HARQ_ACK_CODEBOOK_SEMISTATIC,
213 HARQ_ACK_CODEBOOK_DYNAMIC
214 }SchPdschHarqAckCodebook;
218 NUM_HARQ_PROC_FOR_PDSCH_N2,
219 NUM_HARQ_PROC_FOR_PDSCH_N4,
220 NUM_HARQ_PROC_FOR_PDSCH_N6,
221 NUM_HARQ_PROC_FOR_PDSCH_N10,
222 NUM_HARQ_PROC_FOR_PDSCH_N16
223 }SchNumHarqProcForPdsch;
227 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
228 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
229 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
230 MAX_CODE_BLOCK_GROUP_PER_TB_N8
231 }SchMaxCodeBlkGrpPerTB;
235 PDSCH_X_OVERHEAD_XOH_6,
236 PDSCH_X_OVERHEAD_XOH_12,
237 PDSCH_X_OVERHEAD_XOH_18
242 DMRS_ADDITIONAL_POS0,
243 DMRS_ADDITIONAL_POS1,
245 }SchDmrsAdditionPosition;
249 RESOURCE_ALLOCTION_TYPE_0,
250 RESOURCE_ALLOCTION_TYPE_1,
251 RESOURCE_ALLOCTION_DYN_SWITCH
252 }SchResourceAllocType;
256 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
257 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
258 }SchTimeDomRsrcAllocMappingType;
262 ENABLED_TRANSFORM_PRECODER,
263 DISABLED_TRANSFORM_PRECODER
264 }SchTransformPrecoder;
268 INTERLEAVED_CCE_REG_MAPPING = 1,
269 NONINTERLEAVED_CCE_REG_MAPPING
274 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
275 SLOT_PERIODICITY_AND_OFFSET_SL_2,
276 SLOT_PERIODICITY_AND_OFFSET_SL_4,
277 SLOT_PERIODICITY_AND_OFFSET_SL_5,
278 SLOT_PERIODICITY_AND_OFFSET_SL_8,
279 SLOT_PERIODICITY_AND_OFFSET_SL_10,
280 SLOT_PERIODICITY_AND_OFFSET_SL_16,
281 SLOT_PERIODICITY_AND_OFFSET_SL_20,
282 SLOT_PERIODICITY_AND_OFFSET_SL_40,
283 SLOT_PERIODICITY_AND_OFFSET_SL_80,
284 SLOT_PERIODICITY_AND_OFFSET_SL_160,
285 SLOT_PERIODICITY_AND_OFFSET_SL_320,
286 SLOT_PERIODICITY_AND_OFFSET_SL_640,
287 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
288 SLOT_PERIODICITY_AND_OFFSET_SL_2560
289 }SchMSlotPeriodAndOffset;
299 SEARCH_SPACE_TYPE_COMMON = 1,
300 SEARCH_SPACE_TYPE_UE_SPECIFIC
305 SCH_QOS_NON_DYNAMIC = 1,
311 AGGREGATION_LEVEL_N0,
312 AGGREGATION_LEVEL_N1,
313 AGGREGATION_LEVEL_N2,
314 AGGREGATION_LEVEL_N3,
315 AGGREGATION_LEVEL_N4,
316 AGGREGATION_LEVEL_N5,
317 AGGREGATION_LEVEL_N6,
329 CODE_WORDS_SCHED_BY_DCI_N1,
330 CODE_WORDS_SCHED_BY_DCI_N2
331 }SchCodeWordsSchedByDci;
335 STATIC_BUNDLING_TYPE = 1,
336 DYNAMIC_BUNDLING_TYPE
342 SCH_SET1_SIZE_WIDEBAND,
343 SCH_SET1_SIZE_N2_WIDEBAND,
344 SCH_SET1_SIZE_N4_WIDEBAND
345 }SchBundlingSizeSet1;
350 SCH_SET2_SIZE_WIDEBAND
351 }SchBundlingSizeSet2;
393 SCH_MCS_TABLE_QAM_64,
394 SCH_MCS_TABLE_QAM_256,
395 SCH_MCS_TABLE_QAM_64_LOW_SE
399 typedef struct timeDomainAlloc
405 typedef struct freqDomainAlloc
414 uint32_t ssbPbchPwr; /* SSB block power */
415 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
416 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
417 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
418 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
419 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
422 typedef struct bwpCfg
424 uint8_t subcarrierSpacing;
425 uint8_t cyclicPrefix;
426 FreqDomainAlloc freqAlloc;
432 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
435 typedef struct beamformingInfo
439 uint8_t digBfInterfaces;
440 Prg prg[MAX_NUM_PRG];
443 /* SIB1 PDSCH structures */
445 typedef struct codewordinfo
447 uint16_t targetCodeRate;
455 typedef struct dmrsInfo
457 uint16_t dlDmrsSymbPos;
458 uint8_t dmrsConfigType;
459 uint16_t dlDmrsScramblingId;
461 uint8_t numDmrsCdmGrpsNoData;
464 uint8_t nrOfDmrsSymbols;
468 typedef struct pdschFreqAlloc
470 uint8_t resourceAllocType;
471 /* since we are using type-1, rbBitmap excluded */
472 FreqDomainAlloc freqAlloc;
473 uint8_t vrbPrbMapping;
476 typedef struct pdschTimeAlloc
479 TimeDomainAlloc timeAlloc;
482 typedef struct txPowerPdschInfo
484 uint8_t powerControlOffset;
485 uint8_t powerControlOffsetSS;
488 typedef struct pdschCfg
493 uint8_t numCodewords;
494 CodewordInfo codeword[MAX_CODEWORDS];
495 uint16_t dataScramblingId;
497 uint8_t transmissionScheme;
500 PdschFreqAlloc pdschFreqAlloc;
501 PdschTimeAlloc pdschTimeAlloc;
502 BeamformingInfo beamPdschInfo;
503 TxPowerPdschInfo txPdschPower;
505 /* SIB1 PDSCH structures end */
507 /* SIB1 interface structure */
509 typedef struct coresetCfg
512 uint8_t startSymbolIndex;
513 uint8_t durationSymbols;
514 uint8_t freqDomainResource[6];
515 uint8_t cceRegMappingType;
516 uint8_t regBundleSize;
517 uint8_t interleaverSize;
520 uint8_t precoderGranularity;
522 uint8_t aggregationLevel;
525 typedef struct txPowerPdcchInfo
528 uint8_t powerControlOffsetSS;
534 uint16_t scramblingId;
535 uint16_t scramblingRnti;
538 BeamformingInfo beamPdcchInfo;
539 TxPowerPdcchInfo txPdcchPower;
543 typedef struct pdcchCfg
545 /* coreset-0 configuration */
546 CoresetCfg coresetCfg;
549 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
551 /* end of SIB1 PDCCH structures */
555 /* parameters recieved from DU-APP */
557 uint16_t sib1RepetitionPeriod;
558 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
559 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
562 /* parameters derived in scheduler */
565 PdcchCfg sib1PdcchCfg;
566 PdschCfg sib1PdschCfg;
569 typedef struct schRachCfg
571 uint8_t prachCfgIdx; /* PRACH config idx */
572 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
573 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
574 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
575 uint8_t rootSeqLen; /* root sequence length */
576 uint16_t rootSeqIdx; /* Root sequence index */
577 uint8_t numRootSeq; /* Number of root sequences required for FD */
578 uint16_t k1; /* Frequency Offset for each FD */
579 uint8_t ssbPerRach; /* SSB per RACH occassion */
580 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
581 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
582 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
583 uint8_t raRspWindow; /* RA Response Window */
586 typedef struct schBwpParams
588 FreqDomainAlloc freqAlloc;
590 uint8_t cyclicPrefix;
593 typedef struct schCandidatesInfo
602 typedef struct schSearchSpaceCfg
604 uint8_t searchSpaceId;
606 uint16_t monitoringSlot;
608 uint16_t monitoringSymbol;
609 SchCandidatesInfo candidate;
612 typedef struct schPdcchCfgCmn
614 SchSearchSpaceCfg commonSearchSpace;
615 uint8_t raSearchSpaceId;
618 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
623 uint8_t lengthSymbol;
624 }SchPdschCfgCmnTimeDomRsrcAlloc;
626 typedef struct schPdschCfgCmn
628 uint8_t numTimeDomAlloc;
629 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
632 typedef struct schPucchCfgCmn
634 uint8_t pucchResourceCommon;
635 uint8_t pucchGroupHopping;
638 /* PUSCH Time Domain Resource Allocation */
639 typedef struct schPuschTimeDomRsrcAlloc
642 SchTimeDomRsrcAllocMappingType mappingType;
644 uint8_t symbolLength;
645 }SchPuschTimeDomRsrcAlloc;
647 typedef struct schPuschCfgCmn
649 uint8_t numTimeDomRsrcAlloc;
650 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
653 typedef struct schK1TimingInfo
656 uint8_t k1Indexes[MAX_NUM_K1_IDX];
659 typedef struct schK0TimingInfo
662 SchK1TimingInfo k1TimingInfo;
665 typedef struct schK0K1TimingInfo
668 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
671 typedef struct schK0K1TimingInfoTbl
674 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
675 }SchK0K1TimingInfoTbl;
677 typedef struct schBwpDlCfg
680 SchPdcchCfgCmn pdcchCommon;
681 SchPdschCfgCmn pdschCommon;
682 SchK0K1TimingInfoTbl k0K1InfoTbl;
685 typedef struct schBwpUlCfg
688 SchPucchCfgCmn pucchCommon;
689 SchPuschCfgCmn puschCommon;
692 typedef struct schCellCfg
694 uint16_t cellId; /* Cell Id */
695 uint16_t phyCellId; /* Physical cell id */
696 uint8_t numerology; /* Supported numerology */
697 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
698 uint8_t bandwidth; /* Supported B/W */
699 uint32_t dlFreq; /* DL Frequency */
700 uint32_t ulFreq; /* UL Frequency */
701 SchSsbCfg ssbSchCfg; /* SSB config */
702 SchSib1Cfg sib1SchCfg; /* SIB1 config */
703 SchRachCfg schRachCfg; /* PRACH config */
704 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
705 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
707 TDDCfg tddCfg; /* TDD Cfg */
711 typedef struct schCellCfgCfm
713 uint16_t cellId; /* Cell Id */
717 typedef struct ssbInfo
719 uint8_t ssbIdx; /* SSB Index */
720 TimeDomainAlloc tdAlloc; /* Time domain allocation */
721 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
724 typedef struct sib1AllocInfo
727 PdcchCfg sib1PdcchCfg;
728 PdschCfg sib1PdschCfg;
731 typedef struct prachSchInfo
733 uint8_t numPrachOcas; /* Num Prach Ocassions */
734 uint8_t prachFormat; /* PRACH Format */
735 uint8_t numRa; /* Freq domain ocassion */
736 uint8_t prachStartSymb; /* Freq domain ocassion */
739 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
740 typedef struct dlBrdcstAlloc
742 /* Ssb transmission is determined as follows:
743 * 0 : No tranamission
744 * 1 : SSB Transmission
745 * 2 : SSB Repetition */
747 uint8_t ssbIdxSupported;
748 SsbInfo ssbInfo[MAX_SSB_IDX];
749 /* Sib1 transmission is determined as follows:
750 * 0 : No tranamission
751 * 1 : SIB1 Transmission
752 * 2 : SIB1 Repetition */
754 Sib1AllocInfo sib1Alloc;
757 typedef struct rarInfo
762 FreqDomainAlloc msg3FreqAlloc;
764 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
768 typedef struct rarAlloc
772 PdcchCfg rarPdcchCfg;
773 PdschCfg rarPdschCfg;
776 typedef struct dlMsgInfo
784 uint8_t harqFeedbackInd;
787 uint16_t dlMsgPduLen;
791 typedef struct lcSchInfo
794 uint32_t schBytes; /* Number of scheduled bytes */
797 typedef struct dlMsgAlloc
801 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
803 PdcchCfg dlMsgPdcchCfg;
804 PdschCfg dlMsgPdschCfg;
808 typedef struct schSlotValue
810 SlotIndInfo currentTime;
811 SlotIndInfo broadcastTime;
813 SlotIndInfo dlMsgTime;
814 SlotIndInfo ulDciTime;
817 typedef struct format0_0
819 uint8_t resourceAllocType;
820 /* since we are using type-1, hence rbBitmap excluded */
821 FreqDomainAlloc freqAlloc;
822 TimeDomainAlloc timeAlloc;
825 uint8_t harqProcId; /* HARQ Process ID */
828 uint8_t ndi; /* NDI */
829 uint8_t rv; /* Redundancy Version */
834 typedef struct format0_1
840 typedef struct format1_0
846 typedef struct format1_1
851 typedef struct dciInfo
854 uint16_t crnti; /* CRNI */
855 SlotIndInfo slotIndInfo; /* Slot Info: sfn, slot number */
856 BwpCfg bwpCfg; /* BWP Cfg */
857 CoresetCfg coresetCfg; /* Coreset1 Cfg */
858 FormatType formatType; /* DCI Format */
861 Format0_0 format0_0; /* Format 0_0 */
862 Format0_1 format0_1; /* Format 0_1 */
863 Format1_0 format1_0; /* Format 1_0 */
864 Format1_1 format1_1; /* Format 1_1 */
870 typedef struct dlSchedInfo
872 uint16_t cellId; /* Cell Id */
873 SchSlotValue schSlotValue;
875 /* Allocation for broadcast messages */
876 bool isBroadcastPres;
877 DlBrdcstAlloc brdcstAlloc;
879 /* Allocation for RAR message */
883 /* Allocation from MSG4 */
884 //Msg4Alloc *msg4Alloc;
886 /* UL grant in response to BSR */
889 /* Allocation from dedicated DL msg */
890 DlMsgAlloc *dlMsgAlloc;
894 typedef struct tbInfo
896 uint8_t qamOrder; /* Modulation Order */
897 uint8_t mcs; /* MCS */
898 SchMcsTable mcsTable; /* MCS Table */
899 uint8_t ndi; /* NDI */
900 uint8_t rv; /* Redundancy Version */
901 uint16_t tbSize; /* TB Size */
904 typedef struct schPuschInfo
907 uint8_t harqProcId; /* HARQ Process ID */
908 uint8_t resAllocType; /* Resource allocation type */
909 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
910 TimeDomainAlloc tdAlloc; /* Time domain allocation */
911 TbInfo tbInfo; /* TB info */
912 uint8_t dmrsMappingType;
913 uint8_t nrOfDmrsSymbols;
917 typedef struct schPucchFormatCfg
919 uint8_t interSlotFreqHop;
927 typedef struct schPucchInfo
931 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
932 TimeDomainAlloc tdAlloc; /* Time domain allocation */
938 uint8_t intraFreqHop;
939 uint16_t secondPrbHop;
940 uint8_t initialCyclicShift;
944 SchPucchFormatCfg cmnFormatCfg;
947 typedef struct ulSchedInfo
949 uint16_t cellId; /* Cell Id */
950 uint16_t crnti; /* CRNI */
951 SlotIndInfo slotIndInfo; /* Slot Info: sfn, slot number */
952 uint8_t dataType; /* Type of info being scheduled */
953 PrachSchInfo prachSchInfo; /* Prach scheduling info */
954 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
955 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
958 typedef struct rachIndInfo
962 SlotIndInfo timingInfo;
971 typedef struct crcIndInfo
975 SlotIndInfo timingInfo;
977 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
980 typedef struct boInfo
986 typedef struct dlRlcBOInfo
994 /* Info of Scheduling Request to Add/Modify */
995 typedef struct schSchedReqInfo
998 SchSrProhibitTimer srProhibitTmr;
999 SchSrTransMax srTransMax;
1002 /* Scheduling Request Configuration */
1003 typedef struct schSchedReqCfg
1005 uint8_t addModListCount;
1006 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1007 uint8_t relListCount;
1008 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1011 /* Info of Tag to Add/Modify */
1012 typedef struct schTagInfo
1015 SchTimeAlignmentTimer timeAlignmentTmr;
1018 /* Timing Advance Group Configuration */
1019 typedef struct schTagCfg
1021 uint8_t addModListCount;
1022 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1023 uint8_t relListCount;
1024 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1027 /* Configuration for Power headroom reporting */
1028 typedef struct schPhrCfg
1030 SchPhrPeriodicTimer periodicTmr;
1031 SchPhrProhibitTimer prohibitTmr;
1032 SchPhrTxPwrFactorChange txpowerFactorChange;
1035 bool type2OtherCell;
1036 SchPhrModeOtherCG modeOtherCG;
1039 /* MAC cell Group configuration */
1040 typedef struct schMacCellGrpCfg
1042 SchSchedReqCfg schedReqCfg;
1044 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1047 /* Physical Cell Group Configuration */
1048 typedef struct schPhyCellGrpCfg
1050 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1054 /* Control resource set info */
1055 typedef struct schControlRsrcSet
1057 uint8_t cRSetId; /* Control resource set id */
1058 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1060 SchREGMappingType cceRegMappingType;
1061 SchPrecoderGranul precoderGranularity;
1062 uint16_t dmrsScramblingId;
1065 /* Search Space info */
1066 typedef struct schSearchSpace
1068 uint8_t searchSpaceId;
1070 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1071 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1072 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1073 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1074 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1075 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1076 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1077 SchSearchSpaceType searchSpaceType;
1078 uint8_t ueSpecificDciFormat;
1081 /* PDCCH cofniguration */
1082 typedef struct schPdcchConfig
1084 uint8_t numCRsetToAddMod;
1085 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1086 uint8_t numCRsetToRel;
1087 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1088 uint8_t numSearchSpcToAddMod;
1089 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1090 uint8_t numSearchSpcToRel;
1091 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1094 /* PDSCH time domain resource allocation */
1095 typedef struct schPdschTimeDomRsrcAlloc
1098 SchTimeDomRsrcAllocMappingType mappingType;
1099 uint8_t startSymbol;
1100 uint8_t symbolLength;
1101 }SchPdschTimeDomRsrcAlloc;
1104 typedef struct schPdschBundling
1106 struct schStaticBundling
1108 SchBundlingSizeSet2 size;
1110 struct schDynamicBundling
1112 SchBundlingSizeSet1 sizeSet1;
1113 SchBundlingSizeSet2 sizeSet2;
1114 }SchDynamicBundling;
1117 /* DMRS downlink configuration */
1118 typedef struct schDmrsDlCfg
1120 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1123 /* PDSCH Configuration */
1124 typedef struct schPdschConfig
1126 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1127 SchResourceAllocType resourceAllocType;
1128 uint8_t numTimeDomRsrcAlloc;
1129 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1131 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1132 SchBundlingType bundlingType;
1133 SchPdschBundling bundlingInfo;
1136 /* Initial Downlink BWP */
1137 typedef struct schInitalDlBwp
1140 SchPdcchConfig pdcchCfg;
1142 SchPdschConfig pdschCfg;
1143 SchK0K1TimingInfoTbl k0K1InfoTbl;
1146 /* BWP Downlink common */
1147 typedef struct schBwpDlCommon
1151 /* Downlink BWP information */
1152 typedef struct schDlBwpInfo
1157 /* PDCCH Serving Cell configuration */
1158 typedef struct schPdschServCellCfg
1160 uint8_t *maxMimoLayers;
1161 SchNumHarqProcForPdsch numHarqProcForPdsch;
1162 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1163 bool *codeBlkGrpFlushInd;
1164 SchPdschXOverhead *xOverhead;
1165 }SchPdschServCellCfg;
1167 /* PUCCH Configuration */
1168 typedef struct schPucchResrcSetInfo
1171 uint8_t resrcListCount;
1172 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1173 uint8_t maxPayLoadSize;
1174 }SchPucchResrcSetInfo;
1176 typedef struct schPucchResrcSetCfg
1178 uint8_t resrcSetToAddModListCount;
1179 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1180 uint8_t resrcSetToRelListCount;
1181 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1182 }SchPucchResrcSetCfg;
1184 typedef struct schPucchFormat0
1186 uint8_t initialCyclicShift;
1188 uint8_t startSymbolIdx;
1191 typedef struct schPucchFormat1
1193 uint8_t initialCyclicShift;
1195 uint8_t startSymbolIdx;
1199 typedef struct schPucchFormat2_3
1203 uint8_t startSymbolIdx;
1206 typedef struct schPucchFormat4
1211 uint8_t startSymbolIdx;
1214 typedef struct schPucchResrcInfo
1218 uint8_t intraFreqHop;
1219 uint16_t secondPrbHop;
1220 uint8_t pucchFormat;
1222 SchPucchFormat0 *format0;
1223 SchPucchFormat1 *format1;
1224 SchPucchFormat2_3 *format2;
1225 SchPucchFormat2_3 *format3;
1226 SchPucchFormat4 *format4;
1230 typedef struct schPucchResrcCfg
1232 uint8_t resrcToAddModListCount;
1233 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1234 uint8_t resrcToRelListCount;
1235 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1239 typedef struct schSchedReqResrcInfo
1243 uint8_t periodicity;
1246 }SchSchedReqResrcInfo;
1248 typedef struct schPucchSchedReqCfg
1250 uint8_t schedAddModListCount;
1251 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1252 uint8_t schedRelListCount;
1253 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1254 }SchPucchSchedReqCfg;
1256 typedef struct schSpatialRelationInfo
1258 uint8_t spatialRelationId;
1259 uint8_t servCellIdx;
1260 uint8_t pathLossRefRSId;
1262 uint8_t closeLoopIdx;
1263 }SchSpatialRelationInfo;
1265 typedef struct schPucchSpatialCfg
1267 uint8_t spatialAddModListCount;
1268 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1269 uint8_t spatialRelListCount;
1270 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1271 }SchPucchSpatialCfg;
1273 typedef struct schP0PucchCfg
1279 typedef struct schPathLossRefRSCfg
1281 uint8_t pathLossRefRSId;
1282 }SchPathLossRefRSCfg;
1284 typedef struct schPucchMultiCsiCfg
1286 uint8_t multiCsiResrcListCount;
1287 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1288 }SchPucchMultiCsiCfg;
1290 typedef struct schPucchDlDataToUlAck
1292 uint8_t dlDataToUlAckListCount;
1293 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1294 }SchPucchDlDataToUlAck;
1296 typedef struct schPucchPowerControl
1304 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1305 uint8_t pathLossRefRSListCount;
1306 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1307 }SchPucchPowerControl;
1309 typedef struct schPucchCfg
1311 SchPucchResrcSetCfg *resrcSet;
1312 SchPucchResrcCfg *resrc;
1313 SchPucchFormatCfg *format1;
1314 SchPucchFormatCfg *format2;
1315 SchPucchFormatCfg *format3;
1316 SchPucchFormatCfg *format4;
1317 SchPucchSchedReqCfg *schedReq;
1318 SchPucchMultiCsiCfg *multiCsiCfg;
1319 SchPucchSpatialCfg *spatialInfo;
1320 SchPucchDlDataToUlAck *dlDataToUlAck;
1321 SchPucchPowerControl *powerControl;
1324 /* Transform precoding disabled */
1325 typedef struct schTransPrecodDisabled
1327 uint16_t scramblingId0;
1328 }SchTransPrecodDisabled;
1330 /* DMRS Uplink configuration */
1331 typedef struct SchDmrsUlCfg
1333 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1334 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1337 /* PUSCH Configuration */
1338 typedef struct schPuschCfg
1340 uint8_t dataScramblingId;
1341 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1342 SchResourceAllocType resourceAllocType;
1343 uint8_t numTimeDomRsrcAlloc;
1344 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1345 SchTransformPrecoder transformPrecoder;
1348 /* Initial Uplink BWP */
1349 typedef struct schInitialUlBwp
1352 SchPucchCfg pucchCfg;
1354 SchPuschCfg puschCfg;
1357 /* Uplink BWP information */
1358 typedef struct schUlBwpInfo
1363 /* Serving cell configuration */
1364 typedef struct schServCellCfgInfo
1366 SchInitalDlBwp initDlBwp;
1367 uint8_t numDlBwpToAdd;
1368 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1369 uint8_t firstActvDlBwpId;
1370 uint8_t defaultDlBwpId;
1371 uint8_t *bwpInactivityTmr;
1372 SchPdschServCellCfg pdschServCellCfg;
1373 SchInitialUlBwp initUlBwp;
1374 uint8_t numUlBwpToAdd;
1375 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1376 uint8_t firstActvUlBwpId;
1377 }SchServCellCfgInfo;
1379 typedef struct schNonDynFiveQi
1384 uint16_t maxDataBurstVol;
1387 typedef struct schDynFiveQi
1390 uint16_t packetDelayBudget;
1391 uint8_t packetErrRateScalar;
1392 uint8_t packetErrRateExp;
1394 uint8_t delayCritical;
1396 uint16_t maxDataBurstVol;
1399 typedef struct schNgRanAllocAndRetPri
1401 uint8_t priorityLevel;
1402 uint8_t preEmptionCap;
1403 uint8_t preEmptionVul;
1404 }SchNgRanAllocAndRetPri;
1406 typedef struct schGrbQosFlowInfo
1408 uint32_t maxFlowBitRateDl;
1409 uint32_t maxFlowBitRateUl;
1410 uint32_t guarFlowBitRateDl;
1411 uint32_t guarFlowBitRateUl;
1415 typedef struct schDrbQos
1417 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1420 SchNonDynFiveQi nonDyn5Qi;
1421 SchDynFiveQi dyn5Qi;
1423 SchNgRanAllocAndRetPri ngRanRetPri;
1424 SchGrbQosFlowInfo grbQosFlowInfo;
1425 uint16_t pduSessionId;
1426 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1429 typedef struct schSnssai
1432 uint8_t sd[SD_SIZE];
1435 /* Special cell configuration */
1436 typedef struct schSpCellCfg
1438 uint8_t servCellIdx;
1439 SchServCellCfgInfo servCellCfg;
1442 /* Uplink logical channel configuration */
1443 typedef struct SchUlLcCfg
1448 uint8_t pbr; // prioritisedBitRate
1449 uint8_t bsd; // bucketSizeDuration
1452 /* Downlink logical channel configuration */
1453 typedef struct schDlLcCfg
1455 uint8_t lcp; // logical Channel Prioritization
1458 /* Logical Channel configuration */
1459 typedef struct schLcCfg
1461 ConfigType configType;
1463 SchDrbQosInfo *drbQos;
1469 /* Aggregate max bit rate */
1470 typedef struct schAmbrCfg
1472 uint32_t ulBr; /* Ul BitRate */
1475 typedef struct schModulationInfo
1479 SchMcsTable mcsTable;
1482 /* UE configuration */
1483 typedef struct schUeCfg
1487 bool macCellGrpCfgPres;
1488 SchMacCellGrpCfg macCellGrpCfg;
1489 bool phyCellGrpCfgPres;
1490 SchPhyCellGrpCfg phyCellGrpCfg;
1492 SchSpCellCfg spCellCfg;
1493 SchAmbrCfg *ambrCfg;
1494 SchModulationInfo dlModInfo;
1495 SchModulationInfo ulModInfo;
1497 SchLcCfg schLcCfg[MAX_NUM_LC];
1500 typedef struct schUeCfgRsp
1506 SchFailureCause cause;
1509 typedef struct schUeDelete
1515 typedef struct schUeDeleteRsp
1523 typedef struct schCellDelete
1529 typedef struct schCellDeleteRsp
1535 typedef struct dataVolInfo
1541 typedef struct ulBufferStatusRptInd
1547 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1548 }UlBufferStatusRptInd;
1550 typedef struct srUciIndInfo
1554 SlotIndInfo slotInd;
1556 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1559 /* function pointers */
1561 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1562 Pst *pst, /* Post Structure */
1563 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1566 typedef uint8_t (*SchCellCfgFunc) ARGS((
1567 Pst *pst, /* Post Structure */
1568 SchCellCfg *schCellCfg /* Cell Cfg */
1571 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1572 Pst *pst, /* Post Structure */
1573 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1576 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1577 Pst *pst, /* Post Structure */
1578 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1581 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1582 Pst *pst, /* Post structure */
1583 RachIndInfo *rachInd)); /* Rach Indication Info */
1585 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1586 Pst *pst, /* Post structure */
1587 CrcIndInfo *crcInd)); /* CRC Info */
1589 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1590 Pst *pst, /* Post structure */
1591 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1593 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1594 Pst *pst, /* Post structure */
1595 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1597 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1598 Pst *pst, /* Post structure */
1599 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1601 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1602 Pst *pst, /* Post structure */
1603 SlotIndInfo *slotInd)); /* Slot Info */
1605 typedef uint8_t (*MacSchBsrFunc) ARGS((
1607 UlBufferStatusRptInd *bsrInd
1610 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1611 Pst *pst, /* Post structure */
1612 SrUciIndInfo *uciInd)); /* UCI IND Info */
1614 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1615 Pst *pst, /* Post structure */
1616 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1618 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1619 Pst *pst, /* Post structure */
1620 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1622 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1623 Pst *pst, /* Post structure */
1624 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1626 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1627 Pst *pst, /* Post structure */
1628 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1630 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1631 Pst *pst, /* Post structure */
1632 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1634 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1635 Pst *pst, /* Post structure */
1636 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1638 /* function declarations */
1639 uint8_t packMacSchSlotInd(Pst *pst, SlotIndInfo *slotInd);
1640 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1641 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1642 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1643 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1644 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1645 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1646 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1647 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1648 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1649 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1650 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1651 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1652 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1653 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1654 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1655 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1656 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1657 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1658 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1659 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1660 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotIndInfo * slotInd));
1661 uint8_t packMacSchSlotInd(Pst * pst, SlotIndInfo * slotInd);
1662 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1663 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1664 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1665 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1666 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1667 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1668 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1669 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1670 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1671 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1672 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1673 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1674 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1675 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1676 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1677 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1678 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1680 /**********************************************************************
1682 **********************************************************************/