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_GEN_CFG 1
21 #define EVENT_SCH_CELL_CFG 2
22 #define EVENT_SCH_CELL_CFG_CFM 3
23 #define EVENT_DL_SCH_INFO 4
24 #define EVENT_UL_SCH_INFO 5
25 #define EVENT_RACH_IND_TO_SCH 6
26 #define EVENT_CRC_IND_TO_SCH 7
27 #define EVENT_DL_RLC_BO_INFO_TO_SCH 8
28 #define EVENT_ADD_UE_CONFIG_REQ_TO_SCH 9
29 #define EVENT_UE_CONFIG_RSP_TO_MAC 10
30 #define EVENT_SLOT_IND_TO_SCH 11
31 #define EVENT_SHORT_BSR 12
32 #define EVENT_UCI_IND_TO_SCH 13
33 #define EVENT_MODIFY_UE_CONFIG_REQ_TO_SCH 14
34 #define EVENT_UE_RECONFIG_RSP_TO_MAC 15
35 #define EVENT_UE_DELETE_REQ_TO_SCH 16
36 #define EVENT_UE_DELETE_RSP_TO_MAC 17
37 #define EVENT_CELL_DELETE_REQ_TO_SCH 18
38 #define EVENT_CELL_DELETE_RSP_TO_MAC 19
39 #define EVENT_LONG_BSR 20
40 #define EVENT_SLICE_CFG_REQ_TO_SCH 21
41 #define EVENT_SLICE_CFG_RSP_TO_MAC 22
42 #define EVENT_SLICE_RECFG_REQ_TO_SCH 23
43 #define EVENT_SLICE_RECFG_RSP_TO_MAC 24
44 #define EVENT_RACH_RESOURCE_REQUEST_TO_SCH 25
45 #define EVENT_RACH_RESOURCE_RESPONSE_TO_MAC 26
46 #define EVENT_PAGING_IND_TO_SCH 27
49 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
50 #define SCH_SSB_MASK_SIZE 1
52 #define MAX_NUM_PRG 1 /* max value should be later 275 */
53 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
54 #define MAX_CODEWORDS 1 /* max should be 2 */
55 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
56 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
58 /* Datatype in UL SCH Info */
59 #define SCH_DATATYPE_PUSCH 1
60 #define SCH_DATATYPE_PUSCH_UCI 2
61 #define SCH_DATATYPE_UCI 4
62 #define SCH_DATATYPE_SRS 8
63 #define SCH_DATATYPE_PRACH 16
65 #define MAX_NUMBER_OF_CRC_IND_BITS 1
66 #define MAX_NUMBER_OF_UCI_IND_BITS 1
67 #define MAX_SR_BITS_IN_BYTES 1
68 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
69 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
70 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
71 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
72 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
73 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
74 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
75 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
76 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
77 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
79 /* PUCCH Configuration Macro */
80 #define MAX_NUM_PUCCH_RESRC 128
81 #define MAX_NUM_PUCCH_RESRC_SET 4
82 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
83 #define MAX_NUM_SPATIAL_RELATIONS 8
84 #define MAX_NUM_PUCCH_P0_PER_SET 8
85 #define MAX_NUM_PATH_LOSS_REF_RS 4
86 #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 */
91 #define UL_TX_BUFFER_SIZE 5
93 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
94 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
95 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
96 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
97 #define MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
98 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
99 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
100 #define DEFAULT_K2_VALUE_FOR_SCS15 1
101 #define DEFAULT_K2_VALUE_FOR_SCS30 1
102 #define DEFAULT_K2_VALUE_FOR_SCS60 2
103 #define DEFAULT_K2_VALUE_FOR_SCS120 3
105 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr) \
107 if ((crntTime.slot + incr) > (MAX_SLOTS - 1)) \
109 toFill.sfn = (crntTime.sfn + 1); \
113 toFill.sfn = crntTime.sfn; \
115 toFill.slot = (crntTime.slot + incr) % MAX_SLOTS; \
116 if (toFill.sfn >= MAX_SFN) \
118 toFill.sfn%=MAX_SFN; \
126 RRC_CONNECTED_USERS_RSRC
146 RESOURCE_UNAVAILABLE,
183 TIME_ALIGNMENT_TIMER_MS500,
184 TIME_ALIGNMENT_TIMER_MS750,
185 TIME_ALIGNMENT_TIMER_MS1280,
186 TIME_ALIGNMENT_TIMER_MS1920,
187 TIME_ALIGNMENT_TIMER_MS2560,
188 TIME_ALIGNMENT_TIMER_MS5120,
189 TIME_ALIGNMENT_TIMER_MS10240,
190 TIME_ALIGNMENT_TIMER_INFINITE
191 }SchTimeAlignmentTimer;
195 PHR_PERIODIC_TIMER_SF10,
196 PHR_PERIODIC_TIMER_SF20,
197 PHR_PERIODIC_TIMER_SF50,
198 PHR_PERIODIC_TIMER_SF100,
199 PHR_PERIODIC_TIMER_SF200,
200 PHR_PERIODIC_TIMER_SF500,
201 PHR_PERIODIC_TIMER_SF1000,
202 PHR_PERIODIC_TIMER_INFINITE
203 }SchPhrPeriodicTimer;
207 PHR_PROHIBIT_TIMER_SF0,
208 PHR_PROHIBIT_TIMER_SF10,
209 PHR_PROHIBIT_TIMER_SF20,
210 PHR_PROHIBIT_TIMER_SF50,
211 PHR_PROHIBIT_TIMER_SF100,
212 PHR_PROHIBIT_TIMER_SF200,
213 PHR_PROHIBIT_TIMER_SF500,
214 PHR_PROHIBIT_TIMER_SF1000
215 }SchPhrProhibitTimer;
219 PHR_TX_PWR_FACTOR_CHANGE_DB1,
220 PHR_TX_PWR_FACTOR_CHANGE_DB3,
221 PHR_TX_PWR_FACTOR_CHANGE_DB6,
222 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
223 }SchPhrTxPwrFactorChange;
233 HARQ_ACK_CODEBOOK_SEMISTATIC,
234 HARQ_ACK_CODEBOOK_DYNAMIC
235 }SchPdschHarqAckCodebook;
239 NUM_HARQ_PROC_FOR_PDSCH_N2,
240 NUM_HARQ_PROC_FOR_PDSCH_N4,
241 NUM_HARQ_PROC_FOR_PDSCH_N6,
242 NUM_HARQ_PROC_FOR_PDSCH_N10,
243 NUM_HARQ_PROC_FOR_PDSCH_N16
244 }SchNumHarqProcForPdsch;
248 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
249 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
250 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
251 MAX_CODE_BLOCK_GROUP_PER_TB_N8
252 }SchMaxCodeBlkGrpPerTB;
256 PDSCH_X_OVERHEAD_XOH_6,
257 PDSCH_X_OVERHEAD_XOH_12,
258 PDSCH_X_OVERHEAD_XOH_18
263 DMRS_ADDITIONAL_POS0,
264 DMRS_ADDITIONAL_POS1,
266 }SchDmrsAdditionPosition;
270 RESOURCE_ALLOCTION_TYPE_0,
271 RESOURCE_ALLOCTION_TYPE_1,
272 RESOURCE_ALLOCTION_DYN_SWITCH
273 }SchResourceAllocType;
277 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
278 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
279 }SchTimeDomRsrcAllocMappingType;
283 ENABLED_TRANSFORM_PRECODER,
284 DISABLED_TRANSFORM_PRECODER
285 }SchTransformPrecoder;
289 INTERLEAVED_CCE_REG_MAPPING = 1,
290 NONINTERLEAVED_CCE_REG_MAPPING
295 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
296 SLOT_PERIODICITY_AND_OFFSET_SL_2,
297 SLOT_PERIODICITY_AND_OFFSET_SL_4,
298 SLOT_PERIODICITY_AND_OFFSET_SL_5,
299 SLOT_PERIODICITY_AND_OFFSET_SL_8,
300 SLOT_PERIODICITY_AND_OFFSET_SL_10,
301 SLOT_PERIODICITY_AND_OFFSET_SL_16,
302 SLOT_PERIODICITY_AND_OFFSET_SL_20,
303 SLOT_PERIODICITY_AND_OFFSET_SL_40,
304 SLOT_PERIODICITY_AND_OFFSET_SL_80,
305 SLOT_PERIODICITY_AND_OFFSET_SL_160,
306 SLOT_PERIODICITY_AND_OFFSET_SL_320,
307 SLOT_PERIODICITY_AND_OFFSET_SL_640,
308 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
309 SLOT_PERIODICITY_AND_OFFSET_SL_2560
310 }SchMSlotPeriodAndOffset;
320 SEARCH_SPACE_TYPE_COMMON = 1,
321 SEARCH_SPACE_TYPE_UE_SPECIFIC
326 SCH_QOS_NON_DYNAMIC = 1,
332 AGGREGATION_LEVEL_N0,
333 AGGREGATION_LEVEL_N1,
334 AGGREGATION_LEVEL_N2,
335 AGGREGATION_LEVEL_N3,
336 AGGREGATION_LEVEL_N4,
337 AGGREGATION_LEVEL_N5,
338 AGGREGATION_LEVEL_N6,
350 CODE_WORDS_SCHED_BY_DCI_N1,
351 CODE_WORDS_SCHED_BY_DCI_N2
352 }SchCodeWordsSchedByDci;
356 STATIC_BUNDLING_TYPE = 1,
357 DYNAMIC_BUNDLING_TYPE
363 SCH_SET1_SIZE_WIDEBAND,
364 SCH_SET1_SIZE_N2_WIDEBAND,
365 SCH_SET1_SIZE_N4_WIDEBAND
366 }SchBundlingSizeSet1;
371 SCH_SET2_SIZE_WIDEBAND
372 }SchBundlingSizeSet2;
414 SCH_MCS_TABLE_QAM_64,
415 SCH_MCS_TABLE_QAM_256,
416 SCH_MCS_TABLE_QAM_64_LOW_SE
429 DATA_TRANSMISSION_ALLOWED,
430 STOP_DATA_TRANSMISSION,
431 RESTART_DATA_TRANSMISSION
432 }SchDataTransmission;
435 typedef struct timeDomainAlloc
441 typedef struct freqDomainAlloc
450 uint32_t ssbPbchPwr; /* SSB block power */
451 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
452 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
453 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
454 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
455 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
457 /*Ref:Spec 38.331 "ssb-PositionsInBurst", Value 0 in Bitmap => corresponding SS/PBCH block is not transmitted
458 *value 1 => corresponding SS/PBCH block is transmitted*/
459 uint8_t totNumSsb; /*S = Total Number of Actual SSB transmitted*/
462 typedef struct bwpCfg
464 uint8_t subcarrierSpacing;
465 uint8_t cyclicPrefix;
466 FreqDomainAlloc freqAlloc;
472 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
475 typedef struct beamformingInfo
479 uint8_t digBfInterfaces;
480 Prg prg[MAX_NUM_PRG];
483 /* SIB1 PDSCH structures */
485 typedef struct codewordinfo
487 uint16_t targetCodeRate;
495 typedef struct dmrsInfo
497 uint16_t dlDmrsSymbPos;
498 uint8_t dmrsConfigType;
499 uint16_t dlDmrsScramblingId;
501 uint8_t numDmrsCdmGrpsNoData;
504 uint8_t nrOfDmrsSymbols;
508 typedef struct pdschFreqAlloc
510 uint8_t resourceAllocType;
511 /* since we are using type-1, rbBitmap excluded */
512 FreqDomainAlloc freqAlloc;
513 uint8_t vrbPrbMapping;
516 typedef struct pdschTimeAlloc
519 TimeDomainAlloc timeAlloc;
522 typedef struct txPowerPdschInfo
524 uint8_t powerControlOffset;
525 uint8_t powerControlOffsetSS;
528 typedef struct pdschCfg
533 uint8_t numCodewords;
534 CodewordInfo codeword[MAX_CODEWORDS];
535 uint16_t dataScramblingId;
537 uint8_t transmissionScheme;
540 PdschFreqAlloc pdschFreqAlloc;
541 PdschTimeAlloc pdschTimeAlloc;
542 BeamformingInfo beamPdschInfo;
543 TxPowerPdschInfo txPdschPower;
545 /* SIB1 PDSCH structures end */
547 /* SIB1 interface structure */
549 typedef struct coresetCfg
552 uint8_t startSymbolIndex;
553 uint8_t durationSymbols;
554 uint8_t freqDomainResource[6];
555 uint8_t cceRegMappingType;
556 uint8_t regBundleSize;
557 uint8_t interleaverSize;
560 uint8_t precoderGranularity;
562 uint8_t aggregationLevel;
565 typedef struct txPowerPdcchInfo
568 uint8_t powerControlOffsetSS;
574 uint16_t scramblingId;
575 uint16_t scramblingRnti;
578 BeamformingInfo beamPdcchInfo;
579 TxPowerPdcchInfo txPdcchPower;
583 typedef struct pdcchCfg
585 /* coreset-0 configuration */
586 CoresetCfg coresetCfg;
589 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
591 /* end of SIB1 PDCCH structures */
593 typedef struct pageCfg
595 uint8_t numPO; /*Derived from Ns*/
596 bool poPresent; /*FirstPDCCH-MonitoringPO is present or not*/
597 uint16_t pagingOcc[MAX_PO_PER_PF]; /*FirstPDCCH-Monitoring Paging Occasion*/
602 /* parameters recieved from DU-APP */
604 uint16_t sib1RepetitionPeriod;
605 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
606 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
609 /* parameters derived in scheduler */
612 PdcchCfg sib1PdcchCfg;
613 PdschCfg sib1PdschCfg;
614 PageCfg pageCfg; /*Config of Paging*/
617 typedef struct schRachCfg
619 uint8_t prachCfgIdx; /* PRACH config idx */
620 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
621 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
622 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
623 uint8_t rootSeqLen; /* root sequence length */
624 uint16_t rootSeqIdx; /* Root sequence index */
625 uint8_t numRootSeq; /* Number of root sequences required for FD */
626 uint16_t k1; /* Frequency Offset for each FD */
627 uint8_t totalNumRaPreamble; /* Total number of RA preambles */
628 uint8_t ssbPerRach; /* SSB per RACH occassion */
629 uint8_t numCbPreamblePerSsb; /* Number of CB preamble per SSB */
630 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
631 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
632 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
633 uint8_t raRspWindow; /* RA Response Window */
636 typedef struct schBwpParams
638 FreqDomainAlloc freqAlloc;
640 uint8_t cyclicPrefix;
643 typedef struct schCandidatesInfo
652 typedef struct schSearchSpaceCfg
654 uint8_t searchSpaceId;
656 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
657 uint16_t monitoringSlot;
659 uint16_t monitoringSymbol;
660 SchCandidatesInfo candidate;
663 typedef struct schPdcchCfgCmn
665 SchSearchSpaceCfg commonSearchSpace;
666 uint8_t raSearchSpaceId;
669 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
674 uint8_t lengthSymbol;
675 }SchPdschCfgCmnTimeDomRsrcAlloc;
677 typedef struct schPdschCfgCmn
679 uint8_t numTimeDomAlloc;
680 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
683 typedef struct schPucchCfgCmn
685 uint8_t pucchResourceCommon;
686 uint8_t pucchGroupHopping;
689 /* PUSCH Time Domain Resource Allocation */
690 typedef struct schPuschTimeDomRsrcAlloc
693 SchTimeDomRsrcAllocMappingType mappingType;
695 uint8_t symbolLength;
696 }SchPuschTimeDomRsrcAlloc;
698 typedef struct schPuschCfgCmn
700 uint8_t numTimeDomRsrcAlloc;
701 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
704 typedef struct schK1TimingInfo
707 uint8_t k1Indexes[MAX_NUM_K1_IDX];
710 typedef struct schK0TimingInfo
713 SchK1TimingInfo k1TimingInfo;
716 typedef struct schK0K1TimingInfo
719 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
722 typedef struct schK0K1TimingInfoTbl
725 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
726 }SchK0K1TimingInfoTbl;
728 typedef struct schBwpDlCfg
731 SchPdcchCfgCmn pdcchCommon;
732 SchPdschCfgCmn pdschCommon;
733 SchK0K1TimingInfoTbl k0K1InfoTbl;
736 typedef struct schK2TimingInfo
739 uint8_t k2Indexes[MAX_NUM_K2_IDX];
742 typedef struct schK2TimingInfoTbl
745 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
748 typedef struct schBwpUlCfg
751 SchPucchCfgCmn pucchCommon;
752 SchPuschCfgCmn puschCommon;
753 SchK2TimingInfoTbl msg3K2InfoTbl;
754 SchK2TimingInfoTbl k2InfoTbl;
757 typedef struct schPlmnInfoList
760 uint8_t numSliceSupport; /* Total slice supporting */
761 Snssai **snssai; /* List of supporting snssai*/
764 typedef struct schCellCfg
766 uint16_t cellId; /* Cell Id */
767 uint16_t phyCellId; /* Physical cell id */
768 uint8_t numerology; /* Supported numerology */
769 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
770 uint8_t bandwidth; /* Supported B/W */
771 uint32_t dlFreq; /* DL Frequency */
772 uint32_t ulFreq; /* UL Frequency */
773 SchSsbCfg ssbSchCfg; /* SSB config */
774 SchSib1Cfg sib1SchCfg; /* SIB1 config */
775 SchRachCfg schRachCfg; /* PRACH config */
776 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
777 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
778 SchPlmnInfoList plmnInfoList; /* Consits of PlmnId and Snssai list */
780 TDDCfg tddCfg; /* TDD Cfg */
784 typedef struct schCellCfgCfm
786 uint16_t cellId; /* Cell Id */
790 typedef struct ssbInfo
792 uint8_t ssbIdx; /* SSB Index */
793 TimeDomainAlloc tdAlloc; /* Time domain allocation */
794 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
797 typedef struct sib1AllocInfo
800 PdcchCfg sib1PdcchCfg;
801 PdschCfg sib1PdschCfg;
804 typedef struct prachSchInfo
806 uint8_t numPrachOcas; /* Num Prach Ocassions */
807 uint8_t prachFormat; /* PRACH Format */
808 uint8_t numRa; /* Freq domain ocassion */
809 uint8_t prachStartSymb; /* Freq domain ocassion */
812 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
813 typedef struct dlBrdcstAlloc
815 /* Ssb transmission is determined as follows:
816 * 0 : No tranamission
817 * 1 : SSB Transmission
818 * 2 : SSB Repetition */
820 uint8_t ssbIdxSupported;
821 SsbInfo ssbInfo[MAX_SSB_IDX];
822 /* Sib1 transmission is determined as follows:
823 * 0 : No tranamission
824 * 1 : SIB1 Transmission
825 * 2 : SIB1 Repetition */
827 Sib1AllocInfo sib1Alloc;
830 typedef struct msg3UlGrant
834 FreqDomainAlloc msg3FreqAlloc;
841 typedef struct rarInfo
848 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
852 typedef struct rarAlloc
858 PdcchCfg rarPdcchCfg;
859 PdschCfg rarPdschCfg;
862 typedef struct dlMsgInfo
870 uint8_t harqFeedbackInd;
873 uint16_t dlMsgPduLen;
877 typedef struct lcSchInfo
880 uint32_t schBytes; /* Number of scheduled bytes */
883 typedef struct dlMsgSchedInfo
886 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
888 PdcchCfg dlMsgPdcchCfg;
889 PdschCfg dlMsgPdschCfg;
895 typedef struct dlMsgAlloc
898 uint8_t numSchedInfo;
899 DlMsgSchInfo dlMsgSchedInfo[2];
902 typedef struct schSlotValue
904 SlotTimingInfo currentTime;
905 SlotTimingInfo broadcastTime;
906 SlotTimingInfo rarTime;
907 SlotTimingInfo dlMsgTime;
908 SlotTimingInfo ulDciTime;
911 typedef struct format0_0
913 uint8_t resourceAllocType;
914 /* since we are using type-1, hence rbBitmap excluded */
915 FreqDomainAlloc freqAlloc;
916 TimeDomainAlloc timeAlloc;
919 uint8_t harqProcId; /* HARQ Process ID */
922 uint8_t ndi; /* NDI */
923 uint8_t rv; /* Redundancy Version */
928 typedef struct format0_1
934 typedef struct format1_0
940 typedef struct format1_1
945 typedef struct dciInfo
948 uint16_t crnti; /* CRNI */
949 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
950 BwpCfg bwpCfg; /* BWP Cfg */
951 CoresetCfg coresetCfg; /* Coreset1 Cfg */
952 FormatType formatType; /* DCI Format */
955 Format0_0 format0_0; /* Format 0_0 */
956 Format0_1 format0_1; /* Format 0_1 */
957 Format1_0 format1_0; /* Format 1_0 */
958 Format1_1 format1_1; /* Format 1_1 */
964 typedef struct dlSchedInfo
966 uint16_t cellId; /* Cell Id */
967 SchSlotValue schSlotValue;
969 /* Allocation for broadcast messages */
970 bool isBroadcastPres;
971 DlBrdcstAlloc brdcstAlloc;
973 /* Allocation for RAR message */
974 RarAlloc *rarAlloc[MAX_NUM_UE];
976 /* UL grant in response to BSR */
979 /* Allocation from dedicated DL msg */
980 DlMsgAlloc *dlMsgAlloc[MAX_NUM_UE];
984 typedef struct tbInfo
986 uint8_t qamOrder; /* Modulation Order */
987 uint8_t mcs; /* MCS */
988 SchMcsTable mcsTable; /* MCS Table */
989 uint8_t ndi; /* NDI */
990 uint8_t rv; /* Redundancy Version */
991 uint16_t tbSize; /* TB Size */
994 typedef struct schPuschInfo
997 uint8_t harqProcId; /* HARQ Process ID */
998 uint8_t resAllocType; /* Resource allocation type */
999 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1000 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1001 TbInfo tbInfo; /* TB info */
1002 uint8_t dmrsMappingType;
1003 uint8_t nrOfDmrsSymbols;
1007 typedef struct schPucchFormatCfg
1009 uint8_t interSlotFreqHop;
1011 uint8_t maxCodeRate;
1017 typedef struct schPucchInfo
1020 uint8_t pucchFormat;
1021 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1022 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1025 uint8_t numHarqBits;
1028 uint8_t intraFreqHop;
1029 uint16_t secondPrbHop;
1030 uint8_t initialCyclicShift;
1034 SchPucchFormatCfg cmnFormatCfg;
1037 typedef struct ulSchedInfo
1039 uint16_t cellId; /* Cell Id */
1040 uint16_t crnti; /* CRNI */
1041 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1042 uint8_t dataType; /* Type of info being scheduled */
1043 PrachSchInfo prachSchInfo; /* Prach scheduling info */
1044 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
1045 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
1048 typedef struct rachIndInfo
1052 SlotTimingInfo timingInfo;
1056 uint8_t preambleIdx;
1061 typedef struct crcIndInfo
1065 SlotTimingInfo timingInfo;
1067 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1070 typedef struct boInfo
1073 uint32_t dataVolume;
1076 typedef struct dlRlcBOInfo
1081 uint32_t dataVolume;
1084 /* Info of Scheduling Request to Add/Modify */
1085 typedef struct schSchedReqInfo
1088 SchSrProhibitTimer srProhibitTmr;
1089 SchSrTransMax srTransMax;
1092 /* Scheduling Request Configuration */
1093 typedef struct schSchedReqCfg
1095 uint8_t addModListCount;
1096 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1097 uint8_t relListCount;
1098 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1101 /* Info of Tag to Add/Modify */
1102 typedef struct schTagInfo
1105 SchTimeAlignmentTimer timeAlignmentTmr;
1108 /* Timing Advance Group Configuration */
1109 typedef struct schTagCfg
1111 uint8_t addModListCount;
1112 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1113 uint8_t relListCount;
1114 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1117 /* Configuration for Power headroom reporting */
1118 typedef struct schPhrCfg
1120 SchPhrPeriodicTimer periodicTmr;
1121 SchPhrProhibitTimer prohibitTmr;
1122 SchPhrTxPwrFactorChange txpowerFactorChange;
1125 bool type2OtherCell;
1126 SchPhrModeOtherCG modeOtherCG;
1129 /* MAC cell Group configuration */
1130 typedef struct schMacCellGrpCfg
1132 SchSchedReqCfg schedReqCfg;
1134 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1137 /* Physical Cell Group Configuration */
1138 typedef struct schPhyCellGrpCfg
1140 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1144 /* Control resource set info */
1145 typedef struct schControlRsrcSet
1147 uint8_t cRSetId; /* Control resource set id */
1148 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1150 SchREGMappingType cceRegMappingType;
1151 SchPrecoderGranul precoderGranularity;
1152 uint16_t dmrsScramblingId;
1155 /* Search Space info */
1156 typedef struct schSearchSpace
1158 uint8_t searchSpaceId;
1160 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1161 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1162 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1163 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1164 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1165 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1166 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1167 SchSearchSpaceType searchSpaceType;
1168 uint8_t ueSpecificDciFormat;
1171 /* PDCCH cofniguration */
1172 typedef struct schPdcchConfig
1174 uint8_t numCRsetToAddMod;
1175 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1176 uint8_t numCRsetToRel;
1177 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1178 uint8_t numSearchSpcToAddMod;
1179 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1180 uint8_t numSearchSpcToRel;
1181 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1184 /* PDSCH time domain resource allocation */
1185 typedef struct schPdschTimeDomRsrcAlloc
1188 SchTimeDomRsrcAllocMappingType mappingType;
1189 uint8_t startSymbol;
1190 uint8_t symbolLength;
1191 }SchPdschTimeDomRsrcAlloc;
1194 typedef struct schPdschBundling
1196 struct schStaticBundling
1198 SchBundlingSizeSet2 size;
1200 struct schDynamicBundling
1202 SchBundlingSizeSet1 sizeSet1;
1203 SchBundlingSizeSet2 sizeSet2;
1204 }SchDynamicBundling;
1207 /* DMRS downlink configuration */
1208 typedef struct schDmrsDlCfg
1210 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1213 /* PDSCH Configuration */
1214 typedef struct schPdschConfig
1216 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1217 SchResourceAllocType resourceAllocType;
1218 uint8_t numTimeDomRsrcAlloc;
1219 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1221 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1222 SchBundlingType bundlingType;
1223 SchPdschBundling bundlingInfo;
1226 /* Initial Downlink BWP */
1227 typedef struct schInitalDlBwp
1230 SchPdcchConfig pdcchCfg;
1232 SchPdschConfig pdschCfg;
1234 SchK0K1TimingInfoTbl k0K1InfoTbl;
1237 /* BWP Downlink common */
1238 typedef struct schBwpDlCommon
1242 /* Downlink BWP information */
1243 typedef struct schDlBwpInfo
1248 /* PDCCH Serving Cell configuration */
1249 typedef struct schPdschServCellCfg
1251 uint8_t *maxMimoLayers;
1252 SchNumHarqProcForPdsch numHarqProcForPdsch;
1253 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1254 bool *codeBlkGrpFlushInd;
1255 SchPdschXOverhead *xOverhead;
1256 }SchPdschServCellCfg;
1258 /* PUCCH Configuration */
1259 typedef struct schPucchResrcSetInfo
1262 uint8_t resrcListCount;
1263 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1264 uint8_t maxPayLoadSize;
1265 }SchPucchResrcSetInfo;
1267 typedef struct schPucchResrcSetCfg
1269 uint8_t resrcSetToAddModListCount;
1270 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1271 uint8_t resrcSetToRelListCount;
1272 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1273 }SchPucchResrcSetCfg;
1275 typedef struct schPucchFormat0
1277 uint8_t initialCyclicShift;
1279 uint8_t startSymbolIdx;
1282 typedef struct schPucchFormat1
1284 uint8_t initialCyclicShift;
1286 uint8_t startSymbolIdx;
1290 typedef struct schPucchFormat2_3
1294 uint8_t startSymbolIdx;
1297 typedef struct schPucchFormat4
1302 uint8_t startSymbolIdx;
1305 typedef struct schPucchResrcInfo
1309 uint8_t intraFreqHop;
1310 uint16_t secondPrbHop;
1311 uint8_t pucchFormat;
1313 SchPucchFormat0 *format0;
1314 SchPucchFormat1 *format1;
1315 SchPucchFormat2_3 *format2;
1316 SchPucchFormat2_3 *format3;
1317 SchPucchFormat4 *format4;
1321 typedef struct schPucchResrcCfg
1323 uint8_t resrcToAddModListCount;
1324 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1325 uint8_t resrcToRelListCount;
1326 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1330 typedef struct schSchedReqResrcInfo
1334 uint8_t periodicity;
1337 }SchSchedReqResrcInfo;
1339 typedef struct schPucchSchedReqCfg
1341 uint8_t schedAddModListCount;
1342 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1343 uint8_t schedRelListCount;
1344 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1345 }SchPucchSchedReqCfg;
1347 typedef struct schSpatialRelationInfo
1349 uint8_t spatialRelationId;
1350 uint8_t servCellIdx;
1351 uint8_t pathLossRefRSId;
1353 uint8_t closeLoopIdx;
1354 }SchSpatialRelationInfo;
1356 typedef struct schPucchSpatialCfg
1358 uint8_t spatialAddModListCount;
1359 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1360 uint8_t spatialRelListCount;
1361 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1362 }SchPucchSpatialCfg;
1364 typedef struct schP0PucchCfg
1370 typedef struct schPathLossRefRSCfg
1372 uint8_t pathLossRefRSId;
1373 }SchPathLossRefRSCfg;
1375 typedef struct schPucchMultiCsiCfg
1377 uint8_t multiCsiResrcListCount;
1378 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1379 }SchPucchMultiCsiCfg;
1381 typedef struct schPucchDlDataToUlAck
1383 uint8_t dlDataToUlAckListCount;
1384 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1385 }SchPucchDlDataToUlAck;
1387 typedef struct schPucchPowerControl
1395 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1396 uint8_t pathLossRefRSListCount;
1397 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1398 }SchPucchPowerControl;
1400 typedef struct schPucchCfg
1402 SchPucchResrcSetCfg *resrcSet;
1403 SchPucchResrcCfg *resrc;
1404 SchPucchFormatCfg *format1;
1405 SchPucchFormatCfg *format2;
1406 SchPucchFormatCfg *format3;
1407 SchPucchFormatCfg *format4;
1408 SchPucchSchedReqCfg *schedReq;
1409 SchPucchMultiCsiCfg *multiCsiCfg;
1410 SchPucchSpatialCfg *spatialInfo;
1411 SchPucchDlDataToUlAck *dlDataToUlAck;
1412 SchPucchPowerControl *powerControl;
1415 /* Transform precoding disabled */
1416 typedef struct schTransPrecodDisabled
1418 uint16_t scramblingId0;
1419 }SchTransPrecodDisabled;
1421 /* DMRS Uplink configuration */
1422 typedef struct SchDmrsUlCfg
1424 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1425 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1428 /* PUSCH Configuration */
1429 typedef struct schPuschCfg
1431 uint8_t dataScramblingId;
1432 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1433 SchResourceAllocType resourceAllocType;
1434 uint8_t numTimeDomRsrcAlloc;
1435 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1436 SchTransformPrecoder transformPrecoder;
1439 /* Initial Uplink BWP */
1440 typedef struct schInitialUlBwp
1443 SchPucchCfg pucchCfg;
1445 SchPuschCfg puschCfg;
1447 SchK2TimingInfoTbl k2InfoTbl;
1450 /* Uplink BWP information */
1451 typedef struct schUlBwpInfo
1456 /* Serving cell configuration */
1457 typedef struct schServCellCfgInfo
1459 SchInitalDlBwp initDlBwp;
1460 uint8_t numDlBwpToAdd;
1461 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1462 uint8_t firstActvDlBwpId;
1463 uint8_t defaultDlBwpId;
1464 uint8_t *bwpInactivityTmr;
1465 SchPdschServCellCfg pdschServCellCfg;
1466 SchInitialUlBwp initUlBwp;
1467 uint8_t numUlBwpToAdd;
1468 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1469 uint8_t firstActvUlBwpId;
1470 }SchServCellCfgInfo;
1472 typedef struct schNonDynFiveQi
1477 uint16_t maxDataBurstVol;
1480 typedef struct schDynFiveQi
1483 uint16_t packetDelayBudget;
1484 uint8_t packetErrRateScalar;
1485 uint8_t packetErrRateExp;
1487 uint8_t delayCritical;
1489 uint16_t maxDataBurstVol;
1492 typedef struct schNgRanAllocAndRetPri
1494 uint8_t priorityLevel;
1495 uint8_t preEmptionCap;
1496 uint8_t preEmptionVul;
1497 }SchNgRanAllocAndRetPri;
1499 typedef struct schGrbQosFlowInfo
1501 uint32_t maxFlowBitRateDl;
1502 uint32_t maxFlowBitRateUl;
1503 uint32_t guarFlowBitRateDl;
1504 uint32_t guarFlowBitRateUl;
1508 typedef struct schDrbQos
1510 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1513 SchNonDynFiveQi nonDyn5Qi;
1514 SchDynFiveQi dyn5Qi;
1516 SchNgRanAllocAndRetPri ngRanRetPri;
1517 SchGrbQosFlowInfo grbQosFlowInfo;
1518 uint16_t pduSessionId;
1519 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1522 /* Special cell configuration */
1523 typedef struct schSpCellCfg
1525 uint8_t servCellIdx;
1526 SchServCellCfgInfo servCellCfg;
1529 /* Uplink logical channel configuration */
1530 typedef struct SchUlLcCfg
1535 uint8_t pbr; // prioritisedBitRate
1536 uint8_t bsd; // bucketSizeDuration
1539 /* Downlink logical channel configuration */
1540 typedef struct schDlLcCfg
1542 uint8_t lcp; // logical Channel Prioritization
1545 /* Logical Channel configuration */
1546 typedef struct schLcCfg
1548 ConfigType configType;
1550 SchDrbQosInfo *drbQos;
1556 /* Aggregate max bit rate */
1557 typedef struct schAmbrCfg
1559 uint32_t ulBr; /* Ul BitRate */
1562 typedef struct schModulationInfo
1566 SchMcsTable mcsTable;
1569 /* UE configuration */
1570 typedef struct schUeCfg
1575 bool macCellGrpCfgPres;
1576 SchMacCellGrpCfg macCellGrpCfg;
1577 bool phyCellGrpCfgPres;
1578 SchPhyCellGrpCfg phyCellGrpCfg;
1580 SchSpCellCfg spCellCfg;
1581 SchAmbrCfg *ambrCfg;
1582 SchModulationInfo dlModInfo;
1583 SchModulationInfo ulModInfo;
1585 SchLcCfg schLcCfg[MAX_NUM_LC];
1586 SchDataTransmission dataTransmissionInfo;
1589 typedef struct schUeCfgRsp
1595 SchFailureCause cause;
1598 typedef struct schRachRsrcReq
1603 uint8_t ssbIdx[MAX_NUM_SSB];
1606 typedef struct schCfraSsbResource
1609 uint8_t raPreambleIdx;
1610 }SchCfraSsbResource;
1612 typedef struct schCfraRsrc
1615 SchCfraSsbResource ssbResource[MAX_NUM_SSB];
1618 typedef struct schRachRsrcRsp
1623 SchCfraResource cfraResource;
1626 typedef struct schUeDelete
1632 typedef struct schUeDeleteRsp
1640 typedef struct schCellDelete
1646 typedef struct schCellDeleteRsp
1652 typedef struct dataVolInfo
1658 typedef struct ulBufferStatusRptInd
1664 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1665 }UlBufferStatusRptInd;
1667 typedef struct srUciIndInfo
1671 SlotTimingInfo slotInd;
1673 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1676 typedef struct schRrmPolicyRatio
1678 uint8_t policyMaxRatio;
1679 uint8_t policyMinRatio;
1680 uint8_t policyDedicatedRatio;
1683 typedef struct schRrmPolicyOfSlice
1686 SchRrmPolicyRatio *rrmPolicyRatioInfo;
1687 }SchRrmPolicyOfSlice;
1689 typedef struct schSliceCfgReq
1691 uint8_t numOfConfiguredSlice;
1692 SchRrmPolicyOfSlice **listOfConfirguration;
1695 typedef struct sliceRsp
1702 typedef struct schSliceRsp
1704 uint8_t numSliceCfgRsp;
1705 SliceRsp **listOfSliceCfgRsp;
1708 typedef struct schPageInd
1717 /* function pointers */
1718 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1719 Pst *pst, /* Post Structure */
1720 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1723 typedef uint8_t (*SchCellCfgFunc) ARGS((
1724 Pst *pst, /* Post Structure */
1725 SchCellCfg *schCellCfg /* Cell Cfg */
1728 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1729 Pst *pst, /* Post Structure */
1730 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1733 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1734 Pst *pst, /* Post Structure */
1735 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1738 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1739 Pst *pst, /* Post structure */
1740 RachIndInfo *rachInd)); /* Rach Indication Info */
1742 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1743 Pst *pst, /* Post structure */
1744 CrcIndInfo *crcInd)); /* CRC Info */
1746 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1747 Pst *pst, /* Post structure */
1748 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1750 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1751 Pst *pst, /* Post structure */
1752 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1754 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1755 Pst *pst, /* Post structure */
1756 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1758 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1759 Pst *pst, /* Post structure */
1760 SlotTimingInfo *slotInd)); /* Slot Info */
1762 typedef uint8_t (*MacSchBsrFunc) ARGS((
1764 UlBufferStatusRptInd *bsrInd
1767 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1768 Pst *pst, /* Post structure */
1769 SrUciIndInfo *uciInd)); /* UCI IND Info */
1771 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1772 Pst *pst, /* Post structure */
1773 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1775 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1776 Pst *pst, /* Post structure */
1777 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1779 typedef uint8_t (*MacSchRachRsrcReqFunc) ARGS((
1780 Pst *pst, /* Post structure */
1781 SchRachRsrcReq *schRachRsrcReq)); /* RACH resource request to SCH */
1783 typedef uint8_t (*SchRachRsrcRspFunc) ARGS((
1784 Pst *pst, /* Post structure */
1785 SchRachRsrcRsp *schRachRsrcRsp)); /* RACH resource request to MAC */
1787 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1788 Pst *pst, /* Post structure */
1789 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1791 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1792 Pst *pst, /* Post structure */
1793 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1795 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1796 Pst *pst, /* Post structure */
1797 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1799 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1800 Pst *pst, /* Post structure */
1801 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1803 typedef uint8_t (*MacSchSliceCfgReqFunc) ARGS((
1804 Pst *pst, /* Post structure */
1805 SchSliceCfgReq *schSliceCfgReq)); /* Scheduler Slice Cfg Req */
1807 typedef uint8_t (*SchSliceCfgRspFunc) ARGS((
1808 Pst *pst, /* Post Structure */
1809 SchSliceCfgRsp *schSliceCfgRsp /* Cell Cfg Cfm */
1812 typedef uint8_t (*MacSchSliceReCfgReqFunc) ARGS((
1813 Pst *pst, /* Post structure */
1814 SchSliceCfgReq *schSliceReCfgReq)); /* Scheduler Slice ReCfg Req */
1816 typedef uint8_t (*SchSliceReCfgRspFunc) ARGS((
1817 Pst *pst, /* Post Structure */
1818 SchSliceCfgRsp *schSliceReCfgRsp /* Cell ReCfg Cfm */
1821 typedef uint8_t (*MacSchPagingIndFunc) ARGS((
1822 Pst *pst, /* Post structure */
1823 SchPageInd *schPagingInd)); /* Paging Indication */
1825 /* function declarations */
1826 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1827 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1828 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1829 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1830 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1831 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1832 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1833 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1834 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1835 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1836 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1837 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1838 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1839 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1840 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1841 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1842 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1843 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1844 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1845 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1846 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1847 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1848 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1849 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1850 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1851 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1852 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1853 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1854 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1855 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1856 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1857 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1858 uint8_t packMacSchRachRsrcReq(Pst *pst, SchRachRsrcReq *schRachRsrcReq);
1859 uint8_t MacSchRachRsrcReq(Pst *pst, SchRachRsrcReq *schRachRsrcReq);
1860 uint8_t packSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp);
1861 uint8_t MacProcSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp);
1862 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1863 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1864 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1865 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1866 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1867 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1868 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1869 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1870 uint8_t packMacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1871 uint8_t MacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1872 uint8_t packSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1873 uint8_t MacProcSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1874 uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1875 uint8_t MacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1876 uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1877 uint8_t MacProcSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *sliceReCfgrsp);
1878 uint8_t packMacSchPagingInd(Pst *pst, SchPageInd *pageInd);
1879 uint8_t MacSchPagingInd(Pst *pst, SchPageInd *pageInd);
1880 /**********************************************************************
1882 **********************************************************************/