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
38 #define EVENT_LONG_BSR 19
39 #define EVENT_SLICE_CFG_REQ_TO_SCH 20
40 #define EVENT_SLICE_CFG_RSP_TO_MAC 21
41 #define EVENT_SLICE_RECFG_REQ_TO_SCH 22
42 #define EVENT_SLICE_RECFG_RSP_TO_MAC 23
45 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
46 #define SCH_SSB_MASK_SIZE 1
48 #define MAX_NUM_PRG 1 /* max value should be later 275 */
49 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
50 #define MAX_CODEWORDS 1 /* max should be 2 */
51 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
52 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
54 /* Datatype in UL SCH Info */
55 #define SCH_DATATYPE_PUSCH 1
56 #define SCH_DATATYPE_PUSCH_UCI 2
57 #define SCH_DATATYPE_UCI 4
58 #define SCH_DATATYPE_SRS 8
59 #define SCH_DATATYPE_PRACH 16
61 #define MAX_NUMBER_OF_CRC_IND_BITS 1
62 #define MAX_NUMBER_OF_UCI_IND_BITS 1
63 #define MAX_SR_BITS_IN_BYTES 1
64 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
65 /* can we have a common numslot numscs between mac sch */
72 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
73 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
74 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
75 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
76 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
77 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
78 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
79 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
80 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
82 /* PUCCH Configuration Macro */
83 #define MAX_NUM_PUCCH_RESRC 128
84 #define MAX_NUM_PUCCH_RESRC_SET 4
85 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
86 #define MAX_NUM_SPATIAL_RELATIONS 8
87 #define MAX_NUM_PUCCH_P0_PER_SET 8
88 #define MAX_NUM_PATH_LOSS_REF_RS 4
89 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
90 #define QPSK_MODULATION 2
92 #define RAR_PAYLOAD_SIZE 10 /* As per spec 38.321, sections 6.1.5 and 6.2.3, RAR PDU is 8 bytes long and 2 bytes of padding */
93 #define TX_PAYLOAD_HDR_LEN 32 /* Intel L1 requires adding a 32 byte header to transmitted payload */
94 #define UL_TX_BUFFER_SIZE 5
96 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
97 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
98 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
99 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
100 #define MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
101 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
102 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
103 #define DEFAULT_K2_VALUE_FOR_SCS15 1
104 #define DEFAULT_K2_VALUE_FOR_SCS30 1
105 #define DEFAULT_K2_VALUE_FOR_SCS60 2
106 #define DEFAULT_K2_VALUE_FOR_SCS120 3
108 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr) \
110 if ((crntTime.slot + incr) > (MAX_SLOTS - 1)) \
112 toFill.sfn = (crntTime.sfn + 1); \
116 toFill.sfn = crntTime.sfn; \
118 toFill.slot = (crntTime.slot + incr) % MAX_SLOTS; \
119 if (toFill.sfn >= MAX_SFN) \
121 toFill.sfn%=MAX_SFN; \
129 RRC_CONNECTED_USERS_RSRC
149 RESOURCE_UNAVAILABLE,
186 TIME_ALIGNMENT_TIMER_MS500,
187 TIME_ALIGNMENT_TIMER_MS750,
188 TIME_ALIGNMENT_TIMER_MS1280,
189 TIME_ALIGNMENT_TIMER_MS1920,
190 TIME_ALIGNMENT_TIMER_MS2560,
191 TIME_ALIGNMENT_TIMER_MS5120,
192 TIME_ALIGNMENT_TIMER_MS10240,
193 TIME_ALIGNMENT_TIMER_INFINITE
194 }SchTimeAlignmentTimer;
198 PHR_PERIODIC_TIMER_SF10,
199 PHR_PERIODIC_TIMER_SF20,
200 PHR_PERIODIC_TIMER_SF50,
201 PHR_PERIODIC_TIMER_SF100,
202 PHR_PERIODIC_TIMER_SF200,
203 PHR_PERIODIC_TIMER_SF500,
204 PHR_PERIODIC_TIMER_SF1000,
205 PHR_PERIODIC_TIMER_INFINITE
206 }SchPhrPeriodicTimer;
210 PHR_PROHIBIT_TIMER_SF0,
211 PHR_PROHIBIT_TIMER_SF10,
212 PHR_PROHIBIT_TIMER_SF20,
213 PHR_PROHIBIT_TIMER_SF50,
214 PHR_PROHIBIT_TIMER_SF100,
215 PHR_PROHIBIT_TIMER_SF200,
216 PHR_PROHIBIT_TIMER_SF500,
217 PHR_PROHIBIT_TIMER_SF1000
218 }SchPhrProhibitTimer;
222 PHR_TX_PWR_FACTOR_CHANGE_DB1,
223 PHR_TX_PWR_FACTOR_CHANGE_DB3,
224 PHR_TX_PWR_FACTOR_CHANGE_DB6,
225 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
226 }SchPhrTxPwrFactorChange;
236 HARQ_ACK_CODEBOOK_SEMISTATIC,
237 HARQ_ACK_CODEBOOK_DYNAMIC
238 }SchPdschHarqAckCodebook;
242 NUM_HARQ_PROC_FOR_PDSCH_N2,
243 NUM_HARQ_PROC_FOR_PDSCH_N4,
244 NUM_HARQ_PROC_FOR_PDSCH_N6,
245 NUM_HARQ_PROC_FOR_PDSCH_N10,
246 NUM_HARQ_PROC_FOR_PDSCH_N16
247 }SchNumHarqProcForPdsch;
251 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
252 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
253 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
254 MAX_CODE_BLOCK_GROUP_PER_TB_N8
255 }SchMaxCodeBlkGrpPerTB;
259 PDSCH_X_OVERHEAD_XOH_6,
260 PDSCH_X_OVERHEAD_XOH_12,
261 PDSCH_X_OVERHEAD_XOH_18
266 DMRS_ADDITIONAL_POS0,
267 DMRS_ADDITIONAL_POS1,
269 }SchDmrsAdditionPosition;
273 RESOURCE_ALLOCTION_TYPE_0,
274 RESOURCE_ALLOCTION_TYPE_1,
275 RESOURCE_ALLOCTION_DYN_SWITCH
276 }SchResourceAllocType;
280 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
281 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
282 }SchTimeDomRsrcAllocMappingType;
286 ENABLED_TRANSFORM_PRECODER,
287 DISABLED_TRANSFORM_PRECODER
288 }SchTransformPrecoder;
292 INTERLEAVED_CCE_REG_MAPPING = 1,
293 NONINTERLEAVED_CCE_REG_MAPPING
298 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
299 SLOT_PERIODICITY_AND_OFFSET_SL_2,
300 SLOT_PERIODICITY_AND_OFFSET_SL_4,
301 SLOT_PERIODICITY_AND_OFFSET_SL_5,
302 SLOT_PERIODICITY_AND_OFFSET_SL_8,
303 SLOT_PERIODICITY_AND_OFFSET_SL_10,
304 SLOT_PERIODICITY_AND_OFFSET_SL_16,
305 SLOT_PERIODICITY_AND_OFFSET_SL_20,
306 SLOT_PERIODICITY_AND_OFFSET_SL_40,
307 SLOT_PERIODICITY_AND_OFFSET_SL_80,
308 SLOT_PERIODICITY_AND_OFFSET_SL_160,
309 SLOT_PERIODICITY_AND_OFFSET_SL_320,
310 SLOT_PERIODICITY_AND_OFFSET_SL_640,
311 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
312 SLOT_PERIODICITY_AND_OFFSET_SL_2560
313 }SchMSlotPeriodAndOffset;
323 SEARCH_SPACE_TYPE_COMMON = 1,
324 SEARCH_SPACE_TYPE_UE_SPECIFIC
329 SCH_QOS_NON_DYNAMIC = 1,
335 AGGREGATION_LEVEL_N0,
336 AGGREGATION_LEVEL_N1,
337 AGGREGATION_LEVEL_N2,
338 AGGREGATION_LEVEL_N3,
339 AGGREGATION_LEVEL_N4,
340 AGGREGATION_LEVEL_N5,
341 AGGREGATION_LEVEL_N6,
353 CODE_WORDS_SCHED_BY_DCI_N1,
354 CODE_WORDS_SCHED_BY_DCI_N2
355 }SchCodeWordsSchedByDci;
359 STATIC_BUNDLING_TYPE = 1,
360 DYNAMIC_BUNDLING_TYPE
366 SCH_SET1_SIZE_WIDEBAND,
367 SCH_SET1_SIZE_N2_WIDEBAND,
368 SCH_SET1_SIZE_N4_WIDEBAND
369 }SchBundlingSizeSet1;
374 SCH_SET2_SIZE_WIDEBAND
375 }SchBundlingSizeSet2;
417 SCH_MCS_TABLE_QAM_64,
418 SCH_MCS_TABLE_QAM_256,
419 SCH_MCS_TABLE_QAM_64_LOW_SE
431 typedef struct timeDomainAlloc
437 typedef struct freqDomainAlloc
446 uint32_t ssbPbchPwr; /* SSB block power */
447 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
448 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
449 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
450 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
451 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
454 typedef struct bwpCfg
456 uint8_t subcarrierSpacing;
457 uint8_t cyclicPrefix;
458 FreqDomainAlloc freqAlloc;
464 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
467 typedef struct beamformingInfo
471 uint8_t digBfInterfaces;
472 Prg prg[MAX_NUM_PRG];
475 /* SIB1 PDSCH structures */
477 typedef struct codewordinfo
479 uint16_t targetCodeRate;
487 typedef struct dmrsInfo
489 uint16_t dlDmrsSymbPos;
490 uint8_t dmrsConfigType;
491 uint16_t dlDmrsScramblingId;
493 uint8_t numDmrsCdmGrpsNoData;
496 uint8_t nrOfDmrsSymbols;
500 typedef struct pdschFreqAlloc
502 uint8_t resourceAllocType;
503 /* since we are using type-1, rbBitmap excluded */
504 FreqDomainAlloc freqAlloc;
505 uint8_t vrbPrbMapping;
508 typedef struct pdschTimeAlloc
511 TimeDomainAlloc timeAlloc;
514 typedef struct txPowerPdschInfo
516 uint8_t powerControlOffset;
517 uint8_t powerControlOffsetSS;
520 typedef struct pdschCfg
525 uint8_t numCodewords;
526 CodewordInfo codeword[MAX_CODEWORDS];
527 uint16_t dataScramblingId;
529 uint8_t transmissionScheme;
532 PdschFreqAlloc pdschFreqAlloc;
533 PdschTimeAlloc pdschTimeAlloc;
534 BeamformingInfo beamPdschInfo;
535 TxPowerPdschInfo txPdschPower;
537 /* SIB1 PDSCH structures end */
539 /* SIB1 interface structure */
541 typedef struct coresetCfg
544 uint8_t startSymbolIndex;
545 uint8_t durationSymbols;
546 uint8_t freqDomainResource[6];
547 uint8_t cceRegMappingType;
548 uint8_t regBundleSize;
549 uint8_t interleaverSize;
552 uint8_t precoderGranularity;
554 uint8_t aggregationLevel;
557 typedef struct txPowerPdcchInfo
560 uint8_t powerControlOffsetSS;
566 uint16_t scramblingId;
567 uint16_t scramblingRnti;
570 BeamformingInfo beamPdcchInfo;
571 TxPowerPdcchInfo txPdcchPower;
575 typedef struct pdcchCfg
577 /* coreset-0 configuration */
578 CoresetCfg coresetCfg;
581 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
583 /* end of SIB1 PDCCH structures */
587 /* parameters recieved from DU-APP */
589 uint16_t sib1RepetitionPeriod;
590 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
591 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
594 /* parameters derived in scheduler */
597 PdcchCfg sib1PdcchCfg;
598 PdschCfg sib1PdschCfg;
601 typedef struct schRachCfg
603 uint8_t prachCfgIdx; /* PRACH config idx */
604 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
605 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
606 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
607 uint8_t rootSeqLen; /* root sequence length */
608 uint16_t rootSeqIdx; /* Root sequence index */
609 uint8_t numRootSeq; /* Number of root sequences required for FD */
610 uint16_t k1; /* Frequency Offset for each FD */
611 uint8_t ssbPerRach; /* SSB per RACH occassion */
612 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
613 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
614 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
615 uint8_t raRspWindow; /* RA Response Window */
618 typedef struct schBwpParams
620 FreqDomainAlloc freqAlloc;
622 uint8_t cyclicPrefix;
625 typedef struct schCandidatesInfo
634 typedef struct schSearchSpaceCfg
636 uint8_t searchSpaceId;
638 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
639 uint16_t monitoringSlot;
641 uint16_t monitoringSymbol;
642 SchCandidatesInfo candidate;
645 typedef struct schPdcchCfgCmn
647 SchSearchSpaceCfg commonSearchSpace;
648 uint8_t raSearchSpaceId;
651 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
656 uint8_t lengthSymbol;
657 }SchPdschCfgCmnTimeDomRsrcAlloc;
659 typedef struct schPdschCfgCmn
661 uint8_t numTimeDomAlloc;
662 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
665 typedef struct schPucchCfgCmn
667 uint8_t pucchResourceCommon;
668 uint8_t pucchGroupHopping;
671 /* PUSCH Time Domain Resource Allocation */
672 typedef struct schPuschTimeDomRsrcAlloc
675 SchTimeDomRsrcAllocMappingType mappingType;
677 uint8_t symbolLength;
678 }SchPuschTimeDomRsrcAlloc;
680 typedef struct schPuschCfgCmn
682 uint8_t numTimeDomRsrcAlloc;
683 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
686 typedef struct schK1TimingInfo
689 uint8_t k1Indexes[MAX_NUM_K1_IDX];
692 typedef struct schK0TimingInfo
695 SchK1TimingInfo k1TimingInfo;
698 typedef struct schK0K1TimingInfo
701 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
704 typedef struct schK0K1TimingInfoTbl
707 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
708 }SchK0K1TimingInfoTbl;
710 typedef struct schBwpDlCfg
713 SchPdcchCfgCmn pdcchCommon;
714 SchPdschCfgCmn pdschCommon;
715 SchK0K1TimingInfoTbl k0K1InfoTbl;
718 typedef struct schK2TimingInfo
721 uint8_t k2Indexes[MAX_NUM_K2_IDX];
724 typedef struct schK2TimingInfoTbl
727 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
730 typedef struct schBwpUlCfg
733 SchPucchCfgCmn pucchCommon;
734 SchPuschCfgCmn puschCommon;
735 SchK2TimingInfoTbl msg3K2InfoTbl;
736 SchK2TimingInfoTbl k2InfoTbl;
739 typedef struct schPlmnInfoList
742 uint8_t numSliceSupport; /* Total slice supporting */
743 Snssai **snssai; /* List of supporting snssai*/
746 typedef struct schCellCfg
748 uint16_t cellId; /* Cell Id */
749 uint16_t phyCellId; /* Physical cell id */
750 uint8_t numerology; /* Supported numerology */
751 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
752 uint8_t bandwidth; /* Supported B/W */
753 uint32_t dlFreq; /* DL Frequency */
754 uint32_t ulFreq; /* UL Frequency */
755 SchSsbCfg ssbSchCfg; /* SSB config */
756 SchSib1Cfg sib1SchCfg; /* SIB1 config */
757 SchRachCfg schRachCfg; /* PRACH config */
758 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
759 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
760 SchPlmnInfoList plmnInfoList; /* Consits of PlmnId and Snssai list */
762 TDDCfg tddCfg; /* TDD Cfg */
766 typedef struct schCellCfgCfm
768 uint16_t cellId; /* Cell Id */
772 typedef struct ssbInfo
774 uint8_t ssbIdx; /* SSB Index */
775 TimeDomainAlloc tdAlloc; /* Time domain allocation */
776 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
779 typedef struct sib1AllocInfo
782 PdcchCfg sib1PdcchCfg;
783 PdschCfg sib1PdschCfg;
786 typedef struct prachSchInfo
788 uint8_t numPrachOcas; /* Num Prach Ocassions */
789 uint8_t prachFormat; /* PRACH Format */
790 uint8_t numRa; /* Freq domain ocassion */
791 uint8_t prachStartSymb; /* Freq domain ocassion */
794 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
795 typedef struct dlBrdcstAlloc
797 /* Ssb transmission is determined as follows:
798 * 0 : No tranamission
799 * 1 : SSB Transmission
800 * 2 : SSB Repetition */
802 uint8_t ssbIdxSupported;
803 SsbInfo ssbInfo[MAX_SSB_IDX];
804 /* Sib1 transmission is determined as follows:
805 * 0 : No tranamission
806 * 1 : SIB1 Transmission
807 * 2 : SIB1 Repetition */
809 Sib1AllocInfo sib1Alloc;
812 typedef struct msg3UlGrant
816 FreqDomainAlloc msg3FreqAlloc;
823 typedef struct rarInfo
830 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
834 typedef struct rarAlloc
840 PdcchCfg rarPdcchCfg;
841 PdschCfg rarPdschCfg;
844 typedef struct dlMsgInfo
852 uint8_t harqFeedbackInd;
855 uint16_t dlMsgPduLen;
859 typedef struct lcSchInfo
862 uint32_t schBytes; /* Number of scheduled bytes */
865 typedef struct dlMsgSchedInfo
868 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
870 PdcchCfg dlMsgPdcchCfg;
871 PdschCfg dlMsgPdschCfg;
877 typedef struct dlMsgAlloc
880 uint8_t numSchedInfo;
881 DlMsgSchInfo dlMsgSchedInfo[2];
884 typedef struct schSlotValue
886 SlotTimingInfo currentTime;
887 SlotTimingInfo broadcastTime;
888 SlotTimingInfo rarTime;
889 SlotTimingInfo dlMsgTime;
890 SlotTimingInfo ulDciTime;
893 typedef struct format0_0
895 uint8_t resourceAllocType;
896 /* since we are using type-1, hence rbBitmap excluded */
897 FreqDomainAlloc freqAlloc;
898 TimeDomainAlloc timeAlloc;
901 uint8_t harqProcId; /* HARQ Process ID */
904 uint8_t ndi; /* NDI */
905 uint8_t rv; /* Redundancy Version */
910 typedef struct format0_1
916 typedef struct format1_0
922 typedef struct format1_1
927 typedef struct dciInfo
930 uint16_t crnti; /* CRNI */
931 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
932 BwpCfg bwpCfg; /* BWP Cfg */
933 CoresetCfg coresetCfg; /* Coreset1 Cfg */
934 FormatType formatType; /* DCI Format */
937 Format0_0 format0_0; /* Format 0_0 */
938 Format0_1 format0_1; /* Format 0_1 */
939 Format1_0 format1_0; /* Format 1_0 */
940 Format1_1 format1_1; /* Format 1_1 */
946 typedef struct dlSchedInfo
948 uint16_t cellId; /* Cell Id */
949 SchSlotValue schSlotValue;
951 /* Allocation for broadcast messages */
952 bool isBroadcastPres;
953 DlBrdcstAlloc brdcstAlloc;
955 /* Allocation for RAR message */
956 RarAlloc *rarAlloc[MAX_NUM_UE];
958 /* UL grant in response to BSR */
961 /* Allocation from dedicated DL msg */
962 DlMsgAlloc *dlMsgAlloc[MAX_NUM_UE];
966 typedef struct tbInfo
968 uint8_t qamOrder; /* Modulation Order */
969 uint8_t mcs; /* MCS */
970 SchMcsTable mcsTable; /* MCS Table */
971 uint8_t ndi; /* NDI */
972 uint8_t rv; /* Redundancy Version */
973 uint16_t tbSize; /* TB Size */
976 typedef struct schPuschInfo
979 uint8_t harqProcId; /* HARQ Process ID */
980 uint8_t resAllocType; /* Resource allocation type */
981 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
982 TimeDomainAlloc tdAlloc; /* Time domain allocation */
983 TbInfo tbInfo; /* TB info */
984 uint8_t dmrsMappingType;
985 uint8_t nrOfDmrsSymbols;
989 typedef struct schPucchFormatCfg
991 uint8_t interSlotFreqHop;
999 typedef struct schPucchInfo
1002 uint8_t pucchFormat;
1003 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1004 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1007 uint8_t numHarqBits;
1010 uint8_t intraFreqHop;
1011 uint16_t secondPrbHop;
1012 uint8_t initialCyclicShift;
1016 SchPucchFormatCfg cmnFormatCfg;
1019 typedef struct ulSchedInfo
1021 uint16_t cellId; /* Cell Id */
1022 uint16_t crnti; /* CRNI */
1023 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1024 uint8_t dataType; /* Type of info being scheduled */
1025 PrachSchInfo prachSchInfo; /* Prach scheduling info */
1026 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
1027 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
1030 typedef struct rachIndInfo
1034 SlotTimingInfo timingInfo;
1038 uint8_t preambleIdx;
1043 typedef struct crcIndInfo
1047 SlotTimingInfo timingInfo;
1049 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1052 typedef struct boInfo
1055 uint32_t dataVolume;
1058 typedef struct dlRlcBOInfo
1063 uint32_t dataVolume;
1066 /* Info of Scheduling Request to Add/Modify */
1067 typedef struct schSchedReqInfo
1070 SchSrProhibitTimer srProhibitTmr;
1071 SchSrTransMax srTransMax;
1074 /* Scheduling Request Configuration */
1075 typedef struct schSchedReqCfg
1077 uint8_t addModListCount;
1078 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1079 uint8_t relListCount;
1080 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1083 /* Info of Tag to Add/Modify */
1084 typedef struct schTagInfo
1087 SchTimeAlignmentTimer timeAlignmentTmr;
1090 /* Timing Advance Group Configuration */
1091 typedef struct schTagCfg
1093 uint8_t addModListCount;
1094 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1095 uint8_t relListCount;
1096 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1099 /* Configuration for Power headroom reporting */
1100 typedef struct schPhrCfg
1102 SchPhrPeriodicTimer periodicTmr;
1103 SchPhrProhibitTimer prohibitTmr;
1104 SchPhrTxPwrFactorChange txpowerFactorChange;
1107 bool type2OtherCell;
1108 SchPhrModeOtherCG modeOtherCG;
1111 /* MAC cell Group configuration */
1112 typedef struct schMacCellGrpCfg
1114 SchSchedReqCfg schedReqCfg;
1116 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1119 /* Physical Cell Group Configuration */
1120 typedef struct schPhyCellGrpCfg
1122 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1126 /* Control resource set info */
1127 typedef struct schControlRsrcSet
1129 uint8_t cRSetId; /* Control resource set id */
1130 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1132 SchREGMappingType cceRegMappingType;
1133 SchPrecoderGranul precoderGranularity;
1134 uint16_t dmrsScramblingId;
1137 /* Search Space info */
1138 typedef struct schSearchSpace
1140 uint8_t searchSpaceId;
1142 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1143 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1144 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1145 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1146 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1147 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1148 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1149 SchSearchSpaceType searchSpaceType;
1150 uint8_t ueSpecificDciFormat;
1153 /* PDCCH cofniguration */
1154 typedef struct schPdcchConfig
1156 uint8_t numCRsetToAddMod;
1157 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1158 uint8_t numCRsetToRel;
1159 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1160 uint8_t numSearchSpcToAddMod;
1161 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1162 uint8_t numSearchSpcToRel;
1163 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1166 /* PDSCH time domain resource allocation */
1167 typedef struct schPdschTimeDomRsrcAlloc
1170 SchTimeDomRsrcAllocMappingType mappingType;
1171 uint8_t startSymbol;
1172 uint8_t symbolLength;
1173 }SchPdschTimeDomRsrcAlloc;
1176 typedef struct schPdschBundling
1178 struct schStaticBundling
1180 SchBundlingSizeSet2 size;
1182 struct schDynamicBundling
1184 SchBundlingSizeSet1 sizeSet1;
1185 SchBundlingSizeSet2 sizeSet2;
1186 }SchDynamicBundling;
1189 /* DMRS downlink configuration */
1190 typedef struct schDmrsDlCfg
1192 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1195 /* PDSCH Configuration */
1196 typedef struct schPdschConfig
1198 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1199 SchResourceAllocType resourceAllocType;
1200 uint8_t numTimeDomRsrcAlloc;
1201 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1203 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1204 SchBundlingType bundlingType;
1205 SchPdschBundling bundlingInfo;
1208 /* Initial Downlink BWP */
1209 typedef struct schInitalDlBwp
1212 SchPdcchConfig pdcchCfg;
1214 SchPdschConfig pdschCfg;
1216 SchK0K1TimingInfoTbl k0K1InfoTbl;
1219 /* BWP Downlink common */
1220 typedef struct schBwpDlCommon
1224 /* Downlink BWP information */
1225 typedef struct schDlBwpInfo
1230 /* PDCCH Serving Cell configuration */
1231 typedef struct schPdschServCellCfg
1233 uint8_t *maxMimoLayers;
1234 SchNumHarqProcForPdsch numHarqProcForPdsch;
1235 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1236 bool *codeBlkGrpFlushInd;
1237 SchPdschXOverhead *xOverhead;
1238 }SchPdschServCellCfg;
1240 /* PUCCH Configuration */
1241 typedef struct schPucchResrcSetInfo
1244 uint8_t resrcListCount;
1245 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1246 uint8_t maxPayLoadSize;
1247 }SchPucchResrcSetInfo;
1249 typedef struct schPucchResrcSetCfg
1251 uint8_t resrcSetToAddModListCount;
1252 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1253 uint8_t resrcSetToRelListCount;
1254 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1255 }SchPucchResrcSetCfg;
1257 typedef struct schPucchFormat0
1259 uint8_t initialCyclicShift;
1261 uint8_t startSymbolIdx;
1264 typedef struct schPucchFormat1
1266 uint8_t initialCyclicShift;
1268 uint8_t startSymbolIdx;
1272 typedef struct schPucchFormat2_3
1276 uint8_t startSymbolIdx;
1279 typedef struct schPucchFormat4
1284 uint8_t startSymbolIdx;
1287 typedef struct schPucchResrcInfo
1291 uint8_t intraFreqHop;
1292 uint16_t secondPrbHop;
1293 uint8_t pucchFormat;
1295 SchPucchFormat0 *format0;
1296 SchPucchFormat1 *format1;
1297 SchPucchFormat2_3 *format2;
1298 SchPucchFormat2_3 *format3;
1299 SchPucchFormat4 *format4;
1303 typedef struct schPucchResrcCfg
1305 uint8_t resrcToAddModListCount;
1306 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1307 uint8_t resrcToRelListCount;
1308 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1312 typedef struct schSchedReqResrcInfo
1316 uint8_t periodicity;
1319 }SchSchedReqResrcInfo;
1321 typedef struct schPucchSchedReqCfg
1323 uint8_t schedAddModListCount;
1324 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1325 uint8_t schedRelListCount;
1326 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1327 }SchPucchSchedReqCfg;
1329 typedef struct schSpatialRelationInfo
1331 uint8_t spatialRelationId;
1332 uint8_t servCellIdx;
1333 uint8_t pathLossRefRSId;
1335 uint8_t closeLoopIdx;
1336 }SchSpatialRelationInfo;
1338 typedef struct schPucchSpatialCfg
1340 uint8_t spatialAddModListCount;
1341 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1342 uint8_t spatialRelListCount;
1343 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1344 }SchPucchSpatialCfg;
1346 typedef struct schP0PucchCfg
1352 typedef struct schPathLossRefRSCfg
1354 uint8_t pathLossRefRSId;
1355 }SchPathLossRefRSCfg;
1357 typedef struct schPucchMultiCsiCfg
1359 uint8_t multiCsiResrcListCount;
1360 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1361 }SchPucchMultiCsiCfg;
1363 typedef struct schPucchDlDataToUlAck
1365 uint8_t dlDataToUlAckListCount;
1366 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1367 }SchPucchDlDataToUlAck;
1369 typedef struct schPucchPowerControl
1377 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1378 uint8_t pathLossRefRSListCount;
1379 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1380 }SchPucchPowerControl;
1382 typedef struct schPucchCfg
1384 SchPucchResrcSetCfg *resrcSet;
1385 SchPucchResrcCfg *resrc;
1386 SchPucchFormatCfg *format1;
1387 SchPucchFormatCfg *format2;
1388 SchPucchFormatCfg *format3;
1389 SchPucchFormatCfg *format4;
1390 SchPucchSchedReqCfg *schedReq;
1391 SchPucchMultiCsiCfg *multiCsiCfg;
1392 SchPucchSpatialCfg *spatialInfo;
1393 SchPucchDlDataToUlAck *dlDataToUlAck;
1394 SchPucchPowerControl *powerControl;
1397 /* Transform precoding disabled */
1398 typedef struct schTransPrecodDisabled
1400 uint16_t scramblingId0;
1401 }SchTransPrecodDisabled;
1403 /* DMRS Uplink configuration */
1404 typedef struct SchDmrsUlCfg
1406 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1407 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1410 /* PUSCH Configuration */
1411 typedef struct schPuschCfg
1413 uint8_t dataScramblingId;
1414 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1415 SchResourceAllocType resourceAllocType;
1416 uint8_t numTimeDomRsrcAlloc;
1417 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1418 SchTransformPrecoder transformPrecoder;
1421 /* Initial Uplink BWP */
1422 typedef struct schInitialUlBwp
1425 SchPucchCfg pucchCfg;
1427 SchPuschCfg puschCfg;
1429 SchK2TimingInfoTbl k2InfoTbl;
1432 /* Uplink BWP information */
1433 typedef struct schUlBwpInfo
1438 /* Serving cell configuration */
1439 typedef struct schServCellCfgInfo
1441 SchInitalDlBwp initDlBwp;
1442 uint8_t numDlBwpToAdd;
1443 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1444 uint8_t firstActvDlBwpId;
1445 uint8_t defaultDlBwpId;
1446 uint8_t *bwpInactivityTmr;
1447 SchPdschServCellCfg pdschServCellCfg;
1448 SchInitialUlBwp initUlBwp;
1449 uint8_t numUlBwpToAdd;
1450 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1451 uint8_t firstActvUlBwpId;
1452 }SchServCellCfgInfo;
1454 typedef struct schNonDynFiveQi
1459 uint16_t maxDataBurstVol;
1462 typedef struct schDynFiveQi
1465 uint16_t packetDelayBudget;
1466 uint8_t packetErrRateScalar;
1467 uint8_t packetErrRateExp;
1469 uint8_t delayCritical;
1471 uint16_t maxDataBurstVol;
1474 typedef struct schNgRanAllocAndRetPri
1476 uint8_t priorityLevel;
1477 uint8_t preEmptionCap;
1478 uint8_t preEmptionVul;
1479 }SchNgRanAllocAndRetPri;
1481 typedef struct schGrbQosFlowInfo
1483 uint32_t maxFlowBitRateDl;
1484 uint32_t maxFlowBitRateUl;
1485 uint32_t guarFlowBitRateDl;
1486 uint32_t guarFlowBitRateUl;
1490 typedef struct schDrbQos
1492 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1495 SchNonDynFiveQi nonDyn5Qi;
1496 SchDynFiveQi dyn5Qi;
1498 SchNgRanAllocAndRetPri ngRanRetPri;
1499 SchGrbQosFlowInfo grbQosFlowInfo;
1500 uint16_t pduSessionId;
1501 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1504 /* Special cell configuration */
1505 typedef struct schSpCellCfg
1507 uint8_t servCellIdx;
1508 SchServCellCfgInfo servCellCfg;
1511 /* Uplink logical channel configuration */
1512 typedef struct SchUlLcCfg
1517 uint8_t pbr; // prioritisedBitRate
1518 uint8_t bsd; // bucketSizeDuration
1521 /* Downlink logical channel configuration */
1522 typedef struct schDlLcCfg
1524 uint8_t lcp; // logical Channel Prioritization
1527 /* Logical Channel configuration */
1528 typedef struct schLcCfg
1530 ConfigType configType;
1532 SchDrbQosInfo *drbQos;
1538 /* Aggregate max bit rate */
1539 typedef struct schAmbrCfg
1541 uint32_t ulBr; /* Ul BitRate */
1544 typedef struct schModulationInfo
1548 SchMcsTable mcsTable;
1551 /* UE configuration */
1552 typedef struct schUeCfg
1556 bool macCellGrpCfgPres;
1557 SchMacCellGrpCfg macCellGrpCfg;
1558 bool phyCellGrpCfgPres;
1559 SchPhyCellGrpCfg phyCellGrpCfg;
1561 SchSpCellCfg spCellCfg;
1562 SchAmbrCfg *ambrCfg;
1563 SchModulationInfo dlModInfo;
1564 SchModulationInfo ulModInfo;
1566 SchLcCfg schLcCfg[MAX_NUM_LC];
1569 typedef struct schUeCfgRsp
1575 SchFailureCause cause;
1578 typedef struct schUeDelete
1584 typedef struct schUeDeleteRsp
1592 typedef struct schCellDelete
1598 typedef struct schCellDeleteRsp
1604 typedef struct dataVolInfo
1610 typedef struct ulBufferStatusRptInd
1616 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1617 }UlBufferStatusRptInd;
1619 typedef struct srUciIndInfo
1623 SlotTimingInfo slotInd;
1625 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1628 typedef struct schRrmPolicyRatio
1630 uint8_t policyMaxRatio;
1631 uint8_t policyMinRatio;
1632 uint8_t policyDedicatedRatio;
1635 typedef struct schRrmPolicyOfSlice
1638 SchRrmPolicyRatio *rrmPolicyRatioInfo;
1639 }SchRrmPolicyOfSlice;
1641 typedef struct schSliceCfgReq
1643 uint8_t numOfConfiguredSlice;
1644 SchRrmPolicyOfSlice **listOfConfirguration;
1647 typedef struct sliceRsp
1654 typedef struct schSliceRsp
1656 uint8_t numSliceCfgRsp;
1657 SliceRsp **listOfSliceCfgRsp;
1660 /* function pointers */
1661 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1662 Pst *pst, /* Post Structure */
1663 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1666 typedef uint8_t (*SchCellCfgFunc) ARGS((
1667 Pst *pst, /* Post Structure */
1668 SchCellCfg *schCellCfg /* Cell Cfg */
1671 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1672 Pst *pst, /* Post Structure */
1673 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1676 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1677 Pst *pst, /* Post Structure */
1678 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1681 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1682 Pst *pst, /* Post structure */
1683 RachIndInfo *rachInd)); /* Rach Indication Info */
1685 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1686 Pst *pst, /* Post structure */
1687 CrcIndInfo *crcInd)); /* CRC Info */
1689 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1690 Pst *pst, /* Post structure */
1691 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1693 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1694 Pst *pst, /* Post structure */
1695 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1697 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1698 Pst *pst, /* Post structure */
1699 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1701 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1702 Pst *pst, /* Post structure */
1703 SlotTimingInfo *slotInd)); /* Slot Info */
1705 typedef uint8_t (*MacSchBsrFunc) ARGS((
1707 UlBufferStatusRptInd *bsrInd
1710 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1711 Pst *pst, /* Post structure */
1712 SrUciIndInfo *uciInd)); /* UCI IND Info */
1714 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1715 Pst *pst, /* Post structure */
1716 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1718 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1719 Pst *pst, /* Post structure */
1720 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1722 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1723 Pst *pst, /* Post structure */
1724 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1726 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1727 Pst *pst, /* Post structure */
1728 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1730 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1731 Pst *pst, /* Post structure */
1732 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1734 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1735 Pst *pst, /* Post structure */
1736 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1738 typedef uint8_t (*MacSchSliceCfgReqFunc) ARGS((
1739 Pst *pst, /* Post structure */
1740 SchSliceCfgReq *schSliceCfgReq)); /* Scheduler Slice Cfg Req */
1742 typedef uint8_t (*SchSliceCfgRspFunc) ARGS((
1743 Pst *pst, /* Post Structure */
1744 SchSliceCfgRsp *schSliceCfgRsp /* Cell Cfg Cfm */
1747 typedef uint8_t (*MacSchSliceReCfgReqFunc) ARGS((
1748 Pst *pst, /* Post structure */
1749 SchSliceCfgReq *schSliceReCfgReq)); /* Scheduler Slice ReCfg Req */
1751 typedef uint8_t (*SchSliceReCfgRspFunc) ARGS((
1752 Pst *pst, /* Post Structure */
1753 SchSliceCfgRsp *schSliceReCfgRsp /* Cell ReCfg Cfm */
1755 /* function declarations */
1756 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1757 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1758 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1759 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1760 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1761 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1762 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1763 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1764 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1765 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1766 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1767 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1768 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1769 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1770 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1771 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1772 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1773 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1774 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1775 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1776 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1777 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1778 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1779 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1780 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1781 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1782 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1783 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1784 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1785 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1786 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1787 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1788 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1789 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1790 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1791 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1792 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1793 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1794 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1795 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1796 uint8_t packMacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1797 uint8_t MacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1798 uint8_t packSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1799 uint8_t MacProcSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1800 uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1801 uint8_t MacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1802 uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1803 uint8_t MacProcSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *sliceReCfgrsp);
1804 /**********************************************************************
1806 **********************************************************************/