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 msg3UlGrant
761 FreqDomainAlloc msg3FreqAlloc;
768 typedef struct rarInfo
775 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
779 typedef struct rarAlloc
783 PdcchCfg rarPdcchCfg;
784 PdschCfg rarPdschCfg;
787 typedef struct dlMsgInfo
795 uint8_t harqFeedbackInd;
798 uint16_t dlMsgPduLen;
802 typedef struct lcSchInfo
805 uint32_t schBytes; /* Number of scheduled bytes */
808 typedef struct dlMsgAlloc
812 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
814 PdcchCfg dlMsgPdcchCfg;
815 PdschCfg dlMsgPdschCfg;
819 typedef struct schSlotValue
821 SlotTimingInfo currentTime;
822 SlotTimingInfo broadcastTime;
823 SlotTimingInfo rarTime;
824 SlotTimingInfo dlMsgTime;
825 SlotTimingInfo ulDciTime;
828 typedef struct format0_0
830 uint8_t resourceAllocType;
831 /* since we are using type-1, hence rbBitmap excluded */
832 FreqDomainAlloc freqAlloc;
833 TimeDomainAlloc timeAlloc;
836 uint8_t harqProcId; /* HARQ Process ID */
839 uint8_t ndi; /* NDI */
840 uint8_t rv; /* Redundancy Version */
845 typedef struct format0_1
851 typedef struct format1_0
857 typedef struct format1_1
862 typedef struct dciInfo
865 uint16_t crnti; /* CRNI */
866 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
867 BwpCfg bwpCfg; /* BWP Cfg */
868 CoresetCfg coresetCfg; /* Coreset1 Cfg */
869 FormatType formatType; /* DCI Format */
872 Format0_0 format0_0; /* Format 0_0 */
873 Format0_1 format0_1; /* Format 0_1 */
874 Format1_0 format1_0; /* Format 1_0 */
875 Format1_1 format1_1; /* Format 1_1 */
881 typedef struct dlSchedInfo
883 uint16_t cellId; /* Cell Id */
884 SchSlotValue schSlotValue;
886 /* Allocation for broadcast messages */
887 bool isBroadcastPres;
888 DlBrdcstAlloc brdcstAlloc;
890 /* Allocation for RAR message */
894 /* Allocation from MSG4 */
895 //Msg4Alloc *msg4Alloc;
897 /* UL grant in response to BSR */
900 /* Allocation from dedicated DL msg */
901 DlMsgAlloc *dlMsgAlloc;
905 typedef struct tbInfo
907 uint8_t qamOrder; /* Modulation Order */
908 uint8_t mcs; /* MCS */
909 SchMcsTable mcsTable; /* MCS Table */
910 uint8_t ndi; /* NDI */
911 uint8_t rv; /* Redundancy Version */
912 uint16_t tbSize; /* TB Size */
915 typedef struct schPuschInfo
918 uint8_t harqProcId; /* HARQ Process ID */
919 uint8_t resAllocType; /* Resource allocation type */
920 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
921 TimeDomainAlloc tdAlloc; /* Time domain allocation */
922 TbInfo tbInfo; /* TB info */
923 uint8_t dmrsMappingType;
924 uint8_t nrOfDmrsSymbols;
928 typedef struct schPucchFormatCfg
930 uint8_t interSlotFreqHop;
938 typedef struct schPucchInfo
942 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
943 TimeDomainAlloc tdAlloc; /* Time domain allocation */
949 uint8_t intraFreqHop;
950 uint16_t secondPrbHop;
951 uint8_t initialCyclicShift;
955 SchPucchFormatCfg cmnFormatCfg;
958 typedef struct ulSchedInfo
960 uint16_t cellId; /* Cell Id */
961 uint16_t crnti; /* CRNI */
962 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
963 uint8_t dataType; /* Type of info being scheduled */
964 PrachSchInfo prachSchInfo; /* Prach scheduling info */
965 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
966 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
969 typedef struct rachIndInfo
973 SlotTimingInfo timingInfo;
982 typedef struct crcIndInfo
986 SlotTimingInfo timingInfo;
988 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
991 typedef struct boInfo
997 typedef struct dlRlcBOInfo
1002 uint32_t dataVolume;
1005 /* Info of Scheduling Request to Add/Modify */
1006 typedef struct schSchedReqInfo
1009 SchSrProhibitTimer srProhibitTmr;
1010 SchSrTransMax srTransMax;
1013 /* Scheduling Request Configuration */
1014 typedef struct schSchedReqCfg
1016 uint8_t addModListCount;
1017 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1018 uint8_t relListCount;
1019 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1022 /* Info of Tag to Add/Modify */
1023 typedef struct schTagInfo
1026 SchTimeAlignmentTimer timeAlignmentTmr;
1029 /* Timing Advance Group Configuration */
1030 typedef struct schTagCfg
1032 uint8_t addModListCount;
1033 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1034 uint8_t relListCount;
1035 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1038 /* Configuration for Power headroom reporting */
1039 typedef struct schPhrCfg
1041 SchPhrPeriodicTimer periodicTmr;
1042 SchPhrProhibitTimer prohibitTmr;
1043 SchPhrTxPwrFactorChange txpowerFactorChange;
1046 bool type2OtherCell;
1047 SchPhrModeOtherCG modeOtherCG;
1050 /* MAC cell Group configuration */
1051 typedef struct schMacCellGrpCfg
1053 SchSchedReqCfg schedReqCfg;
1055 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1058 /* Physical Cell Group Configuration */
1059 typedef struct schPhyCellGrpCfg
1061 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1065 /* Control resource set info */
1066 typedef struct schControlRsrcSet
1068 uint8_t cRSetId; /* Control resource set id */
1069 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1071 SchREGMappingType cceRegMappingType;
1072 SchPrecoderGranul precoderGranularity;
1073 uint16_t dmrsScramblingId;
1076 /* Search Space info */
1077 typedef struct schSearchSpace
1079 uint8_t searchSpaceId;
1081 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1082 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1083 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1084 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1085 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1086 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1087 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1088 SchSearchSpaceType searchSpaceType;
1089 uint8_t ueSpecificDciFormat;
1092 /* PDCCH cofniguration */
1093 typedef struct schPdcchConfig
1095 uint8_t numCRsetToAddMod;
1096 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1097 uint8_t numCRsetToRel;
1098 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1099 uint8_t numSearchSpcToAddMod;
1100 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1101 uint8_t numSearchSpcToRel;
1102 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1105 /* PDSCH time domain resource allocation */
1106 typedef struct schPdschTimeDomRsrcAlloc
1109 SchTimeDomRsrcAllocMappingType mappingType;
1110 uint8_t startSymbol;
1111 uint8_t symbolLength;
1112 }SchPdschTimeDomRsrcAlloc;
1115 typedef struct schPdschBundling
1117 struct schStaticBundling
1119 SchBundlingSizeSet2 size;
1121 struct schDynamicBundling
1123 SchBundlingSizeSet1 sizeSet1;
1124 SchBundlingSizeSet2 sizeSet2;
1125 }SchDynamicBundling;
1128 /* DMRS downlink configuration */
1129 typedef struct schDmrsDlCfg
1131 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1134 /* PDSCH Configuration */
1135 typedef struct schPdschConfig
1137 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1138 SchResourceAllocType resourceAllocType;
1139 uint8_t numTimeDomRsrcAlloc;
1140 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1142 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1143 SchBundlingType bundlingType;
1144 SchPdschBundling bundlingInfo;
1147 /* Initial Downlink BWP */
1148 typedef struct schInitalDlBwp
1151 SchPdcchConfig pdcchCfg;
1153 SchPdschConfig pdschCfg;
1154 SchK0K1TimingInfoTbl k0K1InfoTbl;
1157 /* BWP Downlink common */
1158 typedef struct schBwpDlCommon
1162 /* Downlink BWP information */
1163 typedef struct schDlBwpInfo
1168 /* PDCCH Serving Cell configuration */
1169 typedef struct schPdschServCellCfg
1171 uint8_t *maxMimoLayers;
1172 SchNumHarqProcForPdsch numHarqProcForPdsch;
1173 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1174 bool *codeBlkGrpFlushInd;
1175 SchPdschXOverhead *xOverhead;
1176 }SchPdschServCellCfg;
1178 /* PUCCH Configuration */
1179 typedef struct schPucchResrcSetInfo
1182 uint8_t resrcListCount;
1183 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1184 uint8_t maxPayLoadSize;
1185 }SchPucchResrcSetInfo;
1187 typedef struct schPucchResrcSetCfg
1189 uint8_t resrcSetToAddModListCount;
1190 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1191 uint8_t resrcSetToRelListCount;
1192 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1193 }SchPucchResrcSetCfg;
1195 typedef struct schPucchFormat0
1197 uint8_t initialCyclicShift;
1199 uint8_t startSymbolIdx;
1202 typedef struct schPucchFormat1
1204 uint8_t initialCyclicShift;
1206 uint8_t startSymbolIdx;
1210 typedef struct schPucchFormat2_3
1214 uint8_t startSymbolIdx;
1217 typedef struct schPucchFormat4
1222 uint8_t startSymbolIdx;
1225 typedef struct schPucchResrcInfo
1229 uint8_t intraFreqHop;
1230 uint16_t secondPrbHop;
1231 uint8_t pucchFormat;
1233 SchPucchFormat0 *format0;
1234 SchPucchFormat1 *format1;
1235 SchPucchFormat2_3 *format2;
1236 SchPucchFormat2_3 *format3;
1237 SchPucchFormat4 *format4;
1241 typedef struct schPucchResrcCfg
1243 uint8_t resrcToAddModListCount;
1244 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1245 uint8_t resrcToRelListCount;
1246 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1250 typedef struct schSchedReqResrcInfo
1254 uint8_t periodicity;
1257 }SchSchedReqResrcInfo;
1259 typedef struct schPucchSchedReqCfg
1261 uint8_t schedAddModListCount;
1262 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1263 uint8_t schedRelListCount;
1264 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1265 }SchPucchSchedReqCfg;
1267 typedef struct schSpatialRelationInfo
1269 uint8_t spatialRelationId;
1270 uint8_t servCellIdx;
1271 uint8_t pathLossRefRSId;
1273 uint8_t closeLoopIdx;
1274 }SchSpatialRelationInfo;
1276 typedef struct schPucchSpatialCfg
1278 uint8_t spatialAddModListCount;
1279 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1280 uint8_t spatialRelListCount;
1281 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1282 }SchPucchSpatialCfg;
1284 typedef struct schP0PucchCfg
1290 typedef struct schPathLossRefRSCfg
1292 uint8_t pathLossRefRSId;
1293 }SchPathLossRefRSCfg;
1295 typedef struct schPucchMultiCsiCfg
1297 uint8_t multiCsiResrcListCount;
1298 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1299 }SchPucchMultiCsiCfg;
1301 typedef struct schPucchDlDataToUlAck
1303 uint8_t dlDataToUlAckListCount;
1304 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1305 }SchPucchDlDataToUlAck;
1307 typedef struct schPucchPowerControl
1315 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1316 uint8_t pathLossRefRSListCount;
1317 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1318 }SchPucchPowerControl;
1320 typedef struct schPucchCfg
1322 SchPucchResrcSetCfg *resrcSet;
1323 SchPucchResrcCfg *resrc;
1324 SchPucchFormatCfg *format1;
1325 SchPucchFormatCfg *format2;
1326 SchPucchFormatCfg *format3;
1327 SchPucchFormatCfg *format4;
1328 SchPucchSchedReqCfg *schedReq;
1329 SchPucchMultiCsiCfg *multiCsiCfg;
1330 SchPucchSpatialCfg *spatialInfo;
1331 SchPucchDlDataToUlAck *dlDataToUlAck;
1332 SchPucchPowerControl *powerControl;
1335 /* Transform precoding disabled */
1336 typedef struct schTransPrecodDisabled
1338 uint16_t scramblingId0;
1339 }SchTransPrecodDisabled;
1341 /* DMRS Uplink configuration */
1342 typedef struct SchDmrsUlCfg
1344 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1345 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1348 /* PUSCH Configuration */
1349 typedef struct schPuschCfg
1351 uint8_t dataScramblingId;
1352 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1353 SchResourceAllocType resourceAllocType;
1354 uint8_t numTimeDomRsrcAlloc;
1355 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1356 SchTransformPrecoder transformPrecoder;
1359 /* Initial Uplink BWP */
1360 typedef struct schInitialUlBwp
1363 SchPucchCfg pucchCfg;
1365 SchPuschCfg puschCfg;
1368 /* Uplink BWP information */
1369 typedef struct schUlBwpInfo
1374 /* Serving cell configuration */
1375 typedef struct schServCellCfgInfo
1377 SchInitalDlBwp initDlBwp;
1378 uint8_t numDlBwpToAdd;
1379 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1380 uint8_t firstActvDlBwpId;
1381 uint8_t defaultDlBwpId;
1382 uint8_t *bwpInactivityTmr;
1383 SchPdschServCellCfg pdschServCellCfg;
1384 SchInitialUlBwp initUlBwp;
1385 uint8_t numUlBwpToAdd;
1386 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1387 uint8_t firstActvUlBwpId;
1388 }SchServCellCfgInfo;
1390 typedef struct schNonDynFiveQi
1395 uint16_t maxDataBurstVol;
1398 typedef struct schDynFiveQi
1401 uint16_t packetDelayBudget;
1402 uint8_t packetErrRateScalar;
1403 uint8_t packetErrRateExp;
1405 uint8_t delayCritical;
1407 uint16_t maxDataBurstVol;
1410 typedef struct schNgRanAllocAndRetPri
1412 uint8_t priorityLevel;
1413 uint8_t preEmptionCap;
1414 uint8_t preEmptionVul;
1415 }SchNgRanAllocAndRetPri;
1417 typedef struct schGrbQosFlowInfo
1419 uint32_t maxFlowBitRateDl;
1420 uint32_t maxFlowBitRateUl;
1421 uint32_t guarFlowBitRateDl;
1422 uint32_t guarFlowBitRateUl;
1426 typedef struct schDrbQos
1428 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1431 SchNonDynFiveQi nonDyn5Qi;
1432 SchDynFiveQi dyn5Qi;
1434 SchNgRanAllocAndRetPri ngRanRetPri;
1435 SchGrbQosFlowInfo grbQosFlowInfo;
1436 uint16_t pduSessionId;
1437 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1440 typedef struct schSnssai
1443 uint8_t sd[SD_SIZE];
1446 /* Special cell configuration */
1447 typedef struct schSpCellCfg
1449 uint8_t servCellIdx;
1450 SchServCellCfgInfo servCellCfg;
1453 /* Uplink logical channel configuration */
1454 typedef struct SchUlLcCfg
1459 uint8_t pbr; // prioritisedBitRate
1460 uint8_t bsd; // bucketSizeDuration
1463 /* Downlink logical channel configuration */
1464 typedef struct schDlLcCfg
1466 uint8_t lcp; // logical Channel Prioritization
1469 /* Logical Channel configuration */
1470 typedef struct schLcCfg
1472 ConfigType configType;
1474 SchDrbQosInfo *drbQos;
1480 /* Aggregate max bit rate */
1481 typedef struct schAmbrCfg
1483 uint32_t ulBr; /* Ul BitRate */
1486 typedef struct schModulationInfo
1490 SchMcsTable mcsTable;
1493 /* UE configuration */
1494 typedef struct schUeCfg
1498 bool macCellGrpCfgPres;
1499 SchMacCellGrpCfg macCellGrpCfg;
1500 bool phyCellGrpCfgPres;
1501 SchPhyCellGrpCfg phyCellGrpCfg;
1503 SchSpCellCfg spCellCfg;
1504 SchAmbrCfg *ambrCfg;
1505 SchModulationInfo dlModInfo;
1506 SchModulationInfo ulModInfo;
1508 SchLcCfg schLcCfg[MAX_NUM_LC];
1511 typedef struct schUeCfgRsp
1517 SchFailureCause cause;
1520 typedef struct schUeDelete
1526 typedef struct schUeDeleteRsp
1534 typedef struct schCellDelete
1540 typedef struct schCellDeleteRsp
1546 typedef struct dataVolInfo
1552 typedef struct ulBufferStatusRptInd
1558 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1559 }UlBufferStatusRptInd;
1561 typedef struct srUciIndInfo
1565 SlotTimingInfo slotInd;
1567 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1570 /* function pointers */
1572 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1573 Pst *pst, /* Post Structure */
1574 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1577 typedef uint8_t (*SchCellCfgFunc) ARGS((
1578 Pst *pst, /* Post Structure */
1579 SchCellCfg *schCellCfg /* Cell Cfg */
1582 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1583 Pst *pst, /* Post Structure */
1584 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1587 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1588 Pst *pst, /* Post Structure */
1589 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1592 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1593 Pst *pst, /* Post structure */
1594 RachIndInfo *rachInd)); /* Rach Indication Info */
1596 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1597 Pst *pst, /* Post structure */
1598 CrcIndInfo *crcInd)); /* CRC Info */
1600 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1601 Pst *pst, /* Post structure */
1602 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1604 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1605 Pst *pst, /* Post structure */
1606 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1608 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1609 Pst *pst, /* Post structure */
1610 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1612 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1613 Pst *pst, /* Post structure */
1614 SlotTimingInfo *slotInd)); /* Slot Info */
1616 typedef uint8_t (*MacSchBsrFunc) ARGS((
1618 UlBufferStatusRptInd *bsrInd
1621 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1622 Pst *pst, /* Post structure */
1623 SrUciIndInfo *uciInd)); /* UCI IND Info */
1625 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1626 Pst *pst, /* Post structure */
1627 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1629 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1630 Pst *pst, /* Post structure */
1631 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1633 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1634 Pst *pst, /* Post structure */
1635 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1637 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1638 Pst *pst, /* Post structure */
1639 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1641 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1642 Pst *pst, /* Post structure */
1643 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1645 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1646 Pst *pst, /* Post structure */
1647 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1649 /* function declarations */
1650 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1651 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1652 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1653 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1654 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1655 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1656 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1657 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1658 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1659 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1660 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1661 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1662 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1663 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1664 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1665 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1666 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1667 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1668 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1669 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1670 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1671 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1672 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1673 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1674 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1675 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1676 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1677 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1678 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1679 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1680 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1681 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1682 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1683 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1684 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1685 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1686 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1687 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1688 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1689 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1691 /**********************************************************************
1693 **********************************************************************/