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. */
453 /*Ref:Spec 38.331 "ssb-PositionsInBurst", Value 0 in Bitmap => corresponding SS/PBCH block is not transmitted
454 *value 1 => corresponding SS/PBCH block is transmitted*/
455 uint8_t totNumSsb; /*S = Total Number of Actual SSB transmitted*/
458 typedef struct bwpCfg
460 uint8_t subcarrierSpacing;
461 uint8_t cyclicPrefix;
462 FreqDomainAlloc freqAlloc;
468 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
471 typedef struct beamformingInfo
475 uint8_t digBfInterfaces;
476 Prg prg[MAX_NUM_PRG];
479 /* SIB1 PDSCH structures */
481 typedef struct codewordinfo
483 uint16_t targetCodeRate;
491 typedef struct dmrsInfo
493 uint16_t dlDmrsSymbPos;
494 uint8_t dmrsConfigType;
495 uint16_t dlDmrsScramblingId;
497 uint8_t numDmrsCdmGrpsNoData;
500 uint8_t nrOfDmrsSymbols;
504 typedef struct pdschFreqAlloc
506 uint8_t resourceAllocType;
507 /* since we are using type-1, rbBitmap excluded */
508 FreqDomainAlloc freqAlloc;
509 uint8_t vrbPrbMapping;
512 typedef struct pdschTimeAlloc
515 TimeDomainAlloc timeAlloc;
518 typedef struct txPowerPdschInfo
520 uint8_t powerControlOffset;
521 uint8_t powerControlOffsetSS;
524 typedef struct pdschCfg
529 uint8_t numCodewords;
530 CodewordInfo codeword[MAX_CODEWORDS];
531 uint16_t dataScramblingId;
533 uint8_t transmissionScheme;
536 PdschFreqAlloc pdschFreqAlloc;
537 PdschTimeAlloc pdschTimeAlloc;
538 BeamformingInfo beamPdschInfo;
539 TxPowerPdschInfo txPdschPower;
541 /* SIB1 PDSCH structures end */
543 /* SIB1 interface structure */
545 typedef struct coresetCfg
548 uint8_t startSymbolIndex;
549 uint8_t durationSymbols;
550 uint8_t freqDomainResource[6];
551 uint8_t cceRegMappingType;
552 uint8_t regBundleSize;
553 uint8_t interleaverSize;
556 uint8_t precoderGranularity;
558 uint8_t aggregationLevel;
561 typedef struct txPowerPdcchInfo
564 uint8_t powerControlOffsetSS;
570 uint16_t scramblingId;
571 uint16_t scramblingRnti;
574 BeamformingInfo beamPdcchInfo;
575 TxPowerPdcchInfo txPdcchPower;
579 typedef struct pdcchCfg
581 /* coreset-0 configuration */
582 CoresetCfg coresetCfg;
585 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
587 /* end of SIB1 PDCCH structures */
589 typedef struct pageCfg
591 uint8_t numPO; /*Derived from Ns*/
592 bool poPresent; /*FirstPDCCH-MonitoringPO is present or not*/
593 uint16_t pagingOcc[MAX_PO_PER_PF]; /*FirstPDCCH-Monitoring Paging Occasion*/
598 /* parameters recieved from DU-APP */
600 uint16_t sib1RepetitionPeriod;
601 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
602 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
605 /* parameters derived in scheduler */
608 PdcchCfg sib1PdcchCfg;
609 PdschCfg sib1PdschCfg;
610 PageCfg pageCfg; /*Config of Paging*/
613 typedef struct schRachCfg
615 uint8_t prachCfgIdx; /* PRACH config idx */
616 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
617 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
618 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
619 uint8_t rootSeqLen; /* root sequence length */
620 uint16_t rootSeqIdx; /* Root sequence index */
621 uint8_t numRootSeq; /* Number of root sequences required for FD */
622 uint16_t k1; /* Frequency Offset for each FD */
623 uint8_t ssbPerRach; /* SSB per RACH occassion */
624 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
625 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
626 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
627 uint8_t raRspWindow; /* RA Response Window */
630 typedef struct schBwpParams
632 FreqDomainAlloc freqAlloc;
634 uint8_t cyclicPrefix;
637 typedef struct schCandidatesInfo
646 typedef struct schSearchSpaceCfg
648 uint8_t searchSpaceId;
650 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
651 uint16_t monitoringSlot;
653 uint16_t monitoringSymbol;
654 SchCandidatesInfo candidate;
657 typedef struct schPdcchCfgCmn
659 SchSearchSpaceCfg commonSearchSpace;
660 uint8_t raSearchSpaceId;
663 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
668 uint8_t lengthSymbol;
669 }SchPdschCfgCmnTimeDomRsrcAlloc;
671 typedef struct schPdschCfgCmn
673 uint8_t numTimeDomAlloc;
674 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
677 typedef struct schPucchCfgCmn
679 uint8_t pucchResourceCommon;
680 uint8_t pucchGroupHopping;
683 /* PUSCH Time Domain Resource Allocation */
684 typedef struct schPuschTimeDomRsrcAlloc
687 SchTimeDomRsrcAllocMappingType mappingType;
689 uint8_t symbolLength;
690 }SchPuschTimeDomRsrcAlloc;
692 typedef struct schPuschCfgCmn
694 uint8_t numTimeDomRsrcAlloc;
695 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
698 typedef struct schK1TimingInfo
701 uint8_t k1Indexes[MAX_NUM_K1_IDX];
704 typedef struct schK0TimingInfo
707 SchK1TimingInfo k1TimingInfo;
710 typedef struct schK0K1TimingInfo
713 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
716 typedef struct schK0K1TimingInfoTbl
719 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
720 }SchK0K1TimingInfoTbl;
722 typedef struct schBwpDlCfg
725 SchPdcchCfgCmn pdcchCommon;
726 SchPdschCfgCmn pdschCommon;
727 SchK0K1TimingInfoTbl k0K1InfoTbl;
730 typedef struct schK2TimingInfo
733 uint8_t k2Indexes[MAX_NUM_K2_IDX];
736 typedef struct schK2TimingInfoTbl
739 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
742 typedef struct schBwpUlCfg
745 SchPucchCfgCmn pucchCommon;
746 SchPuschCfgCmn puschCommon;
747 SchK2TimingInfoTbl msg3K2InfoTbl;
748 SchK2TimingInfoTbl k2InfoTbl;
751 typedef struct schPlmnInfoList
754 uint8_t numSliceSupport; /* Total slice supporting */
755 Snssai **snssai; /* List of supporting snssai*/
758 typedef struct schCellCfg
760 uint16_t cellId; /* Cell Id */
761 uint16_t phyCellId; /* Physical cell id */
762 uint8_t numerology; /* Supported numerology */
763 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
764 uint8_t bandwidth; /* Supported B/W */
765 uint32_t dlFreq; /* DL Frequency */
766 uint32_t ulFreq; /* UL Frequency */
767 SchSsbCfg ssbSchCfg; /* SSB config */
768 SchSib1Cfg sib1SchCfg; /* SIB1 config */
769 SchRachCfg schRachCfg; /* PRACH config */
770 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
771 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
772 SchPlmnInfoList plmnInfoList; /* Consits of PlmnId and Snssai list */
774 TDDCfg tddCfg; /* TDD Cfg */
778 typedef struct schCellCfgCfm
780 uint16_t cellId; /* Cell Id */
784 typedef struct ssbInfo
786 uint8_t ssbIdx; /* SSB Index */
787 TimeDomainAlloc tdAlloc; /* Time domain allocation */
788 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
791 typedef struct sib1AllocInfo
794 PdcchCfg sib1PdcchCfg;
795 PdschCfg sib1PdschCfg;
798 typedef struct prachSchInfo
800 uint8_t numPrachOcas; /* Num Prach Ocassions */
801 uint8_t prachFormat; /* PRACH Format */
802 uint8_t numRa; /* Freq domain ocassion */
803 uint8_t prachStartSymb; /* Freq domain ocassion */
806 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
807 typedef struct dlBrdcstAlloc
809 /* Ssb transmission is determined as follows:
810 * 0 : No tranamission
811 * 1 : SSB Transmission
812 * 2 : SSB Repetition */
814 uint8_t ssbIdxSupported;
815 SsbInfo ssbInfo[MAX_SSB_IDX];
816 /* Sib1 transmission is determined as follows:
817 * 0 : No tranamission
818 * 1 : SIB1 Transmission
819 * 2 : SIB1 Repetition */
821 Sib1AllocInfo sib1Alloc;
824 typedef struct msg3UlGrant
828 FreqDomainAlloc msg3FreqAlloc;
835 typedef struct rarInfo
842 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
846 typedef struct rarAlloc
852 PdcchCfg rarPdcchCfg;
853 PdschCfg rarPdschCfg;
856 typedef struct dlMsgInfo
864 uint8_t harqFeedbackInd;
867 uint16_t dlMsgPduLen;
871 typedef struct lcSchInfo
874 uint32_t schBytes; /* Number of scheduled bytes */
877 typedef struct dlMsgSchedInfo
880 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
882 PdcchCfg dlMsgPdcchCfg;
883 PdschCfg dlMsgPdschCfg;
889 typedef struct dlMsgAlloc
892 uint8_t numSchedInfo;
893 DlMsgSchInfo dlMsgSchedInfo[2];
896 typedef struct schSlotValue
898 SlotTimingInfo currentTime;
899 SlotTimingInfo broadcastTime;
900 SlotTimingInfo rarTime;
901 SlotTimingInfo dlMsgTime;
902 SlotTimingInfo ulDciTime;
905 typedef struct format0_0
907 uint8_t resourceAllocType;
908 /* since we are using type-1, hence rbBitmap excluded */
909 FreqDomainAlloc freqAlloc;
910 TimeDomainAlloc timeAlloc;
913 uint8_t harqProcId; /* HARQ Process ID */
916 uint8_t ndi; /* NDI */
917 uint8_t rv; /* Redundancy Version */
922 typedef struct format0_1
928 typedef struct format1_0
934 typedef struct format1_1
939 typedef struct dciInfo
942 uint16_t crnti; /* CRNI */
943 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
944 BwpCfg bwpCfg; /* BWP Cfg */
945 CoresetCfg coresetCfg; /* Coreset1 Cfg */
946 FormatType formatType; /* DCI Format */
949 Format0_0 format0_0; /* Format 0_0 */
950 Format0_1 format0_1; /* Format 0_1 */
951 Format1_0 format1_0; /* Format 1_0 */
952 Format1_1 format1_1; /* Format 1_1 */
958 typedef struct dlSchedInfo
960 uint16_t cellId; /* Cell Id */
961 SchSlotValue schSlotValue;
963 /* Allocation for broadcast messages */
964 bool isBroadcastPres;
965 DlBrdcstAlloc brdcstAlloc;
967 /* Allocation for RAR message */
968 RarAlloc *rarAlloc[MAX_NUM_UE];
970 /* UL grant in response to BSR */
973 /* Allocation from dedicated DL msg */
974 DlMsgAlloc *dlMsgAlloc[MAX_NUM_UE];
978 typedef struct tbInfo
980 uint8_t qamOrder; /* Modulation Order */
981 uint8_t mcs; /* MCS */
982 SchMcsTable mcsTable; /* MCS Table */
983 uint8_t ndi; /* NDI */
984 uint8_t rv; /* Redundancy Version */
985 uint16_t tbSize; /* TB Size */
988 typedef struct schPuschInfo
991 uint8_t harqProcId; /* HARQ Process ID */
992 uint8_t resAllocType; /* Resource allocation type */
993 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
994 TimeDomainAlloc tdAlloc; /* Time domain allocation */
995 TbInfo tbInfo; /* TB info */
996 uint8_t dmrsMappingType;
997 uint8_t nrOfDmrsSymbols;
1001 typedef struct schPucchFormatCfg
1003 uint8_t interSlotFreqHop;
1005 uint8_t maxCodeRate;
1011 typedef struct schPucchInfo
1014 uint8_t pucchFormat;
1015 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1016 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1019 uint8_t numHarqBits;
1022 uint8_t intraFreqHop;
1023 uint16_t secondPrbHop;
1024 uint8_t initialCyclicShift;
1028 SchPucchFormatCfg cmnFormatCfg;
1031 typedef struct ulSchedInfo
1033 uint16_t cellId; /* Cell Id */
1034 uint16_t crnti; /* CRNI */
1035 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1036 uint8_t dataType; /* Type of info being scheduled */
1037 PrachSchInfo prachSchInfo; /* Prach scheduling info */
1038 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
1039 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
1042 typedef struct rachIndInfo
1046 SlotTimingInfo timingInfo;
1050 uint8_t preambleIdx;
1055 typedef struct crcIndInfo
1059 SlotTimingInfo timingInfo;
1061 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1064 typedef struct boInfo
1067 uint32_t dataVolume;
1070 typedef struct dlRlcBOInfo
1075 uint32_t dataVolume;
1078 /* Info of Scheduling Request to Add/Modify */
1079 typedef struct schSchedReqInfo
1082 SchSrProhibitTimer srProhibitTmr;
1083 SchSrTransMax srTransMax;
1086 /* Scheduling Request Configuration */
1087 typedef struct schSchedReqCfg
1089 uint8_t addModListCount;
1090 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1091 uint8_t relListCount;
1092 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1095 /* Info of Tag to Add/Modify */
1096 typedef struct schTagInfo
1099 SchTimeAlignmentTimer timeAlignmentTmr;
1102 /* Timing Advance Group Configuration */
1103 typedef struct schTagCfg
1105 uint8_t addModListCount;
1106 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1107 uint8_t relListCount;
1108 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1111 /* Configuration for Power headroom reporting */
1112 typedef struct schPhrCfg
1114 SchPhrPeriodicTimer periodicTmr;
1115 SchPhrProhibitTimer prohibitTmr;
1116 SchPhrTxPwrFactorChange txpowerFactorChange;
1119 bool type2OtherCell;
1120 SchPhrModeOtherCG modeOtherCG;
1123 /* MAC cell Group configuration */
1124 typedef struct schMacCellGrpCfg
1126 SchSchedReqCfg schedReqCfg;
1128 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1131 /* Physical Cell Group Configuration */
1132 typedef struct schPhyCellGrpCfg
1134 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1138 /* Control resource set info */
1139 typedef struct schControlRsrcSet
1141 uint8_t cRSetId; /* Control resource set id */
1142 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1144 SchREGMappingType cceRegMappingType;
1145 SchPrecoderGranul precoderGranularity;
1146 uint16_t dmrsScramblingId;
1149 /* Search Space info */
1150 typedef struct schSearchSpace
1152 uint8_t searchSpaceId;
1154 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1155 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1156 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1157 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1158 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1159 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1160 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1161 SchSearchSpaceType searchSpaceType;
1162 uint8_t ueSpecificDciFormat;
1165 /* PDCCH cofniguration */
1166 typedef struct schPdcchConfig
1168 uint8_t numCRsetToAddMod;
1169 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1170 uint8_t numCRsetToRel;
1171 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1172 uint8_t numSearchSpcToAddMod;
1173 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1174 uint8_t numSearchSpcToRel;
1175 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1178 /* PDSCH time domain resource allocation */
1179 typedef struct schPdschTimeDomRsrcAlloc
1182 SchTimeDomRsrcAllocMappingType mappingType;
1183 uint8_t startSymbol;
1184 uint8_t symbolLength;
1185 }SchPdschTimeDomRsrcAlloc;
1188 typedef struct schPdschBundling
1190 struct schStaticBundling
1192 SchBundlingSizeSet2 size;
1194 struct schDynamicBundling
1196 SchBundlingSizeSet1 sizeSet1;
1197 SchBundlingSizeSet2 sizeSet2;
1198 }SchDynamicBundling;
1201 /* DMRS downlink configuration */
1202 typedef struct schDmrsDlCfg
1204 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1207 /* PDSCH Configuration */
1208 typedef struct schPdschConfig
1210 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1211 SchResourceAllocType resourceAllocType;
1212 uint8_t numTimeDomRsrcAlloc;
1213 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1215 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1216 SchBundlingType bundlingType;
1217 SchPdschBundling bundlingInfo;
1220 /* Initial Downlink BWP */
1221 typedef struct schInitalDlBwp
1224 SchPdcchConfig pdcchCfg;
1226 SchPdschConfig pdschCfg;
1228 SchK0K1TimingInfoTbl k0K1InfoTbl;
1231 /* BWP Downlink common */
1232 typedef struct schBwpDlCommon
1236 /* Downlink BWP information */
1237 typedef struct schDlBwpInfo
1242 /* PDCCH Serving Cell configuration */
1243 typedef struct schPdschServCellCfg
1245 uint8_t *maxMimoLayers;
1246 SchNumHarqProcForPdsch numHarqProcForPdsch;
1247 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1248 bool *codeBlkGrpFlushInd;
1249 SchPdschXOverhead *xOverhead;
1250 }SchPdschServCellCfg;
1252 /* PUCCH Configuration */
1253 typedef struct schPucchResrcSetInfo
1256 uint8_t resrcListCount;
1257 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1258 uint8_t maxPayLoadSize;
1259 }SchPucchResrcSetInfo;
1261 typedef struct schPucchResrcSetCfg
1263 uint8_t resrcSetToAddModListCount;
1264 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1265 uint8_t resrcSetToRelListCount;
1266 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1267 }SchPucchResrcSetCfg;
1269 typedef struct schPucchFormat0
1271 uint8_t initialCyclicShift;
1273 uint8_t startSymbolIdx;
1276 typedef struct schPucchFormat1
1278 uint8_t initialCyclicShift;
1280 uint8_t startSymbolIdx;
1284 typedef struct schPucchFormat2_3
1288 uint8_t startSymbolIdx;
1291 typedef struct schPucchFormat4
1296 uint8_t startSymbolIdx;
1299 typedef struct schPucchResrcInfo
1303 uint8_t intraFreqHop;
1304 uint16_t secondPrbHop;
1305 uint8_t pucchFormat;
1307 SchPucchFormat0 *format0;
1308 SchPucchFormat1 *format1;
1309 SchPucchFormat2_3 *format2;
1310 SchPucchFormat2_3 *format3;
1311 SchPucchFormat4 *format4;
1315 typedef struct schPucchResrcCfg
1317 uint8_t resrcToAddModListCount;
1318 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1319 uint8_t resrcToRelListCount;
1320 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1324 typedef struct schSchedReqResrcInfo
1328 uint8_t periodicity;
1331 }SchSchedReqResrcInfo;
1333 typedef struct schPucchSchedReqCfg
1335 uint8_t schedAddModListCount;
1336 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1337 uint8_t schedRelListCount;
1338 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1339 }SchPucchSchedReqCfg;
1341 typedef struct schSpatialRelationInfo
1343 uint8_t spatialRelationId;
1344 uint8_t servCellIdx;
1345 uint8_t pathLossRefRSId;
1347 uint8_t closeLoopIdx;
1348 }SchSpatialRelationInfo;
1350 typedef struct schPucchSpatialCfg
1352 uint8_t spatialAddModListCount;
1353 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1354 uint8_t spatialRelListCount;
1355 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1356 }SchPucchSpatialCfg;
1358 typedef struct schP0PucchCfg
1364 typedef struct schPathLossRefRSCfg
1366 uint8_t pathLossRefRSId;
1367 }SchPathLossRefRSCfg;
1369 typedef struct schPucchMultiCsiCfg
1371 uint8_t multiCsiResrcListCount;
1372 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1373 }SchPucchMultiCsiCfg;
1375 typedef struct schPucchDlDataToUlAck
1377 uint8_t dlDataToUlAckListCount;
1378 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1379 }SchPucchDlDataToUlAck;
1381 typedef struct schPucchPowerControl
1389 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1390 uint8_t pathLossRefRSListCount;
1391 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1392 }SchPucchPowerControl;
1394 typedef struct schPucchCfg
1396 SchPucchResrcSetCfg *resrcSet;
1397 SchPucchResrcCfg *resrc;
1398 SchPucchFormatCfg *format1;
1399 SchPucchFormatCfg *format2;
1400 SchPucchFormatCfg *format3;
1401 SchPucchFormatCfg *format4;
1402 SchPucchSchedReqCfg *schedReq;
1403 SchPucchMultiCsiCfg *multiCsiCfg;
1404 SchPucchSpatialCfg *spatialInfo;
1405 SchPucchDlDataToUlAck *dlDataToUlAck;
1406 SchPucchPowerControl *powerControl;
1409 /* Transform precoding disabled */
1410 typedef struct schTransPrecodDisabled
1412 uint16_t scramblingId0;
1413 }SchTransPrecodDisabled;
1415 /* DMRS Uplink configuration */
1416 typedef struct SchDmrsUlCfg
1418 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1419 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1422 /* PUSCH Configuration */
1423 typedef struct schPuschCfg
1425 uint8_t dataScramblingId;
1426 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1427 SchResourceAllocType resourceAllocType;
1428 uint8_t numTimeDomRsrcAlloc;
1429 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1430 SchTransformPrecoder transformPrecoder;
1433 /* Initial Uplink BWP */
1434 typedef struct schInitialUlBwp
1437 SchPucchCfg pucchCfg;
1439 SchPuschCfg puschCfg;
1441 SchK2TimingInfoTbl k2InfoTbl;
1444 /* Uplink BWP information */
1445 typedef struct schUlBwpInfo
1450 /* Serving cell configuration */
1451 typedef struct schServCellCfgInfo
1453 SchInitalDlBwp initDlBwp;
1454 uint8_t numDlBwpToAdd;
1455 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1456 uint8_t firstActvDlBwpId;
1457 uint8_t defaultDlBwpId;
1458 uint8_t *bwpInactivityTmr;
1459 SchPdschServCellCfg pdschServCellCfg;
1460 SchInitialUlBwp initUlBwp;
1461 uint8_t numUlBwpToAdd;
1462 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1463 uint8_t firstActvUlBwpId;
1464 }SchServCellCfgInfo;
1466 typedef struct schNonDynFiveQi
1471 uint16_t maxDataBurstVol;
1474 typedef struct schDynFiveQi
1477 uint16_t packetDelayBudget;
1478 uint8_t packetErrRateScalar;
1479 uint8_t packetErrRateExp;
1481 uint8_t delayCritical;
1483 uint16_t maxDataBurstVol;
1486 typedef struct schNgRanAllocAndRetPri
1488 uint8_t priorityLevel;
1489 uint8_t preEmptionCap;
1490 uint8_t preEmptionVul;
1491 }SchNgRanAllocAndRetPri;
1493 typedef struct schGrbQosFlowInfo
1495 uint32_t maxFlowBitRateDl;
1496 uint32_t maxFlowBitRateUl;
1497 uint32_t guarFlowBitRateDl;
1498 uint32_t guarFlowBitRateUl;
1502 typedef struct schDrbQos
1504 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1507 SchNonDynFiveQi nonDyn5Qi;
1508 SchDynFiveQi dyn5Qi;
1510 SchNgRanAllocAndRetPri ngRanRetPri;
1511 SchGrbQosFlowInfo grbQosFlowInfo;
1512 uint16_t pduSessionId;
1513 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1516 /* Special cell configuration */
1517 typedef struct schSpCellCfg
1519 uint8_t servCellIdx;
1520 SchServCellCfgInfo servCellCfg;
1523 /* Uplink logical channel configuration */
1524 typedef struct SchUlLcCfg
1529 uint8_t pbr; // prioritisedBitRate
1530 uint8_t bsd; // bucketSizeDuration
1533 /* Downlink logical channel configuration */
1534 typedef struct schDlLcCfg
1536 uint8_t lcp; // logical Channel Prioritization
1539 /* Logical Channel configuration */
1540 typedef struct schLcCfg
1542 ConfigType configType;
1544 SchDrbQosInfo *drbQos;
1550 /* Aggregate max bit rate */
1551 typedef struct schAmbrCfg
1553 uint32_t ulBr; /* Ul BitRate */
1556 typedef struct schModulationInfo
1560 SchMcsTable mcsTable;
1563 /* UE configuration */
1564 typedef struct schUeCfg
1568 bool macCellGrpCfgPres;
1569 SchMacCellGrpCfg macCellGrpCfg;
1570 bool phyCellGrpCfgPres;
1571 SchPhyCellGrpCfg phyCellGrpCfg;
1573 SchSpCellCfg spCellCfg;
1574 SchAmbrCfg *ambrCfg;
1575 SchModulationInfo dlModInfo;
1576 SchModulationInfo ulModInfo;
1578 SchLcCfg schLcCfg[MAX_NUM_LC];
1581 typedef struct schUeCfgRsp
1587 SchFailureCause cause;
1590 typedef struct schUeDelete
1596 typedef struct schUeDeleteRsp
1604 typedef struct schCellDelete
1610 typedef struct schCellDeleteRsp
1616 typedef struct dataVolInfo
1622 typedef struct ulBufferStatusRptInd
1628 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1629 }UlBufferStatusRptInd;
1631 typedef struct srUciIndInfo
1635 SlotTimingInfo slotInd;
1637 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1640 typedef struct schRrmPolicyRatio
1642 uint8_t policyMaxRatio;
1643 uint8_t policyMinRatio;
1644 uint8_t policyDedicatedRatio;
1647 typedef struct schRrmPolicyOfSlice
1650 SchRrmPolicyRatio *rrmPolicyRatioInfo;
1651 }SchRrmPolicyOfSlice;
1653 typedef struct schSliceCfgReq
1655 uint8_t numOfConfiguredSlice;
1656 SchRrmPolicyOfSlice **listOfConfirguration;
1659 typedef struct sliceRsp
1666 typedef struct schSliceRsp
1668 uint8_t numSliceCfgRsp;
1669 SliceRsp **listOfSliceCfgRsp;
1672 /* function pointers */
1673 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1674 Pst *pst, /* Post Structure */
1675 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1678 typedef uint8_t (*SchCellCfgFunc) ARGS((
1679 Pst *pst, /* Post Structure */
1680 SchCellCfg *schCellCfg /* Cell Cfg */
1683 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1684 Pst *pst, /* Post Structure */
1685 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1688 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1689 Pst *pst, /* Post Structure */
1690 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1693 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1694 Pst *pst, /* Post structure */
1695 RachIndInfo *rachInd)); /* Rach Indication Info */
1697 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1698 Pst *pst, /* Post structure */
1699 CrcIndInfo *crcInd)); /* CRC Info */
1701 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1702 Pst *pst, /* Post structure */
1703 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1705 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1706 Pst *pst, /* Post structure */
1707 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1709 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1710 Pst *pst, /* Post structure */
1711 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1713 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1714 Pst *pst, /* Post structure */
1715 SlotTimingInfo *slotInd)); /* Slot Info */
1717 typedef uint8_t (*MacSchBsrFunc) ARGS((
1719 UlBufferStatusRptInd *bsrInd
1722 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1723 Pst *pst, /* Post structure */
1724 SrUciIndInfo *uciInd)); /* UCI IND Info */
1726 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1727 Pst *pst, /* Post structure */
1728 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1730 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1731 Pst *pst, /* Post structure */
1732 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1734 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1735 Pst *pst, /* Post structure */
1736 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1738 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1739 Pst *pst, /* Post structure */
1740 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1742 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1743 Pst *pst, /* Post structure */
1744 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1746 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1747 Pst *pst, /* Post structure */
1748 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1750 typedef uint8_t (*MacSchSliceCfgReqFunc) ARGS((
1751 Pst *pst, /* Post structure */
1752 SchSliceCfgReq *schSliceCfgReq)); /* Scheduler Slice Cfg Req */
1754 typedef uint8_t (*SchSliceCfgRspFunc) ARGS((
1755 Pst *pst, /* Post Structure */
1756 SchSliceCfgRsp *schSliceCfgRsp /* Cell Cfg Cfm */
1759 typedef uint8_t (*MacSchSliceReCfgReqFunc) ARGS((
1760 Pst *pst, /* Post structure */
1761 SchSliceCfgReq *schSliceReCfgReq)); /* Scheduler Slice ReCfg Req */
1763 typedef uint8_t (*SchSliceReCfgRspFunc) ARGS((
1764 Pst *pst, /* Post Structure */
1765 SchSliceCfgRsp *schSliceReCfgRsp /* Cell ReCfg Cfm */
1767 /* function declarations */
1768 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1769 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1770 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1771 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1772 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1773 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1774 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1775 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1776 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1777 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1778 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1779 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1780 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1781 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1782 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1783 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1784 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1785 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1786 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1787 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1788 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1789 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1790 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1791 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1792 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1793 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1794 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1795 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1796 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1797 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1798 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1799 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1800 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1801 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1802 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1803 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1804 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1805 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1806 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1807 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1808 uint8_t packMacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1809 uint8_t MacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1810 uint8_t packSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1811 uint8_t MacProcSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1812 uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1813 uint8_t MacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1814 uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1815 uint8_t MacProcSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *sliceReCfgrsp);
1816 /**********************************************************************
1818 **********************************************************************/