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
41 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
42 #define SCH_SSB_MASK_SIZE 1
44 #define MAX_NUM_PRG 1 /* max value should be later 275 */
45 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
46 #define MAX_CODEWORDS 1 /* max should be 2 */
47 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
48 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
50 /* Datatype in UL SCH Info */
51 #define SCH_DATATYPE_PUSCH 1
52 #define SCH_DATATYPE_PUSCH_UCI 2
53 #define SCH_DATATYPE_UCI 4
54 #define SCH_DATATYPE_SRS 8
55 #define SCH_DATATYPE_PRACH 16
57 #define MAX_NUMBER_OF_CRC_IND_BITS 1
58 #define MAX_NUMBER_OF_UCI_IND_BITS 1
59 #define MAX_SR_BITS_IN_BYTES 1
60 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
61 /* can we have a common numslot numscs between mac sch */
68 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
69 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
70 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
71 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
72 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
73 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
74 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
75 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
76 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
78 /* PUCCH Configuration Macro */
79 #define MAX_NUM_PUCCH_RESRC 128
80 #define MAX_NUM_PUCCH_RESRC_SET 4
81 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
82 #define MAX_NUM_SPATIAL_RELATIONS 8
83 #define MAX_NUM_PUCCH_P0_PER_SET 8
84 #define MAX_NUM_PATH_LOSS_REF_RS 4
85 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
87 #define QPSK_MODULATION 2
89 #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 */
90 #define TX_PAYLOAD_HDR_LEN 32 /* Intel L1 requires adding a 32 byte header to transmitted payload */
92 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
93 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
94 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
95 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
96 #define MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
97 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
98 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
99 #define DEFAULT_K2_VALUE_FOR_SCS15 1
100 #define DEFAULT_K2_VALUE_FOR_SCS30 1
101 #define DEFAULT_K2_VALUE_FOR_SCS60 2
102 #define DEFAULT_K2_VALUE_FOR_SCS120 3
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; \
132 RESOURCE_UNAVAILABLE,
169 TIME_ALIGNMENT_TIMER_MS500,
170 TIME_ALIGNMENT_TIMER_MS750,
171 TIME_ALIGNMENT_TIMER_MS1280,
172 TIME_ALIGNMENT_TIMER_MS1920,
173 TIME_ALIGNMENT_TIMER_MS2560,
174 TIME_ALIGNMENT_TIMER_MS5120,
175 TIME_ALIGNMENT_TIMER_MS10240,
176 TIME_ALIGNMENT_TIMER_INFINITE
177 }SchTimeAlignmentTimer;
181 PHR_PERIODIC_TIMER_SF10,
182 PHR_PERIODIC_TIMER_SF20,
183 PHR_PERIODIC_TIMER_SF50,
184 PHR_PERIODIC_TIMER_SF100,
185 PHR_PERIODIC_TIMER_SF200,
186 PHR_PERIODIC_TIMER_SF500,
187 PHR_PERIODIC_TIMER_SF1000,
188 PHR_PERIODIC_TIMER_INFINITE
189 }SchPhrPeriodicTimer;
193 PHR_PROHIBIT_TIMER_SF0,
194 PHR_PROHIBIT_TIMER_SF10,
195 PHR_PROHIBIT_TIMER_SF20,
196 PHR_PROHIBIT_TIMER_SF50,
197 PHR_PROHIBIT_TIMER_SF100,
198 PHR_PROHIBIT_TIMER_SF200,
199 PHR_PROHIBIT_TIMER_SF500,
200 PHR_PROHIBIT_TIMER_SF1000
201 }SchPhrProhibitTimer;
205 PHR_TX_PWR_FACTOR_CHANGE_DB1,
206 PHR_TX_PWR_FACTOR_CHANGE_DB3,
207 PHR_TX_PWR_FACTOR_CHANGE_DB6,
208 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
209 }SchPhrTxPwrFactorChange;
219 HARQ_ACK_CODEBOOK_SEMISTATIC,
220 HARQ_ACK_CODEBOOK_DYNAMIC
221 }SchPdschHarqAckCodebook;
225 NUM_HARQ_PROC_FOR_PDSCH_N2,
226 NUM_HARQ_PROC_FOR_PDSCH_N4,
227 NUM_HARQ_PROC_FOR_PDSCH_N6,
228 NUM_HARQ_PROC_FOR_PDSCH_N10,
229 NUM_HARQ_PROC_FOR_PDSCH_N16
230 }SchNumHarqProcForPdsch;
234 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
235 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
236 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
237 MAX_CODE_BLOCK_GROUP_PER_TB_N8
238 }SchMaxCodeBlkGrpPerTB;
242 PDSCH_X_OVERHEAD_XOH_6,
243 PDSCH_X_OVERHEAD_XOH_12,
244 PDSCH_X_OVERHEAD_XOH_18
249 DMRS_ADDITIONAL_POS0,
250 DMRS_ADDITIONAL_POS1,
252 }SchDmrsAdditionPosition;
256 RESOURCE_ALLOCTION_TYPE_0,
257 RESOURCE_ALLOCTION_TYPE_1,
258 RESOURCE_ALLOCTION_DYN_SWITCH
259 }SchResourceAllocType;
263 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
264 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
265 }SchTimeDomRsrcAllocMappingType;
269 ENABLED_TRANSFORM_PRECODER,
270 DISABLED_TRANSFORM_PRECODER
271 }SchTransformPrecoder;
275 INTERLEAVED_CCE_REG_MAPPING = 1,
276 NONINTERLEAVED_CCE_REG_MAPPING
281 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
282 SLOT_PERIODICITY_AND_OFFSET_SL_2,
283 SLOT_PERIODICITY_AND_OFFSET_SL_4,
284 SLOT_PERIODICITY_AND_OFFSET_SL_5,
285 SLOT_PERIODICITY_AND_OFFSET_SL_8,
286 SLOT_PERIODICITY_AND_OFFSET_SL_10,
287 SLOT_PERIODICITY_AND_OFFSET_SL_16,
288 SLOT_PERIODICITY_AND_OFFSET_SL_20,
289 SLOT_PERIODICITY_AND_OFFSET_SL_40,
290 SLOT_PERIODICITY_AND_OFFSET_SL_80,
291 SLOT_PERIODICITY_AND_OFFSET_SL_160,
292 SLOT_PERIODICITY_AND_OFFSET_SL_320,
293 SLOT_PERIODICITY_AND_OFFSET_SL_640,
294 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
295 SLOT_PERIODICITY_AND_OFFSET_SL_2560
296 }SchMSlotPeriodAndOffset;
306 SEARCH_SPACE_TYPE_COMMON = 1,
307 SEARCH_SPACE_TYPE_UE_SPECIFIC
312 SCH_QOS_NON_DYNAMIC = 1,
318 AGGREGATION_LEVEL_N0,
319 AGGREGATION_LEVEL_N1,
320 AGGREGATION_LEVEL_N2,
321 AGGREGATION_LEVEL_N3,
322 AGGREGATION_LEVEL_N4,
323 AGGREGATION_LEVEL_N5,
324 AGGREGATION_LEVEL_N6,
336 CODE_WORDS_SCHED_BY_DCI_N1,
337 CODE_WORDS_SCHED_BY_DCI_N2
338 }SchCodeWordsSchedByDci;
342 STATIC_BUNDLING_TYPE = 1,
343 DYNAMIC_BUNDLING_TYPE
349 SCH_SET1_SIZE_WIDEBAND,
350 SCH_SET1_SIZE_N2_WIDEBAND,
351 SCH_SET1_SIZE_N4_WIDEBAND
352 }SchBundlingSizeSet1;
357 SCH_SET2_SIZE_WIDEBAND
358 }SchBundlingSizeSet2;
400 SCH_MCS_TABLE_QAM_64,
401 SCH_MCS_TABLE_QAM_256,
402 SCH_MCS_TABLE_QAM_64_LOW_SE
413 typedef struct timeDomainAlloc
419 typedef struct freqDomainAlloc
428 uint32_t ssbPbchPwr; /* SSB block power */
429 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
430 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
431 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
432 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
433 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
436 typedef struct bwpCfg
438 uint8_t subcarrierSpacing;
439 uint8_t cyclicPrefix;
440 FreqDomainAlloc freqAlloc;
446 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
449 typedef struct beamformingInfo
453 uint8_t digBfInterfaces;
454 Prg prg[MAX_NUM_PRG];
457 /* SIB1 PDSCH structures */
459 typedef struct codewordinfo
461 uint16_t targetCodeRate;
469 typedef struct dmrsInfo
471 uint16_t dlDmrsSymbPos;
472 uint8_t dmrsConfigType;
473 uint16_t dlDmrsScramblingId;
475 uint8_t numDmrsCdmGrpsNoData;
478 uint8_t nrOfDmrsSymbols;
482 typedef struct pdschFreqAlloc
484 uint8_t resourceAllocType;
485 /* since we are using type-1, rbBitmap excluded */
486 FreqDomainAlloc freqAlloc;
487 uint8_t vrbPrbMapping;
490 typedef struct pdschTimeAlloc
493 TimeDomainAlloc timeAlloc;
496 typedef struct txPowerPdschInfo
498 uint8_t powerControlOffset;
499 uint8_t powerControlOffsetSS;
502 typedef struct pdschCfg
507 uint8_t numCodewords;
508 CodewordInfo codeword[MAX_CODEWORDS];
509 uint16_t dataScramblingId;
511 uint8_t transmissionScheme;
514 PdschFreqAlloc pdschFreqAlloc;
515 PdschTimeAlloc pdschTimeAlloc;
516 BeamformingInfo beamPdschInfo;
517 TxPowerPdschInfo txPdschPower;
519 /* SIB1 PDSCH structures end */
521 /* SIB1 interface structure */
523 typedef struct coresetCfg
526 uint8_t startSymbolIndex;
527 uint8_t durationSymbols;
528 uint8_t freqDomainResource[6];
529 uint8_t cceRegMappingType;
530 uint8_t regBundleSize;
531 uint8_t interleaverSize;
534 uint8_t precoderGranularity;
536 uint8_t aggregationLevel;
539 typedef struct txPowerPdcchInfo
542 uint8_t powerControlOffsetSS;
548 uint16_t scramblingId;
549 uint16_t scramblingRnti;
552 BeamformingInfo beamPdcchInfo;
553 TxPowerPdcchInfo txPdcchPower;
557 typedef struct pdcchCfg
559 /* coreset-0 configuration */
560 CoresetCfg coresetCfg;
563 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
565 /* end of SIB1 PDCCH structures */
569 /* parameters recieved from DU-APP */
571 uint16_t sib1RepetitionPeriod;
572 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
573 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
576 /* parameters derived in scheduler */
579 PdcchCfg sib1PdcchCfg;
580 PdschCfg sib1PdschCfg;
583 typedef struct schRachCfg
585 uint8_t prachCfgIdx; /* PRACH config idx */
586 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
587 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
588 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
589 uint8_t rootSeqLen; /* root sequence length */
590 uint16_t rootSeqIdx; /* Root sequence index */
591 uint8_t numRootSeq; /* Number of root sequences required for FD */
592 uint16_t k1; /* Frequency Offset for each FD */
593 uint8_t ssbPerRach; /* SSB per RACH occassion */
594 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
595 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
596 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
597 uint8_t raRspWindow; /* RA Response Window */
600 typedef struct schBwpParams
602 FreqDomainAlloc freqAlloc;
604 uint8_t cyclicPrefix;
607 typedef struct schCandidatesInfo
616 typedef struct schSearchSpaceCfg
618 uint8_t searchSpaceId;
620 uint16_t monitoringSlot;
622 uint16_t monitoringSymbol;
623 SchCandidatesInfo candidate;
626 typedef struct schPdcchCfgCmn
628 SchSearchSpaceCfg commonSearchSpace;
629 uint8_t raSearchSpaceId;
632 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
637 uint8_t lengthSymbol;
638 }SchPdschCfgCmnTimeDomRsrcAlloc;
640 typedef struct schPdschCfgCmn
642 uint8_t numTimeDomAlloc;
643 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
646 typedef struct schPucchCfgCmn
648 uint8_t pucchResourceCommon;
649 uint8_t pucchGroupHopping;
652 /* PUSCH Time Domain Resource Allocation */
653 typedef struct schPuschTimeDomRsrcAlloc
656 SchTimeDomRsrcAllocMappingType mappingType;
658 uint8_t symbolLength;
659 }SchPuschTimeDomRsrcAlloc;
661 typedef struct schPuschCfgCmn
663 uint8_t numTimeDomRsrcAlloc;
664 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
667 typedef struct schK1TimingInfo
670 uint8_t k1Indexes[MAX_NUM_K1_IDX];
673 typedef struct schK0TimingInfo
676 SchK1TimingInfo k1TimingInfo;
679 typedef struct schK0K1TimingInfo
682 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
685 typedef struct schK0K1TimingInfoTbl
688 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
689 }SchK0K1TimingInfoTbl;
691 typedef struct schBwpDlCfg
694 SchPdcchCfgCmn pdcchCommon;
695 SchPdschCfgCmn pdschCommon;
696 SchK0K1TimingInfoTbl k0K1InfoTbl;
699 typedef struct schK2TimingInfo
702 uint8_t k2Indexes[MAX_NUM_K2_IDX];
705 typedef struct schK2TimingInfoTbl
708 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
711 typedef struct schBwpUlCfg
714 SchPucchCfgCmn pucchCommon;
715 SchPuschCfgCmn puschCommon;
716 SchK2TimingInfoTbl msg3K2InfoTbl;
717 SchK2TimingInfoTbl k2InfoTbl;
720 typedef struct schCellCfg
722 uint16_t cellId; /* Cell Id */
723 uint16_t phyCellId; /* Physical cell id */
724 uint8_t numerology; /* Supported numerology */
725 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
726 uint8_t bandwidth; /* Supported B/W */
727 uint32_t dlFreq; /* DL Frequency */
728 uint32_t ulFreq; /* UL Frequency */
729 SchSsbCfg ssbSchCfg; /* SSB config */
730 SchSib1Cfg sib1SchCfg; /* SIB1 config */
731 SchRachCfg schRachCfg; /* PRACH config */
732 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
733 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
735 TDDCfg tddCfg; /* TDD Cfg */
739 typedef struct schCellCfgCfm
741 uint16_t cellId; /* Cell Id */
745 typedef struct ssbInfo
747 uint8_t ssbIdx; /* SSB Index */
748 TimeDomainAlloc tdAlloc; /* Time domain allocation */
749 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
752 typedef struct sib1AllocInfo
755 PdcchCfg sib1PdcchCfg;
756 PdschCfg sib1PdschCfg;
759 typedef struct prachSchInfo
761 uint8_t numPrachOcas; /* Num Prach Ocassions */
762 uint8_t prachFormat; /* PRACH Format */
763 uint8_t numRa; /* Freq domain ocassion */
764 uint8_t prachStartSymb; /* Freq domain ocassion */
767 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
768 typedef struct dlBrdcstAlloc
770 /* Ssb transmission is determined as follows:
771 * 0 : No tranamission
772 * 1 : SSB Transmission
773 * 2 : SSB Repetition */
775 uint8_t ssbIdxSupported;
776 SsbInfo ssbInfo[MAX_SSB_IDX];
777 /* Sib1 transmission is determined as follows:
778 * 0 : No tranamission
779 * 1 : SIB1 Transmission
780 * 2 : SIB1 Repetition */
782 Sib1AllocInfo sib1Alloc;
785 typedef struct msg3UlGrant
789 FreqDomainAlloc msg3FreqAlloc;
796 typedef struct rarInfo
803 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
807 typedef struct rarAlloc
813 PdcchCfg rarPdcchCfg;
814 PdschCfg rarPdschCfg;
817 typedef struct dlMsgInfo
825 uint8_t harqFeedbackInd;
828 uint16_t dlMsgPduLen;
832 typedef struct lcSchInfo
835 uint32_t schBytes; /* Number of scheduled bytes */
838 typedef struct dlMsgAlloc
842 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
844 PdcchCfg dlMsgPdcchCfg;
845 PdschCfg dlMsgPdschCfg;
849 typedef struct schSlotValue
851 SlotTimingInfo currentTime;
852 SlotTimingInfo broadcastTime;
853 SlotTimingInfo rarTime;
854 SlotTimingInfo dlMsgTime;
855 SlotTimingInfo ulDciTime;
858 typedef struct format0_0
860 uint8_t resourceAllocType;
861 /* since we are using type-1, hence rbBitmap excluded */
862 FreqDomainAlloc freqAlloc;
863 TimeDomainAlloc timeAlloc;
866 uint8_t harqProcId; /* HARQ Process ID */
869 uint8_t ndi; /* NDI */
870 uint8_t rv; /* Redundancy Version */
875 typedef struct format0_1
881 typedef struct format1_0
887 typedef struct format1_1
892 typedef struct dciInfo
895 uint16_t crnti; /* CRNI */
896 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
897 BwpCfg bwpCfg; /* BWP Cfg */
898 CoresetCfg coresetCfg; /* Coreset1 Cfg */
899 FormatType formatType; /* DCI Format */
902 Format0_0 format0_0; /* Format 0_0 */
903 Format0_1 format0_1; /* Format 0_1 */
904 Format1_0 format1_0; /* Format 1_0 */
905 Format1_1 format1_1; /* Format 1_1 */
911 typedef struct dlSchedInfo
913 uint16_t cellId; /* Cell Id */
914 SchSlotValue schSlotValue;
916 /* Allocation for broadcast messages */
917 bool isBroadcastPres;
918 DlBrdcstAlloc brdcstAlloc;
920 /* Allocation for RAR message */
924 /* Allocation from MSG4 */
925 //Msg4Alloc *msg4Alloc;
927 /* UL grant in response to BSR */
930 /* Allocation from dedicated DL msg */
931 DlMsgAlloc *dlMsgAlloc;
935 typedef struct tbInfo
937 uint8_t qamOrder; /* Modulation Order */
938 uint8_t mcs; /* MCS */
939 SchMcsTable mcsTable; /* MCS Table */
940 uint8_t ndi; /* NDI */
941 uint8_t rv; /* Redundancy Version */
942 uint16_t tbSize; /* TB Size */
945 typedef struct schPuschInfo
948 uint8_t harqProcId; /* HARQ Process ID */
949 uint8_t resAllocType; /* Resource allocation type */
950 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
951 TimeDomainAlloc tdAlloc; /* Time domain allocation */
952 TbInfo tbInfo; /* TB info */
953 uint8_t dmrsMappingType;
954 uint8_t nrOfDmrsSymbols;
958 typedef struct schPucchFormatCfg
960 uint8_t interSlotFreqHop;
968 typedef struct schPucchInfo
972 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
973 TimeDomainAlloc tdAlloc; /* Time domain allocation */
979 uint8_t intraFreqHop;
980 uint16_t secondPrbHop;
981 uint8_t initialCyclicShift;
985 SchPucchFormatCfg cmnFormatCfg;
988 typedef struct ulSchedInfo
990 uint16_t cellId; /* Cell Id */
991 uint16_t crnti; /* CRNI */
992 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
993 uint8_t dataType; /* Type of info being scheduled */
994 PrachSchInfo prachSchInfo; /* Prach scheduling info */
995 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
996 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
999 typedef struct rachIndInfo
1003 SlotTimingInfo timingInfo;
1007 uint8_t preambleIdx;
1012 typedef struct crcIndInfo
1016 SlotTimingInfo timingInfo;
1018 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1021 typedef struct boInfo
1024 uint32_t dataVolume;
1027 typedef struct dlRlcBOInfo
1032 uint32_t dataVolume;
1035 /* Info of Scheduling Request to Add/Modify */
1036 typedef struct schSchedReqInfo
1039 SchSrProhibitTimer srProhibitTmr;
1040 SchSrTransMax srTransMax;
1043 /* Scheduling Request Configuration */
1044 typedef struct schSchedReqCfg
1046 uint8_t addModListCount;
1047 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1048 uint8_t relListCount;
1049 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1052 /* Info of Tag to Add/Modify */
1053 typedef struct schTagInfo
1056 SchTimeAlignmentTimer timeAlignmentTmr;
1059 /* Timing Advance Group Configuration */
1060 typedef struct schTagCfg
1062 uint8_t addModListCount;
1063 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1064 uint8_t relListCount;
1065 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1068 /* Configuration for Power headroom reporting */
1069 typedef struct schPhrCfg
1071 SchPhrPeriodicTimer periodicTmr;
1072 SchPhrProhibitTimer prohibitTmr;
1073 SchPhrTxPwrFactorChange txpowerFactorChange;
1076 bool type2OtherCell;
1077 SchPhrModeOtherCG modeOtherCG;
1080 /* MAC cell Group configuration */
1081 typedef struct schMacCellGrpCfg
1083 SchSchedReqCfg schedReqCfg;
1085 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1088 /* Physical Cell Group Configuration */
1089 typedef struct schPhyCellGrpCfg
1091 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1095 /* Control resource set info */
1096 typedef struct schControlRsrcSet
1098 uint8_t cRSetId; /* Control resource set id */
1099 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1101 SchREGMappingType cceRegMappingType;
1102 SchPrecoderGranul precoderGranularity;
1103 uint16_t dmrsScramblingId;
1106 /* Search Space info */
1107 typedef struct schSearchSpace
1109 uint8_t searchSpaceId;
1111 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1112 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1113 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1114 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1115 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1116 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1117 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1118 SchSearchSpaceType searchSpaceType;
1119 uint8_t ueSpecificDciFormat;
1122 /* PDCCH cofniguration */
1123 typedef struct schPdcchConfig
1125 uint8_t numCRsetToAddMod;
1126 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1127 uint8_t numCRsetToRel;
1128 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1129 uint8_t numSearchSpcToAddMod;
1130 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1131 uint8_t numSearchSpcToRel;
1132 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1135 /* PDSCH time domain resource allocation */
1136 typedef struct schPdschTimeDomRsrcAlloc
1139 SchTimeDomRsrcAllocMappingType mappingType;
1140 uint8_t startSymbol;
1141 uint8_t symbolLength;
1142 }SchPdschTimeDomRsrcAlloc;
1145 typedef struct schPdschBundling
1147 struct schStaticBundling
1149 SchBundlingSizeSet2 size;
1151 struct schDynamicBundling
1153 SchBundlingSizeSet1 sizeSet1;
1154 SchBundlingSizeSet2 sizeSet2;
1155 }SchDynamicBundling;
1158 /* DMRS downlink configuration */
1159 typedef struct schDmrsDlCfg
1161 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1164 /* PDSCH Configuration */
1165 typedef struct schPdschConfig
1167 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1168 SchResourceAllocType resourceAllocType;
1169 uint8_t numTimeDomRsrcAlloc;
1170 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1172 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1173 SchBundlingType bundlingType;
1174 SchPdschBundling bundlingInfo;
1177 /* Initial Downlink BWP */
1178 typedef struct schInitalDlBwp
1181 SchPdcchConfig pdcchCfg;
1183 SchPdschConfig pdschCfg;
1184 SchK0K1TimingInfoTbl k0K1InfoTbl;
1187 /* BWP Downlink common */
1188 typedef struct schBwpDlCommon
1192 /* Downlink BWP information */
1193 typedef struct schDlBwpInfo
1198 /* PDCCH Serving Cell configuration */
1199 typedef struct schPdschServCellCfg
1201 uint8_t *maxMimoLayers;
1202 SchNumHarqProcForPdsch numHarqProcForPdsch;
1203 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1204 bool *codeBlkGrpFlushInd;
1205 SchPdschXOverhead *xOverhead;
1206 }SchPdschServCellCfg;
1208 /* PUCCH Configuration */
1209 typedef struct schPucchResrcSetInfo
1212 uint8_t resrcListCount;
1213 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1214 uint8_t maxPayLoadSize;
1215 }SchPucchResrcSetInfo;
1217 typedef struct schPucchResrcSetCfg
1219 uint8_t resrcSetToAddModListCount;
1220 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1221 uint8_t resrcSetToRelListCount;
1222 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1223 }SchPucchResrcSetCfg;
1225 typedef struct schPucchFormat0
1227 uint8_t initialCyclicShift;
1229 uint8_t startSymbolIdx;
1232 typedef struct schPucchFormat1
1234 uint8_t initialCyclicShift;
1236 uint8_t startSymbolIdx;
1240 typedef struct schPucchFormat2_3
1244 uint8_t startSymbolIdx;
1247 typedef struct schPucchFormat4
1252 uint8_t startSymbolIdx;
1255 typedef struct schPucchResrcInfo
1259 uint8_t intraFreqHop;
1260 uint16_t secondPrbHop;
1261 uint8_t pucchFormat;
1263 SchPucchFormat0 *format0;
1264 SchPucchFormat1 *format1;
1265 SchPucchFormat2_3 *format2;
1266 SchPucchFormat2_3 *format3;
1267 SchPucchFormat4 *format4;
1271 typedef struct schPucchResrcCfg
1273 uint8_t resrcToAddModListCount;
1274 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1275 uint8_t resrcToRelListCount;
1276 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1280 typedef struct schSchedReqResrcInfo
1284 uint8_t periodicity;
1287 }SchSchedReqResrcInfo;
1289 typedef struct schPucchSchedReqCfg
1291 uint8_t schedAddModListCount;
1292 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1293 uint8_t schedRelListCount;
1294 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1295 }SchPucchSchedReqCfg;
1297 typedef struct schSpatialRelationInfo
1299 uint8_t spatialRelationId;
1300 uint8_t servCellIdx;
1301 uint8_t pathLossRefRSId;
1303 uint8_t closeLoopIdx;
1304 }SchSpatialRelationInfo;
1306 typedef struct schPucchSpatialCfg
1308 uint8_t spatialAddModListCount;
1309 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1310 uint8_t spatialRelListCount;
1311 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1312 }SchPucchSpatialCfg;
1314 typedef struct schP0PucchCfg
1320 typedef struct schPathLossRefRSCfg
1322 uint8_t pathLossRefRSId;
1323 }SchPathLossRefRSCfg;
1325 typedef struct schPucchMultiCsiCfg
1327 uint8_t multiCsiResrcListCount;
1328 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1329 }SchPucchMultiCsiCfg;
1331 typedef struct schPucchDlDataToUlAck
1333 uint8_t dlDataToUlAckListCount;
1334 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1335 }SchPucchDlDataToUlAck;
1337 typedef struct schPucchPowerControl
1345 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1346 uint8_t pathLossRefRSListCount;
1347 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1348 }SchPucchPowerControl;
1350 typedef struct schPucchCfg
1352 SchPucchResrcSetCfg *resrcSet;
1353 SchPucchResrcCfg *resrc;
1354 SchPucchFormatCfg *format1;
1355 SchPucchFormatCfg *format2;
1356 SchPucchFormatCfg *format3;
1357 SchPucchFormatCfg *format4;
1358 SchPucchSchedReqCfg *schedReq;
1359 SchPucchMultiCsiCfg *multiCsiCfg;
1360 SchPucchSpatialCfg *spatialInfo;
1361 SchPucchDlDataToUlAck *dlDataToUlAck;
1362 SchPucchPowerControl *powerControl;
1365 /* Transform precoding disabled */
1366 typedef struct schTransPrecodDisabled
1368 uint16_t scramblingId0;
1369 }SchTransPrecodDisabled;
1371 /* DMRS Uplink configuration */
1372 typedef struct SchDmrsUlCfg
1374 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1375 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1378 /* PUSCH Configuration */
1379 typedef struct schPuschCfg
1381 uint8_t dataScramblingId;
1382 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1383 SchResourceAllocType resourceAllocType;
1384 uint8_t numTimeDomRsrcAlloc;
1385 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1386 SchTransformPrecoder transformPrecoder;
1389 /* Initial Uplink BWP */
1390 typedef struct schInitialUlBwp
1393 SchPucchCfg pucchCfg;
1395 SchPuschCfg puschCfg;
1396 SchK2TimingInfoTbl k2InfoTbl;
1399 /* Uplink BWP information */
1400 typedef struct schUlBwpInfo
1405 /* Serving cell configuration */
1406 typedef struct schServCellCfgInfo
1408 SchInitalDlBwp initDlBwp;
1409 uint8_t numDlBwpToAdd;
1410 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1411 uint8_t firstActvDlBwpId;
1412 uint8_t defaultDlBwpId;
1413 uint8_t *bwpInactivityTmr;
1414 SchPdschServCellCfg pdschServCellCfg;
1415 SchInitialUlBwp initUlBwp;
1416 uint8_t numUlBwpToAdd;
1417 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1418 uint8_t firstActvUlBwpId;
1419 }SchServCellCfgInfo;
1421 typedef struct schNonDynFiveQi
1426 uint16_t maxDataBurstVol;
1429 typedef struct schDynFiveQi
1432 uint16_t packetDelayBudget;
1433 uint8_t packetErrRateScalar;
1434 uint8_t packetErrRateExp;
1436 uint8_t delayCritical;
1438 uint16_t maxDataBurstVol;
1441 typedef struct schNgRanAllocAndRetPri
1443 uint8_t priorityLevel;
1444 uint8_t preEmptionCap;
1445 uint8_t preEmptionVul;
1446 }SchNgRanAllocAndRetPri;
1448 typedef struct schGrbQosFlowInfo
1450 uint32_t maxFlowBitRateDl;
1451 uint32_t maxFlowBitRateUl;
1452 uint32_t guarFlowBitRateDl;
1453 uint32_t guarFlowBitRateUl;
1457 typedef struct schDrbQos
1459 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1462 SchNonDynFiveQi nonDyn5Qi;
1463 SchDynFiveQi dyn5Qi;
1465 SchNgRanAllocAndRetPri ngRanRetPri;
1466 SchGrbQosFlowInfo grbQosFlowInfo;
1467 uint16_t pduSessionId;
1468 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1471 typedef struct schSnssai
1474 uint8_t sd[SD_SIZE];
1477 /* Special cell configuration */
1478 typedef struct schSpCellCfg
1480 uint8_t servCellIdx;
1481 SchServCellCfgInfo servCellCfg;
1484 /* Uplink logical channel configuration */
1485 typedef struct SchUlLcCfg
1490 uint8_t pbr; // prioritisedBitRate
1491 uint8_t bsd; // bucketSizeDuration
1494 /* Downlink logical channel configuration */
1495 typedef struct schDlLcCfg
1497 uint8_t lcp; // logical Channel Prioritization
1500 /* Logical Channel configuration */
1501 typedef struct schLcCfg
1503 ConfigType configType;
1505 SchDrbQosInfo *drbQos;
1511 /* Aggregate max bit rate */
1512 typedef struct schAmbrCfg
1514 uint32_t ulBr; /* Ul BitRate */
1517 typedef struct schModulationInfo
1521 SchMcsTable mcsTable;
1524 /* UE configuration */
1525 typedef struct schUeCfg
1529 bool macCellGrpCfgPres;
1530 SchMacCellGrpCfg macCellGrpCfg;
1531 bool phyCellGrpCfgPres;
1532 SchPhyCellGrpCfg phyCellGrpCfg;
1534 SchSpCellCfg spCellCfg;
1535 SchAmbrCfg *ambrCfg;
1536 SchModulationInfo dlModInfo;
1537 SchModulationInfo ulModInfo;
1539 SchLcCfg schLcCfg[MAX_NUM_LC];
1542 typedef struct schUeCfgRsp
1548 SchFailureCause cause;
1551 typedef struct schUeDelete
1557 typedef struct schUeDeleteRsp
1565 typedef struct schCellDelete
1571 typedef struct schCellDeleteRsp
1577 typedef struct dataVolInfo
1583 typedef struct ulBufferStatusRptInd
1589 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1590 }UlBufferStatusRptInd;
1592 typedef struct srUciIndInfo
1596 SlotTimingInfo slotInd;
1598 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1601 /* function pointers */
1603 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1604 Pst *pst, /* Post Structure */
1605 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1608 typedef uint8_t (*SchCellCfgFunc) ARGS((
1609 Pst *pst, /* Post Structure */
1610 SchCellCfg *schCellCfg /* Cell Cfg */
1613 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1614 Pst *pst, /* Post Structure */
1615 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1618 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1619 Pst *pst, /* Post Structure */
1620 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1623 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1624 Pst *pst, /* Post structure */
1625 RachIndInfo *rachInd)); /* Rach Indication Info */
1627 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1628 Pst *pst, /* Post structure */
1629 CrcIndInfo *crcInd)); /* CRC Info */
1631 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1632 Pst *pst, /* Post structure */
1633 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1635 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1636 Pst *pst, /* Post structure */
1637 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1639 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1640 Pst *pst, /* Post structure */
1641 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1643 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1644 Pst *pst, /* Post structure */
1645 SlotTimingInfo *slotInd)); /* Slot Info */
1647 typedef uint8_t (*MacSchBsrFunc) ARGS((
1649 UlBufferStatusRptInd *bsrInd
1652 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1653 Pst *pst, /* Post structure */
1654 SrUciIndInfo *uciInd)); /* UCI IND Info */
1656 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1657 Pst *pst, /* Post structure */
1658 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1660 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1661 Pst *pst, /* Post structure */
1662 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1664 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1665 Pst *pst, /* Post structure */
1666 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1668 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1669 Pst *pst, /* Post structure */
1670 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1672 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1673 Pst *pst, /* Post structure */
1674 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1676 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1677 Pst *pst, /* Post structure */
1678 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1680 /* function declarations */
1681 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1682 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1683 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1684 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1685 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1686 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1687 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1688 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1689 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1690 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1691 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1692 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1693 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1694 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1695 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1696 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1697 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1698 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1699 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1700 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1701 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1702 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1703 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1704 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1705 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1706 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1707 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1708 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1709 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1710 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1711 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1712 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1713 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1714 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1715 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1716 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1717 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1718 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1719 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1720 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1722 /**********************************************************************
1724 **********************************************************************/