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 MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
103 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
104 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
105 #define DEFAULT_K2_VALUE_FOR_SCS15 1
106 #define DEFAULT_K2_VALUE_FOR_SCS30 1
107 #define DEFAULT_K2_VALUE_FOR_SCS60 2
108 #define DEFAULT_K2_VALUE_FOR_SCS120 3
110 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr) \
112 if ((crntTime.slot + incr) > (MAX_SLOTS - 1)) \
114 toFill.sfn = (crntTime.sfn + 1); \
118 toFill.sfn = crntTime.sfn; \
120 toFill.slot = (crntTime.slot + incr) % MAX_SLOTS; \
121 if (toFill.sfn >= MAX_SFN) \
123 toFill.sfn%=MAX_SFN; \
131 RESOURCE_UNAVAILABLE,
168 TIME_ALIGNMENT_TIMER_MS500,
169 TIME_ALIGNMENT_TIMER_MS750,
170 TIME_ALIGNMENT_TIMER_MS1280,
171 TIME_ALIGNMENT_TIMER_MS1920,
172 TIME_ALIGNMENT_TIMER_MS2560,
173 TIME_ALIGNMENT_TIMER_MS5120,
174 TIME_ALIGNMENT_TIMER_MS10240,
175 TIME_ALIGNMENT_TIMER_INFINITE
176 }SchTimeAlignmentTimer;
180 PHR_PERIODIC_TIMER_SF10,
181 PHR_PERIODIC_TIMER_SF20,
182 PHR_PERIODIC_TIMER_SF50,
183 PHR_PERIODIC_TIMER_SF100,
184 PHR_PERIODIC_TIMER_SF200,
185 PHR_PERIODIC_TIMER_SF500,
186 PHR_PERIODIC_TIMER_SF1000,
187 PHR_PERIODIC_TIMER_INFINITE
188 }SchPhrPeriodicTimer;
192 PHR_PROHIBIT_TIMER_SF0,
193 PHR_PROHIBIT_TIMER_SF10,
194 PHR_PROHIBIT_TIMER_SF20,
195 PHR_PROHIBIT_TIMER_SF50,
196 PHR_PROHIBIT_TIMER_SF100,
197 PHR_PROHIBIT_TIMER_SF200,
198 PHR_PROHIBIT_TIMER_SF500,
199 PHR_PROHIBIT_TIMER_SF1000
200 }SchPhrProhibitTimer;
204 PHR_TX_PWR_FACTOR_CHANGE_DB1,
205 PHR_TX_PWR_FACTOR_CHANGE_DB3,
206 PHR_TX_PWR_FACTOR_CHANGE_DB6,
207 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
208 }SchPhrTxPwrFactorChange;
218 HARQ_ACK_CODEBOOK_SEMISTATIC,
219 HARQ_ACK_CODEBOOK_DYNAMIC
220 }SchPdschHarqAckCodebook;
224 NUM_HARQ_PROC_FOR_PDSCH_N2,
225 NUM_HARQ_PROC_FOR_PDSCH_N4,
226 NUM_HARQ_PROC_FOR_PDSCH_N6,
227 NUM_HARQ_PROC_FOR_PDSCH_N10,
228 NUM_HARQ_PROC_FOR_PDSCH_N16
229 }SchNumHarqProcForPdsch;
233 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
234 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
235 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
236 MAX_CODE_BLOCK_GROUP_PER_TB_N8
237 }SchMaxCodeBlkGrpPerTB;
241 PDSCH_X_OVERHEAD_XOH_6,
242 PDSCH_X_OVERHEAD_XOH_12,
243 PDSCH_X_OVERHEAD_XOH_18
248 DMRS_ADDITIONAL_POS0,
249 DMRS_ADDITIONAL_POS1,
251 }SchDmrsAdditionPosition;
255 RESOURCE_ALLOCTION_TYPE_0,
256 RESOURCE_ALLOCTION_TYPE_1,
257 RESOURCE_ALLOCTION_DYN_SWITCH
258 }SchResourceAllocType;
262 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
263 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
264 }SchTimeDomRsrcAllocMappingType;
268 ENABLED_TRANSFORM_PRECODER,
269 DISABLED_TRANSFORM_PRECODER
270 }SchTransformPrecoder;
274 INTERLEAVED_CCE_REG_MAPPING = 1,
275 NONINTERLEAVED_CCE_REG_MAPPING
280 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
281 SLOT_PERIODICITY_AND_OFFSET_SL_2,
282 SLOT_PERIODICITY_AND_OFFSET_SL_4,
283 SLOT_PERIODICITY_AND_OFFSET_SL_5,
284 SLOT_PERIODICITY_AND_OFFSET_SL_8,
285 SLOT_PERIODICITY_AND_OFFSET_SL_10,
286 SLOT_PERIODICITY_AND_OFFSET_SL_16,
287 SLOT_PERIODICITY_AND_OFFSET_SL_20,
288 SLOT_PERIODICITY_AND_OFFSET_SL_40,
289 SLOT_PERIODICITY_AND_OFFSET_SL_80,
290 SLOT_PERIODICITY_AND_OFFSET_SL_160,
291 SLOT_PERIODICITY_AND_OFFSET_SL_320,
292 SLOT_PERIODICITY_AND_OFFSET_SL_640,
293 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
294 SLOT_PERIODICITY_AND_OFFSET_SL_2560
295 }SchMSlotPeriodAndOffset;
305 SEARCH_SPACE_TYPE_COMMON = 1,
306 SEARCH_SPACE_TYPE_UE_SPECIFIC
311 SCH_QOS_NON_DYNAMIC = 1,
317 AGGREGATION_LEVEL_N0,
318 AGGREGATION_LEVEL_N1,
319 AGGREGATION_LEVEL_N2,
320 AGGREGATION_LEVEL_N3,
321 AGGREGATION_LEVEL_N4,
322 AGGREGATION_LEVEL_N5,
323 AGGREGATION_LEVEL_N6,
335 CODE_WORDS_SCHED_BY_DCI_N1,
336 CODE_WORDS_SCHED_BY_DCI_N2
337 }SchCodeWordsSchedByDci;
341 STATIC_BUNDLING_TYPE = 1,
342 DYNAMIC_BUNDLING_TYPE
348 SCH_SET1_SIZE_WIDEBAND,
349 SCH_SET1_SIZE_N2_WIDEBAND,
350 SCH_SET1_SIZE_N4_WIDEBAND
351 }SchBundlingSizeSet1;
356 SCH_SET2_SIZE_WIDEBAND
357 }SchBundlingSizeSet2;
399 SCH_MCS_TABLE_QAM_64,
400 SCH_MCS_TABLE_QAM_256,
401 SCH_MCS_TABLE_QAM_64_LOW_SE
405 typedef struct timeDomainAlloc
411 typedef struct freqDomainAlloc
420 uint32_t ssbPbchPwr; /* SSB block power */
421 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
422 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
423 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
424 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
425 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
428 typedef struct bwpCfg
430 uint8_t subcarrierSpacing;
431 uint8_t cyclicPrefix;
432 FreqDomainAlloc freqAlloc;
438 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
441 typedef struct beamformingInfo
445 uint8_t digBfInterfaces;
446 Prg prg[MAX_NUM_PRG];
449 /* SIB1 PDSCH structures */
451 typedef struct codewordinfo
453 uint16_t targetCodeRate;
461 typedef struct dmrsInfo
463 uint16_t dlDmrsSymbPos;
464 uint8_t dmrsConfigType;
465 uint16_t dlDmrsScramblingId;
467 uint8_t numDmrsCdmGrpsNoData;
470 uint8_t nrOfDmrsSymbols;
474 typedef struct pdschFreqAlloc
476 uint8_t resourceAllocType;
477 /* since we are using type-1, rbBitmap excluded */
478 FreqDomainAlloc freqAlloc;
479 uint8_t vrbPrbMapping;
482 typedef struct pdschTimeAlloc
485 TimeDomainAlloc timeAlloc;
488 typedef struct txPowerPdschInfo
490 uint8_t powerControlOffset;
491 uint8_t powerControlOffsetSS;
494 typedef struct pdschCfg
499 uint8_t numCodewords;
500 CodewordInfo codeword[MAX_CODEWORDS];
501 uint16_t dataScramblingId;
503 uint8_t transmissionScheme;
506 PdschFreqAlloc pdschFreqAlloc;
507 PdschTimeAlloc pdschTimeAlloc;
508 BeamformingInfo beamPdschInfo;
509 TxPowerPdschInfo txPdschPower;
511 /* SIB1 PDSCH structures end */
513 /* SIB1 interface structure */
515 typedef struct coresetCfg
518 uint8_t startSymbolIndex;
519 uint8_t durationSymbols;
520 uint8_t freqDomainResource[6];
521 uint8_t cceRegMappingType;
522 uint8_t regBundleSize;
523 uint8_t interleaverSize;
526 uint8_t precoderGranularity;
528 uint8_t aggregationLevel;
531 typedef struct txPowerPdcchInfo
534 uint8_t powerControlOffsetSS;
540 uint16_t scramblingId;
541 uint16_t scramblingRnti;
544 BeamformingInfo beamPdcchInfo;
545 TxPowerPdcchInfo txPdcchPower;
549 typedef struct pdcchCfg
551 /* coreset-0 configuration */
552 CoresetCfg coresetCfg;
555 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
557 /* end of SIB1 PDCCH structures */
561 /* parameters recieved from DU-APP */
563 uint16_t sib1RepetitionPeriod;
564 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
565 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
568 /* parameters derived in scheduler */
571 PdcchCfg sib1PdcchCfg;
572 PdschCfg sib1PdschCfg;
575 typedef struct schRachCfg
577 uint8_t prachCfgIdx; /* PRACH config idx */
578 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
579 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
580 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
581 uint8_t rootSeqLen; /* root sequence length */
582 uint16_t rootSeqIdx; /* Root sequence index */
583 uint8_t numRootSeq; /* Number of root sequences required for FD */
584 uint16_t k1; /* Frequency Offset for each FD */
585 uint8_t ssbPerRach; /* SSB per RACH occassion */
586 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
587 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
588 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
589 uint8_t raRspWindow; /* RA Response Window */
592 typedef struct schBwpParams
594 FreqDomainAlloc freqAlloc;
596 uint8_t cyclicPrefix;
599 typedef struct schCandidatesInfo
608 typedef struct schSearchSpaceCfg
610 uint8_t searchSpaceId;
612 uint16_t monitoringSlot;
614 uint16_t monitoringSymbol;
615 SchCandidatesInfo candidate;
618 typedef struct schPdcchCfgCmn
620 SchSearchSpaceCfg commonSearchSpace;
621 uint8_t raSearchSpaceId;
624 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
629 uint8_t lengthSymbol;
630 }SchPdschCfgCmnTimeDomRsrcAlloc;
632 typedef struct schPdschCfgCmn
634 uint8_t numTimeDomAlloc;
635 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
638 typedef struct schPucchCfgCmn
640 uint8_t pucchResourceCommon;
641 uint8_t pucchGroupHopping;
644 /* PUSCH Time Domain Resource Allocation */
645 typedef struct schPuschTimeDomRsrcAlloc
648 SchTimeDomRsrcAllocMappingType mappingType;
650 uint8_t symbolLength;
651 }SchPuschTimeDomRsrcAlloc;
653 typedef struct schPuschCfgCmn
655 uint8_t numTimeDomRsrcAlloc;
656 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
659 typedef struct schK1TimingInfo
662 uint8_t k1Indexes[MAX_NUM_K1_IDX];
665 typedef struct schK0TimingInfo
668 SchK1TimingInfo k1TimingInfo;
671 typedef struct schK0K1TimingInfo
674 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
677 typedef struct schK0K1TimingInfoTbl
680 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
681 }SchK0K1TimingInfoTbl;
683 typedef struct schBwpDlCfg
686 SchPdcchCfgCmn pdcchCommon;
687 SchPdschCfgCmn pdschCommon;
688 SchK0K1TimingInfoTbl k0K1InfoTbl;
691 typedef struct schK2TimingInfo
694 uint8_t k2Indexes[MAX_NUM_K2_IDX];
697 typedef struct schK2TimingInfoTbl
700 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
703 typedef struct schBwpUlCfg
706 SchPucchCfgCmn pucchCommon;
707 SchPuschCfgCmn puschCommon;
708 SchK2TimingInfoTbl k2InfoTbl;
711 typedef struct schCellCfg
713 uint16_t cellId; /* Cell Id */
714 uint16_t phyCellId; /* Physical cell id */
715 uint8_t numerology; /* Supported numerology */
716 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
717 uint8_t bandwidth; /* Supported B/W */
718 uint32_t dlFreq; /* DL Frequency */
719 uint32_t ulFreq; /* UL Frequency */
720 SchSsbCfg ssbSchCfg; /* SSB config */
721 SchSib1Cfg sib1SchCfg; /* SIB1 config */
722 SchRachCfg schRachCfg; /* PRACH config */
723 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
724 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
726 TDDCfg tddCfg; /* TDD Cfg */
730 typedef struct schCellCfgCfm
732 uint16_t cellId; /* Cell Id */
736 typedef struct ssbInfo
738 uint8_t ssbIdx; /* SSB Index */
739 TimeDomainAlloc tdAlloc; /* Time domain allocation */
740 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
743 typedef struct sib1AllocInfo
746 PdcchCfg sib1PdcchCfg;
747 PdschCfg sib1PdschCfg;
750 typedef struct prachSchInfo
752 uint8_t numPrachOcas; /* Num Prach Ocassions */
753 uint8_t prachFormat; /* PRACH Format */
754 uint8_t numRa; /* Freq domain ocassion */
755 uint8_t prachStartSymb; /* Freq domain ocassion */
758 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
759 typedef struct dlBrdcstAlloc
761 /* Ssb transmission is determined as follows:
762 * 0 : No tranamission
763 * 1 : SSB Transmission
764 * 2 : SSB Repetition */
766 uint8_t ssbIdxSupported;
767 SsbInfo ssbInfo[MAX_SSB_IDX];
768 /* Sib1 transmission is determined as follows:
769 * 0 : No tranamission
770 * 1 : SIB1 Transmission
771 * 2 : SIB1 Repetition */
773 Sib1AllocInfo sib1Alloc;
776 typedef struct msg3UlGrant
780 FreqDomainAlloc msg3FreqAlloc;
787 typedef struct rarInfo
794 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
798 typedef struct rarAlloc
802 PdcchCfg rarPdcchCfg;
803 PdschCfg rarPdschCfg;
806 typedef struct dlMsgInfo
814 uint8_t harqFeedbackInd;
817 uint16_t dlMsgPduLen;
821 typedef struct lcSchInfo
824 uint32_t schBytes; /* Number of scheduled bytes */
827 typedef struct dlMsgAlloc
831 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
833 PdcchCfg dlMsgPdcchCfg;
834 PdschCfg dlMsgPdschCfg;
838 typedef struct schSlotValue
840 SlotTimingInfo currentTime;
841 SlotTimingInfo broadcastTime;
842 SlotTimingInfo rarTime;
843 SlotTimingInfo dlMsgTime;
844 SlotTimingInfo ulDciTime;
847 typedef struct format0_0
849 uint8_t resourceAllocType;
850 /* since we are using type-1, hence rbBitmap excluded */
851 FreqDomainAlloc freqAlloc;
852 TimeDomainAlloc timeAlloc;
855 uint8_t harqProcId; /* HARQ Process ID */
858 uint8_t ndi; /* NDI */
859 uint8_t rv; /* Redundancy Version */
864 typedef struct format0_1
870 typedef struct format1_0
876 typedef struct format1_1
881 typedef struct dciInfo
884 uint16_t crnti; /* CRNI */
885 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
886 BwpCfg bwpCfg; /* BWP Cfg */
887 CoresetCfg coresetCfg; /* Coreset1 Cfg */
888 FormatType formatType; /* DCI Format */
891 Format0_0 format0_0; /* Format 0_0 */
892 Format0_1 format0_1; /* Format 0_1 */
893 Format1_0 format1_0; /* Format 1_0 */
894 Format1_1 format1_1; /* Format 1_1 */
900 typedef struct dlSchedInfo
902 uint16_t cellId; /* Cell Id */
903 SchSlotValue schSlotValue;
905 /* Allocation for broadcast messages */
906 bool isBroadcastPres;
907 DlBrdcstAlloc brdcstAlloc;
909 /* Allocation for RAR message */
913 /* Allocation from MSG4 */
914 //Msg4Alloc *msg4Alloc;
916 /* UL grant in response to BSR */
919 /* Allocation from dedicated DL msg */
920 DlMsgAlloc *dlMsgAlloc;
924 typedef struct tbInfo
926 uint8_t qamOrder; /* Modulation Order */
927 uint8_t mcs; /* MCS */
928 SchMcsTable mcsTable; /* MCS Table */
929 uint8_t ndi; /* NDI */
930 uint8_t rv; /* Redundancy Version */
931 uint16_t tbSize; /* TB Size */
934 typedef struct schPuschInfo
937 uint8_t harqProcId; /* HARQ Process ID */
938 uint8_t resAllocType; /* Resource allocation type */
939 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
940 TimeDomainAlloc tdAlloc; /* Time domain allocation */
941 TbInfo tbInfo; /* TB info */
942 uint8_t dmrsMappingType;
943 uint8_t nrOfDmrsSymbols;
947 typedef struct schPucchFormatCfg
949 uint8_t interSlotFreqHop;
957 typedef struct schPucchInfo
961 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
962 TimeDomainAlloc tdAlloc; /* Time domain allocation */
968 uint8_t intraFreqHop;
969 uint16_t secondPrbHop;
970 uint8_t initialCyclicShift;
974 SchPucchFormatCfg cmnFormatCfg;
977 typedef struct ulSchedInfo
979 uint16_t cellId; /* Cell Id */
980 uint16_t crnti; /* CRNI */
981 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
982 uint8_t dataType; /* Type of info being scheduled */
983 PrachSchInfo prachSchInfo; /* Prach scheduling info */
984 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
985 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
988 typedef struct rachIndInfo
992 SlotTimingInfo timingInfo;
1001 typedef struct crcIndInfo
1005 SlotTimingInfo timingInfo;
1007 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1010 typedef struct boInfo
1013 uint32_t dataVolume;
1016 typedef struct dlRlcBOInfo
1021 uint32_t dataVolume;
1024 /* Info of Scheduling Request to Add/Modify */
1025 typedef struct schSchedReqInfo
1028 SchSrProhibitTimer srProhibitTmr;
1029 SchSrTransMax srTransMax;
1032 /* Scheduling Request Configuration */
1033 typedef struct schSchedReqCfg
1035 uint8_t addModListCount;
1036 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1037 uint8_t relListCount;
1038 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1041 /* Info of Tag to Add/Modify */
1042 typedef struct schTagInfo
1045 SchTimeAlignmentTimer timeAlignmentTmr;
1048 /* Timing Advance Group Configuration */
1049 typedef struct schTagCfg
1051 uint8_t addModListCount;
1052 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1053 uint8_t relListCount;
1054 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1057 /* Configuration for Power headroom reporting */
1058 typedef struct schPhrCfg
1060 SchPhrPeriodicTimer periodicTmr;
1061 SchPhrProhibitTimer prohibitTmr;
1062 SchPhrTxPwrFactorChange txpowerFactorChange;
1065 bool type2OtherCell;
1066 SchPhrModeOtherCG modeOtherCG;
1069 /* MAC cell Group configuration */
1070 typedef struct schMacCellGrpCfg
1072 SchSchedReqCfg schedReqCfg;
1074 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1077 /* Physical Cell Group Configuration */
1078 typedef struct schPhyCellGrpCfg
1080 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1084 /* Control resource set info */
1085 typedef struct schControlRsrcSet
1087 uint8_t cRSetId; /* Control resource set id */
1088 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1090 SchREGMappingType cceRegMappingType;
1091 SchPrecoderGranul precoderGranularity;
1092 uint16_t dmrsScramblingId;
1095 /* Search Space info */
1096 typedef struct schSearchSpace
1098 uint8_t searchSpaceId;
1100 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1101 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1102 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1103 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1104 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1105 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1106 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1107 SchSearchSpaceType searchSpaceType;
1108 uint8_t ueSpecificDciFormat;
1111 /* PDCCH cofniguration */
1112 typedef struct schPdcchConfig
1114 uint8_t numCRsetToAddMod;
1115 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1116 uint8_t numCRsetToRel;
1117 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1118 uint8_t numSearchSpcToAddMod;
1119 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1120 uint8_t numSearchSpcToRel;
1121 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1124 /* PDSCH time domain resource allocation */
1125 typedef struct schPdschTimeDomRsrcAlloc
1128 SchTimeDomRsrcAllocMappingType mappingType;
1129 uint8_t startSymbol;
1130 uint8_t symbolLength;
1131 }SchPdschTimeDomRsrcAlloc;
1134 typedef struct schPdschBundling
1136 struct schStaticBundling
1138 SchBundlingSizeSet2 size;
1140 struct schDynamicBundling
1142 SchBundlingSizeSet1 sizeSet1;
1143 SchBundlingSizeSet2 sizeSet2;
1144 }SchDynamicBundling;
1147 /* DMRS downlink configuration */
1148 typedef struct schDmrsDlCfg
1150 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1153 /* PDSCH Configuration */
1154 typedef struct schPdschConfig
1156 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1157 SchResourceAllocType resourceAllocType;
1158 uint8_t numTimeDomRsrcAlloc;
1159 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1161 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1162 SchBundlingType bundlingType;
1163 SchPdschBundling bundlingInfo;
1166 /* Initial Downlink BWP */
1167 typedef struct schInitalDlBwp
1170 SchPdcchConfig pdcchCfg;
1172 SchPdschConfig pdschCfg;
1173 SchK0K1TimingInfoTbl k0K1InfoTbl;
1176 /* BWP Downlink common */
1177 typedef struct schBwpDlCommon
1181 /* Downlink BWP information */
1182 typedef struct schDlBwpInfo
1187 /* PDCCH Serving Cell configuration */
1188 typedef struct schPdschServCellCfg
1190 uint8_t *maxMimoLayers;
1191 SchNumHarqProcForPdsch numHarqProcForPdsch;
1192 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1193 bool *codeBlkGrpFlushInd;
1194 SchPdschXOverhead *xOverhead;
1195 }SchPdschServCellCfg;
1197 /* PUCCH Configuration */
1198 typedef struct schPucchResrcSetInfo
1201 uint8_t resrcListCount;
1202 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1203 uint8_t maxPayLoadSize;
1204 }SchPucchResrcSetInfo;
1206 typedef struct schPucchResrcSetCfg
1208 uint8_t resrcSetToAddModListCount;
1209 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1210 uint8_t resrcSetToRelListCount;
1211 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1212 }SchPucchResrcSetCfg;
1214 typedef struct schPucchFormat0
1216 uint8_t initialCyclicShift;
1218 uint8_t startSymbolIdx;
1221 typedef struct schPucchFormat1
1223 uint8_t initialCyclicShift;
1225 uint8_t startSymbolIdx;
1229 typedef struct schPucchFormat2_3
1233 uint8_t startSymbolIdx;
1236 typedef struct schPucchFormat4
1241 uint8_t startSymbolIdx;
1244 typedef struct schPucchResrcInfo
1248 uint8_t intraFreqHop;
1249 uint16_t secondPrbHop;
1250 uint8_t pucchFormat;
1252 SchPucchFormat0 *format0;
1253 SchPucchFormat1 *format1;
1254 SchPucchFormat2_3 *format2;
1255 SchPucchFormat2_3 *format3;
1256 SchPucchFormat4 *format4;
1260 typedef struct schPucchResrcCfg
1262 uint8_t resrcToAddModListCount;
1263 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1264 uint8_t resrcToRelListCount;
1265 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1269 typedef struct schSchedReqResrcInfo
1273 uint8_t periodicity;
1276 }SchSchedReqResrcInfo;
1278 typedef struct schPucchSchedReqCfg
1280 uint8_t schedAddModListCount;
1281 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1282 uint8_t schedRelListCount;
1283 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1284 }SchPucchSchedReqCfg;
1286 typedef struct schSpatialRelationInfo
1288 uint8_t spatialRelationId;
1289 uint8_t servCellIdx;
1290 uint8_t pathLossRefRSId;
1292 uint8_t closeLoopIdx;
1293 }SchSpatialRelationInfo;
1295 typedef struct schPucchSpatialCfg
1297 uint8_t spatialAddModListCount;
1298 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1299 uint8_t spatialRelListCount;
1300 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1301 }SchPucchSpatialCfg;
1303 typedef struct schP0PucchCfg
1309 typedef struct schPathLossRefRSCfg
1311 uint8_t pathLossRefRSId;
1312 }SchPathLossRefRSCfg;
1314 typedef struct schPucchMultiCsiCfg
1316 uint8_t multiCsiResrcListCount;
1317 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1318 }SchPucchMultiCsiCfg;
1320 typedef struct schPucchDlDataToUlAck
1322 uint8_t dlDataToUlAckListCount;
1323 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1324 }SchPucchDlDataToUlAck;
1326 typedef struct schPucchPowerControl
1334 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1335 uint8_t pathLossRefRSListCount;
1336 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1337 }SchPucchPowerControl;
1339 typedef struct schPucchCfg
1341 SchPucchResrcSetCfg *resrcSet;
1342 SchPucchResrcCfg *resrc;
1343 SchPucchFormatCfg *format1;
1344 SchPucchFormatCfg *format2;
1345 SchPucchFormatCfg *format3;
1346 SchPucchFormatCfg *format4;
1347 SchPucchSchedReqCfg *schedReq;
1348 SchPucchMultiCsiCfg *multiCsiCfg;
1349 SchPucchSpatialCfg *spatialInfo;
1350 SchPucchDlDataToUlAck *dlDataToUlAck;
1351 SchPucchPowerControl *powerControl;
1354 /* Transform precoding disabled */
1355 typedef struct schTransPrecodDisabled
1357 uint16_t scramblingId0;
1358 }SchTransPrecodDisabled;
1360 /* DMRS Uplink configuration */
1361 typedef struct SchDmrsUlCfg
1363 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1364 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1367 /* PUSCH Configuration */
1368 typedef struct schPuschCfg
1370 uint8_t dataScramblingId;
1371 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1372 SchResourceAllocType resourceAllocType;
1373 uint8_t numTimeDomRsrcAlloc;
1374 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1375 SchTransformPrecoder transformPrecoder;
1378 /* Initial Uplink BWP */
1379 typedef struct schInitialUlBwp
1382 SchPucchCfg pucchCfg;
1384 SchPuschCfg puschCfg;
1385 SchK2TimingInfoTbl k2InfoTbl;
1388 /* Uplink BWP information */
1389 typedef struct schUlBwpInfo
1394 /* Serving cell configuration */
1395 typedef struct schServCellCfgInfo
1397 SchInitalDlBwp initDlBwp;
1398 uint8_t numDlBwpToAdd;
1399 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1400 uint8_t firstActvDlBwpId;
1401 uint8_t defaultDlBwpId;
1402 uint8_t *bwpInactivityTmr;
1403 SchPdschServCellCfg pdschServCellCfg;
1404 SchInitialUlBwp initUlBwp;
1405 uint8_t numUlBwpToAdd;
1406 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1407 uint8_t firstActvUlBwpId;
1408 }SchServCellCfgInfo;
1410 typedef struct schNonDynFiveQi
1415 uint16_t maxDataBurstVol;
1418 typedef struct schDynFiveQi
1421 uint16_t packetDelayBudget;
1422 uint8_t packetErrRateScalar;
1423 uint8_t packetErrRateExp;
1425 uint8_t delayCritical;
1427 uint16_t maxDataBurstVol;
1430 typedef struct schNgRanAllocAndRetPri
1432 uint8_t priorityLevel;
1433 uint8_t preEmptionCap;
1434 uint8_t preEmptionVul;
1435 }SchNgRanAllocAndRetPri;
1437 typedef struct schGrbQosFlowInfo
1439 uint32_t maxFlowBitRateDl;
1440 uint32_t maxFlowBitRateUl;
1441 uint32_t guarFlowBitRateDl;
1442 uint32_t guarFlowBitRateUl;
1446 typedef struct schDrbQos
1448 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1451 SchNonDynFiveQi nonDyn5Qi;
1452 SchDynFiveQi dyn5Qi;
1454 SchNgRanAllocAndRetPri ngRanRetPri;
1455 SchGrbQosFlowInfo grbQosFlowInfo;
1456 uint16_t pduSessionId;
1457 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1460 typedef struct schSnssai
1463 uint8_t sd[SD_SIZE];
1466 /* Special cell configuration */
1467 typedef struct schSpCellCfg
1469 uint8_t servCellIdx;
1470 SchServCellCfgInfo servCellCfg;
1473 /* Uplink logical channel configuration */
1474 typedef struct SchUlLcCfg
1479 uint8_t pbr; // prioritisedBitRate
1480 uint8_t bsd; // bucketSizeDuration
1483 /* Downlink logical channel configuration */
1484 typedef struct schDlLcCfg
1486 uint8_t lcp; // logical Channel Prioritization
1489 /* Logical Channel configuration */
1490 typedef struct schLcCfg
1492 ConfigType configType;
1494 SchDrbQosInfo *drbQos;
1500 /* Aggregate max bit rate */
1501 typedef struct schAmbrCfg
1503 uint32_t ulBr; /* Ul BitRate */
1506 typedef struct schModulationInfo
1510 SchMcsTable mcsTable;
1513 /* UE configuration */
1514 typedef struct schUeCfg
1518 bool macCellGrpCfgPres;
1519 SchMacCellGrpCfg macCellGrpCfg;
1520 bool phyCellGrpCfgPres;
1521 SchPhyCellGrpCfg phyCellGrpCfg;
1523 SchSpCellCfg spCellCfg;
1524 SchAmbrCfg *ambrCfg;
1525 SchModulationInfo dlModInfo;
1526 SchModulationInfo ulModInfo;
1528 SchLcCfg schLcCfg[MAX_NUM_LC];
1531 typedef struct schUeCfgRsp
1537 SchFailureCause cause;
1540 typedef struct schUeDelete
1546 typedef struct schUeDeleteRsp
1554 typedef struct schCellDelete
1560 typedef struct schCellDeleteRsp
1566 typedef struct dataVolInfo
1572 typedef struct ulBufferStatusRptInd
1578 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1579 }UlBufferStatusRptInd;
1581 typedef struct srUciIndInfo
1585 SlotTimingInfo slotInd;
1587 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1590 /* function pointers */
1592 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1593 Pst *pst, /* Post Structure */
1594 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1597 typedef uint8_t (*SchCellCfgFunc) ARGS((
1598 Pst *pst, /* Post Structure */
1599 SchCellCfg *schCellCfg /* Cell Cfg */
1602 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1603 Pst *pst, /* Post Structure */
1604 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1607 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1608 Pst *pst, /* Post Structure */
1609 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1612 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1613 Pst *pst, /* Post structure */
1614 RachIndInfo *rachInd)); /* Rach Indication Info */
1616 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1617 Pst *pst, /* Post structure */
1618 CrcIndInfo *crcInd)); /* CRC Info */
1620 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1621 Pst *pst, /* Post structure */
1622 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1624 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1625 Pst *pst, /* Post structure */
1626 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1628 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1629 Pst *pst, /* Post structure */
1630 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1632 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1633 Pst *pst, /* Post structure */
1634 SlotTimingInfo *slotInd)); /* Slot Info */
1636 typedef uint8_t (*MacSchBsrFunc) ARGS((
1638 UlBufferStatusRptInd *bsrInd
1641 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1642 Pst *pst, /* Post structure */
1643 SrUciIndInfo *uciInd)); /* UCI IND Info */
1645 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1646 Pst *pst, /* Post structure */
1647 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1649 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1650 Pst *pst, /* Post structure */
1651 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1653 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1654 Pst *pst, /* Post structure */
1655 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1657 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1658 Pst *pst, /* Post structure */
1659 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1661 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1662 Pst *pst, /* Post structure */
1663 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1665 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1666 Pst *pst, /* Post structure */
1667 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1669 /* function declarations */
1670 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1671 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1672 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1673 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1674 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1675 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1676 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1677 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1678 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1679 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1680 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1681 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1682 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1683 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1684 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1685 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1686 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1687 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1688 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1689 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1690 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1691 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1692 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1693 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1694 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1695 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1696 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1697 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1698 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1699 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1700 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1701 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1702 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1703 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1704 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1705 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1706 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1707 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1708 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1709 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1711 /**********************************************************************
1713 **********************************************************************/