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_RACH_RESOURCE_RELEASE_TO_SCH 27
47 #define EVENT_PAGING_IND_TO_SCH 28
48 #define EVENT_DL_PAGING_ALLOC 29
51 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
52 #define SCH_SSB_MASK_SIZE 1
54 #define MAX_NUM_PRG 1 /* max value should be later 275 */
55 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
56 #define MAX_CODEWORDS 1 /* max should be 2 */
57 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
58 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
60 /* Datatype in UL SCH Info */
61 #define SCH_DATATYPE_PUSCH 1
62 #define SCH_DATATYPE_PUSCH_UCI 2
63 #define SCH_DATATYPE_UCI 4
64 #define SCH_DATATYPE_SRS 8
65 #define SCH_DATATYPE_PRACH 16
67 #define MAX_NUMBER_OF_CRC_IND_BITS 1
68 #define MAX_NUMBER_OF_UCI_IND_BITS 1
69 #define MAX_SR_BITS_IN_BYTES 1
70 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
71 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
72 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
73 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
74 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
75 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
76 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
77 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
78 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
79 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
81 /* PUCCH Configuration Macro */
82 #define MAX_NUM_PUCCH_RESRC 128
83 #define MAX_NUM_PUCCH_RESRC_SET 4
84 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
85 #define MAX_NUM_SPATIAL_RELATIONS 8
86 #define MAX_NUM_PUCCH_P0_PER_SET 8
87 #define MAX_NUM_PATH_LOSS_REF_RS 4
88 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
89 #define QPSK_MODULATION 2
91 #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 */
92 #define TX_PAYLOAD_HDR_LEN 32 /* Intel L1 requires adding a 32 byte header to transmitted payload */
93 #define UL_TX_BUFFER_SIZE 5
95 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
96 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
97 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
98 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
99 #define MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
100 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
101 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
102 #define DEFAULT_K2_VALUE_FOR_SCS15 1
103 #define DEFAULT_K2_VALUE_FOR_SCS30 1
104 #define DEFAULT_K2_VALUE_FOR_SCS60 2
105 #define DEFAULT_K2_VALUE_FOR_SCS120 3
107 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr) \
109 if ((crntTime.slot + incr) > (MAX_SLOTS - 1)) \
111 toFill.sfn = (crntTime.sfn + 1); \
115 toFill.sfn = crntTime.sfn; \
117 toFill.slot = (crntTime.slot + incr) % MAX_SLOTS; \
118 if (toFill.sfn >= MAX_SFN) \
120 toFill.sfn%=MAX_SFN; \
128 RRC_CONNECTED_USERS_RSRC
148 RESOURCE_UNAVAILABLE,
185 TIME_ALIGNMENT_TIMER_MS500,
186 TIME_ALIGNMENT_TIMER_MS750,
187 TIME_ALIGNMENT_TIMER_MS1280,
188 TIME_ALIGNMENT_TIMER_MS1920,
189 TIME_ALIGNMENT_TIMER_MS2560,
190 TIME_ALIGNMENT_TIMER_MS5120,
191 TIME_ALIGNMENT_TIMER_MS10240,
192 TIME_ALIGNMENT_TIMER_INFINITE
193 }SchTimeAlignmentTimer;
197 PHR_PERIODIC_TIMER_SF10,
198 PHR_PERIODIC_TIMER_SF20,
199 PHR_PERIODIC_TIMER_SF50,
200 PHR_PERIODIC_TIMER_SF100,
201 PHR_PERIODIC_TIMER_SF200,
202 PHR_PERIODIC_TIMER_SF500,
203 PHR_PERIODIC_TIMER_SF1000,
204 PHR_PERIODIC_TIMER_INFINITE
205 }SchPhrPeriodicTimer;
209 PHR_PROHIBIT_TIMER_SF0,
210 PHR_PROHIBIT_TIMER_SF10,
211 PHR_PROHIBIT_TIMER_SF20,
212 PHR_PROHIBIT_TIMER_SF50,
213 PHR_PROHIBIT_TIMER_SF100,
214 PHR_PROHIBIT_TIMER_SF200,
215 PHR_PROHIBIT_TIMER_SF500,
216 PHR_PROHIBIT_TIMER_SF1000
217 }SchPhrProhibitTimer;
221 PHR_TX_PWR_FACTOR_CHANGE_DB1,
222 PHR_TX_PWR_FACTOR_CHANGE_DB3,
223 PHR_TX_PWR_FACTOR_CHANGE_DB6,
224 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
225 }SchPhrTxPwrFactorChange;
235 HARQ_ACK_CODEBOOK_SEMISTATIC,
236 HARQ_ACK_CODEBOOK_DYNAMIC
237 }SchPdschHarqAckCodebook;
241 NUM_HARQ_PROC_FOR_PDSCH_N2,
242 NUM_HARQ_PROC_FOR_PDSCH_N4,
243 NUM_HARQ_PROC_FOR_PDSCH_N6,
244 NUM_HARQ_PROC_FOR_PDSCH_N10,
245 NUM_HARQ_PROC_FOR_PDSCH_N16
246 }SchNumHarqProcForPdsch;
250 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
251 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
252 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
253 MAX_CODE_BLOCK_GROUP_PER_TB_N8
254 }SchMaxCodeBlkGrpPerTB;
258 PDSCH_X_OVERHEAD_XOH_6,
259 PDSCH_X_OVERHEAD_XOH_12,
260 PDSCH_X_OVERHEAD_XOH_18
265 DMRS_ADDITIONAL_POS0,
266 DMRS_ADDITIONAL_POS1,
268 }SchDmrsAdditionPosition;
272 RESOURCE_ALLOCTION_TYPE_0,
273 RESOURCE_ALLOCTION_TYPE_1,
274 RESOURCE_ALLOCTION_DYN_SWITCH
275 }SchResourceAllocType;
279 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
280 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
281 }SchTimeDomRsrcAllocMappingType;
285 ENABLED_TRANSFORM_PRECODER,
286 DISABLED_TRANSFORM_PRECODER
287 }SchTransformPrecoder;
291 INTERLEAVED_CCE_REG_MAPPING = 1,
292 NONINTERLEAVED_CCE_REG_MAPPING
297 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
298 SLOT_PERIODICITY_AND_OFFSET_SL_2,
299 SLOT_PERIODICITY_AND_OFFSET_SL_4,
300 SLOT_PERIODICITY_AND_OFFSET_SL_5,
301 SLOT_PERIODICITY_AND_OFFSET_SL_8,
302 SLOT_PERIODICITY_AND_OFFSET_SL_10,
303 SLOT_PERIODICITY_AND_OFFSET_SL_16,
304 SLOT_PERIODICITY_AND_OFFSET_SL_20,
305 SLOT_PERIODICITY_AND_OFFSET_SL_40,
306 SLOT_PERIODICITY_AND_OFFSET_SL_80,
307 SLOT_PERIODICITY_AND_OFFSET_SL_160,
308 SLOT_PERIODICITY_AND_OFFSET_SL_320,
309 SLOT_PERIODICITY_AND_OFFSET_SL_640,
310 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
311 SLOT_PERIODICITY_AND_OFFSET_SL_2560
312 }SchMSlotPeriodAndOffset;
322 SEARCH_SPACE_TYPE_COMMON = 1,
323 SEARCH_SPACE_TYPE_UE_SPECIFIC
328 SCH_QOS_NON_DYNAMIC = 1,
334 AGGREGATION_LEVEL_N0,
335 AGGREGATION_LEVEL_N1,
336 AGGREGATION_LEVEL_N2,
337 AGGREGATION_LEVEL_N3,
338 AGGREGATION_LEVEL_N4,
339 AGGREGATION_LEVEL_N5,
340 AGGREGATION_LEVEL_N6,
352 CODE_WORDS_SCHED_BY_DCI_N1,
353 CODE_WORDS_SCHED_BY_DCI_N2
354 }SchCodeWordsSchedByDci;
358 STATIC_BUNDLING_TYPE = 1,
359 DYNAMIC_BUNDLING_TYPE
365 SCH_SET1_SIZE_WIDEBAND,
366 SCH_SET1_SIZE_N2_WIDEBAND,
367 SCH_SET1_SIZE_N4_WIDEBAND
368 }SchBundlingSizeSet1;
373 SCH_SET2_SIZE_WIDEBAND
374 }SchBundlingSizeSet2;
416 SCH_MCS_TABLE_QAM_64,
417 SCH_MCS_TABLE_QAM_256,
418 SCH_MCS_TABLE_QAM_64_LOW_SE
431 DATA_TRANSMISSION_ALLOWED,
432 STOP_DATA_TRANSMISSION,
433 RESTART_DATA_TRANSMISSION
434 }SchDataTransmission;
437 typedef struct timeDomainAlloc
443 typedef struct freqDomainAlloc
452 uint32_t ssbPbchPwr; /* SSB block power */
453 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
454 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
455 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
456 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
457 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
459 /*Ref:Spec 38.331 "ssb-PositionsInBurst", Value 0 in Bitmap => corresponding SS/PBCH block is not transmitted
460 *value 1 => corresponding SS/PBCH block is transmitted*/
461 uint8_t totNumSsb; /*S = Total Number of Actual SSB transmitted*/
464 typedef struct bwpCfg
466 uint8_t subcarrierSpacing;
467 uint8_t cyclicPrefix;
468 FreqDomainAlloc freqAlloc;
474 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
477 typedef struct beamformingInfo
481 uint8_t digBfInterfaces;
482 Prg prg[MAX_NUM_PRG];
485 /* SIB1 PDSCH structures */
487 typedef struct codewordinfo
489 uint16_t targetCodeRate;
497 typedef struct dmrsInfo
499 uint16_t dlDmrsSymbPos;
500 uint8_t dmrsConfigType;
501 uint16_t dlDmrsScramblingId;
503 uint8_t numDmrsCdmGrpsNoData;
506 uint8_t nrOfDmrsSymbols;
510 typedef struct pdschFreqAlloc
512 uint8_t resourceAllocType;
513 /* since we are using type-1, rbBitmap excluded */
514 FreqDomainAlloc freqAlloc;
515 uint8_t vrbPrbMapping;
518 typedef struct pdschTimeAlloc
521 TimeDomainAlloc timeAlloc;
524 typedef struct txPowerPdschInfo
526 uint8_t powerControlOffset;
527 uint8_t powerControlOffsetSS;
530 typedef struct pdschCfg
535 uint8_t numCodewords;
536 CodewordInfo codeword[MAX_CODEWORDS];
537 uint16_t dataScramblingId;
539 uint8_t transmissionScheme;
542 PdschFreqAlloc pdschFreqAlloc;
543 PdschTimeAlloc pdschTimeAlloc;
544 BeamformingInfo beamPdschInfo;
545 TxPowerPdschInfo txPdschPower;
547 /* SIB1 PDSCH structures end */
549 /* SIB1 interface structure */
551 typedef struct coresetCfg
554 uint8_t startSymbolIndex;
555 uint8_t durationSymbols;
556 uint8_t freqDomainResource[6];
557 uint8_t cceRegMappingType;
558 uint8_t regBundleSize;
559 uint8_t interleaverSize;
562 uint8_t precoderGranularity;
564 uint8_t aggregationLevel;
567 typedef struct txPowerPdcchInfo
570 uint8_t powerControlOffsetSS;
576 uint16_t scramblingId;
577 uint16_t scramblingRnti;
580 BeamformingInfo beamPdcchInfo;
581 TxPowerPdcchInfo txPdcchPower;
585 typedef struct pdcchCfg
587 /* coreset-0 configuration */
588 CoresetCfg coresetCfg;
591 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
593 /* end of SIB1 PDCCH structures */
595 typedef struct pageCfg
597 uint8_t numPO; /*Derived from Ns*/
598 bool poPresent; /*FirstPDCCH-MonitoringPO is present or not*/
599 uint16_t pagingOcc[MAX_PO_PER_PF]; /*FirstPDCCH-Monitoring Paging Occasion*/
604 /* parameters recieved from DU-APP */
606 uint16_t sib1RepetitionPeriod;
607 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
608 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
611 /* parameters derived in scheduler */
614 PdcchCfg sib1PdcchCfg;
615 PdschCfg sib1PdschCfg;
616 PageCfg pageCfg; /*Config of Paging*/
619 typedef struct schRachCfg
621 uint8_t prachCfgIdx; /* PRACH config idx */
622 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
623 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
624 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
625 uint8_t rootSeqLen; /* root sequence length */
626 uint16_t rootSeqIdx; /* Root sequence index */
627 uint8_t numRootSeq; /* Number of root sequences required for FD */
628 uint16_t k1; /* Frequency Offset for each FD */
629 uint8_t totalNumRaPreamble; /* Total number of RA preambles */
630 uint8_t ssbPerRach; /* SSB per RACH occassion */
631 uint8_t numCbPreamblePerSsb; /* Number of CB preamble per SSB */
632 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
633 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
634 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
635 uint8_t raRspWindow; /* RA Response Window */
638 typedef struct schBwpParams
640 FreqDomainAlloc freqAlloc;
642 uint8_t cyclicPrefix;
645 typedef struct schCandidatesInfo
654 typedef struct schSearchSpaceCfg
656 uint8_t searchSpaceId;
658 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
659 uint16_t monitoringSlot;
661 uint16_t monitoringSymbol;
662 SchCandidatesInfo candidate;
665 typedef struct schPdcchCfgCmn
667 SchSearchSpaceCfg commonSearchSpace;
668 uint8_t raSearchSpaceId;
671 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
676 uint8_t lengthSymbol;
677 }SchPdschCfgCmnTimeDomRsrcAlloc;
679 typedef struct schPdschCfgCmn
681 uint8_t numTimeDomAlloc;
682 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
685 typedef struct schPucchCfgCmn
687 uint8_t pucchResourceCommon;
688 uint8_t pucchGroupHopping;
691 /* PUSCH Time Domain Resource Allocation */
692 typedef struct schPuschTimeDomRsrcAlloc
695 SchTimeDomRsrcAllocMappingType mappingType;
697 uint8_t symbolLength;
698 }SchPuschTimeDomRsrcAlloc;
700 typedef struct schPuschCfgCmn
702 uint8_t numTimeDomRsrcAlloc;
703 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
706 typedef struct schK1TimingInfo
709 uint8_t k1Indexes[MAX_NUM_K1_IDX];
712 typedef struct schK0TimingInfo
715 SchK1TimingInfo k1TimingInfo;
718 typedef struct schK0K1TimingInfo
721 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
724 typedef struct schK0K1TimingInfoTbl
727 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
728 }SchK0K1TimingInfoTbl;
730 typedef struct schBwpDlCfg
733 SchPdcchCfgCmn pdcchCommon;
734 SchPdschCfgCmn pdschCommon;
735 SchK0K1TimingInfoTbl k0K1InfoTbl;
738 typedef struct schK2TimingInfo
741 uint8_t k2Indexes[MAX_NUM_K2_IDX];
744 typedef struct schK2TimingInfoTbl
747 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
750 typedef struct schBwpUlCfg
753 SchPucchCfgCmn pucchCommon;
754 SchPuschCfgCmn puschCommon;
755 SchK2TimingInfoTbl msg3K2InfoTbl;
756 SchK2TimingInfoTbl k2InfoTbl;
759 typedef struct schPlmnInfoList
762 uint8_t numSliceSupport; /* Total slice supporting */
763 Snssai **snssai; /* List of supporting snssai*/
766 typedef struct schCellCfg
768 uint16_t cellId; /* Cell Id */
769 uint16_t phyCellId; /* Physical cell id */
770 uint8_t numerology; /* Supported numerology */
771 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
772 uint8_t bandwidth; /* Supported B/W */
773 uint32_t dlFreq; /* DL Frequency */
774 uint32_t ulFreq; /* UL Frequency */
775 SchSsbCfg ssbSchCfg; /* SSB config */
776 SchSib1Cfg sib1SchCfg; /* SIB1 config */
777 SchRachCfg schRachCfg; /* PRACH config */
778 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
779 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
780 SchPlmnInfoList plmnInfoList; /* Consits of PlmnId and Snssai list */
782 TDDCfg tddCfg; /* TDD Cfg */
786 typedef struct schCellCfgCfm
788 uint16_t cellId; /* Cell Id */
792 typedef struct ssbInfo
794 uint8_t ssbIdx; /* SSB Index */
795 TimeDomainAlloc tdAlloc; /* Time domain allocation */
796 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
799 typedef struct sib1AllocInfo
802 PdcchCfg sib1PdcchCfg;
803 PdschCfg sib1PdschCfg;
806 typedef struct prachSchInfo
808 uint8_t numPrachOcas; /* Num Prach Ocassions */
809 uint8_t prachFormat; /* PRACH Format */
810 uint8_t numRa; /* Freq domain ocassion */
811 uint8_t prachStartSymb; /* Freq domain ocassion */
814 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
815 typedef struct dlBrdcstAlloc
817 /* Ssb transmission is determined as follows:
818 * 0 : No tranamission
819 * 1 : SSB Transmission
820 * 2 : SSB Repetition */
822 uint8_t ssbIdxSupported;
823 SsbInfo ssbInfo[MAX_SSB_IDX];
824 /* Sib1 transmission is determined as follows:
825 * 0 : No tranamission
826 * 1 : SIB1 Transmission
827 * 2 : SIB1 Repetition */
829 Sib1AllocInfo sib1Alloc;
832 typedef struct msg3UlGrant
836 FreqDomainAlloc msg3FreqAlloc;
843 typedef struct rarInfo
850 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
854 typedef struct rarAlloc
860 PdcchCfg rarPdcchCfg;
861 PdschCfg rarPdschCfg;
864 typedef struct dlMsgInfo
872 uint8_t harqFeedbackInd;
875 uint16_t dlMsgPduLen;
879 typedef struct lcSchInfo
882 uint32_t schBytes; /* Number of scheduled bytes */
885 typedef struct dlMsgSchedInfo
888 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
890 PdcchCfg dlMsgPdcchCfg;
891 PdschCfg dlMsgPdschCfg;
897 typedef struct dlMsgAlloc
900 uint8_t numSchedInfo;
901 DlMsgSchInfo dlMsgSchedInfo[2];
904 typedef struct schSlotValue
906 SlotTimingInfo currentTime;
907 SlotTimingInfo broadcastTime;
908 SlotTimingInfo rarTime;
909 SlotTimingInfo dlMsgTime;
910 SlotTimingInfo ulDciTime;
913 typedef struct format0_0
915 uint8_t resourceAllocType;
916 /* since we are using type-1, hence rbBitmap excluded */
917 FreqDomainAlloc freqAlloc;
918 TimeDomainAlloc timeAlloc;
921 uint8_t harqProcId; /* HARQ Process ID */
924 uint8_t ndi; /* NDI */
925 uint8_t rv; /* Redundancy Version */
930 typedef struct format0_1
936 typedef struct format1_0
942 typedef struct format1_1
947 typedef struct dciInfo
950 uint16_t crnti; /* CRNI */
951 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
952 BwpCfg bwpCfg; /* BWP Cfg */
953 CoresetCfg coresetCfg; /* Coreset1 Cfg */
954 FormatType formatType; /* DCI Format */
957 Format0_0 format0_0; /* Format 0_0 */
958 Format0_1 format0_1; /* Format 0_1 */
959 Format1_0 format1_0; /* Format 1_0 */
960 Format1_1 format1_1; /* Format 1_1 */
966 typedef struct dlSchedInfo
968 uint16_t cellId; /* Cell Id */
969 SchSlotValue schSlotValue;
971 /* Allocation for broadcast messages */
972 bool isBroadcastPres;
973 DlBrdcstAlloc brdcstAlloc;
975 /* Allocation for RAR message */
976 RarAlloc *rarAlloc[MAX_NUM_UE];
978 /* UL grant in response to BSR */
981 /* Allocation from dedicated DL msg */
982 DlMsgAlloc *dlMsgAlloc[MAX_NUM_UE];
986 typedef struct dlPageAlloc
989 SlotTimingInfo dlPageTime;
994 PdcchCfg pagePdcchCfg;
995 PdschCfg pagePdschCfg;
996 uint16_t dlPagePduLen;
1000 typedef struct tbInfo
1002 uint8_t qamOrder; /* Modulation Order */
1003 uint8_t mcs; /* MCS */
1004 SchMcsTable mcsTable; /* MCS Table */
1005 uint8_t ndi; /* NDI */
1006 uint8_t rv; /* Redundancy Version */
1007 uint16_t tbSize; /* TB Size */
1010 typedef struct schPuschInfo
1013 uint8_t harqProcId; /* HARQ Process ID */
1014 uint8_t resAllocType; /* Resource allocation type */
1015 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1016 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1017 TbInfo tbInfo; /* TB info */
1018 uint8_t dmrsMappingType;
1019 uint8_t nrOfDmrsSymbols;
1023 typedef struct schPucchFormatCfg
1025 uint8_t interSlotFreqHop;
1027 uint8_t maxCodeRate;
1033 typedef struct schPucchInfo
1036 uint8_t pucchFormat;
1037 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1038 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1041 uint8_t numHarqBits;
1044 uint8_t intraFreqHop;
1045 uint16_t secondPrbHop;
1046 uint8_t initialCyclicShift;
1050 SchPucchFormatCfg cmnFormatCfg;
1053 typedef struct ulSchedInfo
1055 uint16_t cellId; /* Cell Id */
1056 uint16_t crnti; /* CRNI */
1057 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1058 uint8_t dataType; /* Type of info being scheduled */
1059 PrachSchInfo prachSchInfo; /* Prach scheduling info */
1060 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
1061 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
1064 typedef struct rachIndInfo
1068 SlotTimingInfo timingInfo;
1072 uint8_t preambleIdx;
1077 typedef struct crcIndInfo
1081 SlotTimingInfo timingInfo;
1083 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1086 typedef struct boInfo
1089 uint32_t dataVolume;
1092 typedef struct dlRlcBOInfo
1097 uint32_t dataVolume;
1100 /* Info of Scheduling Request to Add/Modify */
1101 typedef struct schSchedReqInfo
1104 SchSrProhibitTimer srProhibitTmr;
1105 SchSrTransMax srTransMax;
1108 /* Scheduling Request Configuration */
1109 typedef struct schSchedReqCfg
1111 uint8_t addModListCount;
1112 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1113 uint8_t relListCount;
1114 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1117 /* Info of Tag to Add/Modify */
1118 typedef struct schTagInfo
1121 SchTimeAlignmentTimer timeAlignmentTmr;
1124 /* Timing Advance Group Configuration */
1125 typedef struct schTagCfg
1127 uint8_t addModListCount;
1128 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1129 uint8_t relListCount;
1130 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1133 /* Configuration for Power headroom reporting */
1134 typedef struct schPhrCfg
1136 SchPhrPeriodicTimer periodicTmr;
1137 SchPhrProhibitTimer prohibitTmr;
1138 SchPhrTxPwrFactorChange txpowerFactorChange;
1141 bool type2OtherCell;
1142 SchPhrModeOtherCG modeOtherCG;
1145 /* MAC cell Group configuration */
1146 typedef struct schMacCellGrpCfg
1148 SchSchedReqCfg schedReqCfg;
1150 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1153 /* Physical Cell Group Configuration */
1154 typedef struct schPhyCellGrpCfg
1156 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1160 /* Control resource set info */
1161 typedef struct schControlRsrcSet
1163 uint8_t cRSetId; /* Control resource set id */
1164 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1166 SchREGMappingType cceRegMappingType;
1167 SchPrecoderGranul precoderGranularity;
1168 uint16_t dmrsScramblingId;
1171 /* Search Space info */
1172 typedef struct schSearchSpace
1174 uint8_t searchSpaceId;
1176 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1177 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1178 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1179 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1180 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1181 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1182 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1183 SchSearchSpaceType searchSpaceType;
1184 uint8_t ueSpecificDciFormat;
1187 /* PDCCH cofniguration */
1188 typedef struct schPdcchConfig
1190 uint8_t numCRsetToAddMod;
1191 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1192 uint8_t numCRsetToRel;
1193 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1194 uint8_t numSearchSpcToAddMod;
1195 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1196 uint8_t numSearchSpcToRel;
1197 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1200 /* PDSCH time domain resource allocation */
1201 typedef struct schPdschTimeDomRsrcAlloc
1204 SchTimeDomRsrcAllocMappingType mappingType;
1205 uint8_t startSymbol;
1206 uint8_t symbolLength;
1207 }SchPdschTimeDomRsrcAlloc;
1210 typedef struct schPdschBundling
1212 struct schStaticBundling
1214 SchBundlingSizeSet2 size;
1216 struct schDynamicBundling
1218 SchBundlingSizeSet1 sizeSet1;
1219 SchBundlingSizeSet2 sizeSet2;
1220 }SchDynamicBundling;
1223 /* DMRS downlink configuration */
1224 typedef struct schDmrsDlCfg
1226 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1229 /* PDSCH Configuration */
1230 typedef struct schPdschConfig
1232 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1233 SchResourceAllocType resourceAllocType;
1234 uint8_t numTimeDomRsrcAlloc;
1235 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1237 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1238 SchBundlingType bundlingType;
1239 SchPdschBundling bundlingInfo;
1242 /* Initial Downlink BWP */
1243 typedef struct schInitalDlBwp
1246 SchPdcchConfig pdcchCfg;
1248 SchPdschConfig pdschCfg;
1250 SchK0K1TimingInfoTbl k0K1InfoTbl;
1253 /* BWP Downlink common */
1254 typedef struct schBwpDlCommon
1258 /* Downlink BWP information */
1259 typedef struct schDlBwpInfo
1264 /* PDCCH Serving Cell configuration */
1265 typedef struct schPdschServCellCfg
1267 uint8_t *maxMimoLayers;
1268 SchNumHarqProcForPdsch numHarqProcForPdsch;
1269 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1270 bool *codeBlkGrpFlushInd;
1271 SchPdschXOverhead *xOverhead;
1272 }SchPdschServCellCfg;
1274 /* PUCCH Configuration */
1275 typedef struct schPucchResrcSetInfo
1278 uint8_t resrcListCount;
1279 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1280 uint8_t maxPayLoadSize;
1281 }SchPucchResrcSetInfo;
1283 typedef struct schPucchResrcSetCfg
1285 uint8_t resrcSetToAddModListCount;
1286 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1287 uint8_t resrcSetToRelListCount;
1288 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1289 }SchPucchResrcSetCfg;
1291 typedef struct schPucchFormat0
1293 uint8_t initialCyclicShift;
1295 uint8_t startSymbolIdx;
1298 typedef struct schPucchFormat1
1300 uint8_t initialCyclicShift;
1302 uint8_t startSymbolIdx;
1306 typedef struct schPucchFormat2_3
1310 uint8_t startSymbolIdx;
1313 typedef struct schPucchFormat4
1318 uint8_t startSymbolIdx;
1321 typedef struct schPucchResrcInfo
1325 uint8_t intraFreqHop;
1326 uint16_t secondPrbHop;
1327 uint8_t pucchFormat;
1329 SchPucchFormat0 *format0;
1330 SchPucchFormat1 *format1;
1331 SchPucchFormat2_3 *format2;
1332 SchPucchFormat2_3 *format3;
1333 SchPucchFormat4 *format4;
1337 typedef struct schPucchResrcCfg
1339 uint8_t resrcToAddModListCount;
1340 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1341 uint8_t resrcToRelListCount;
1342 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1346 typedef struct schSchedReqResrcInfo
1350 uint8_t periodicity;
1353 }SchSchedReqResrcInfo;
1355 typedef struct schPucchSchedReqCfg
1357 uint8_t schedAddModListCount;
1358 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1359 uint8_t schedRelListCount;
1360 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1361 }SchPucchSchedReqCfg;
1363 typedef struct schSpatialRelationInfo
1365 uint8_t spatialRelationId;
1366 uint8_t servCellIdx;
1367 uint8_t pathLossRefRSId;
1369 uint8_t closeLoopIdx;
1370 }SchSpatialRelationInfo;
1372 typedef struct schPucchSpatialCfg
1374 uint8_t spatialAddModListCount;
1375 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1376 uint8_t spatialRelListCount;
1377 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1378 }SchPucchSpatialCfg;
1380 typedef struct schP0PucchCfg
1386 typedef struct schPathLossRefRSCfg
1388 uint8_t pathLossRefRSId;
1389 }SchPathLossRefRSCfg;
1391 typedef struct schPucchMultiCsiCfg
1393 uint8_t multiCsiResrcListCount;
1394 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1395 }SchPucchMultiCsiCfg;
1397 typedef struct schPucchDlDataToUlAck
1399 uint8_t dlDataToUlAckListCount;
1400 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1401 }SchPucchDlDataToUlAck;
1403 typedef struct schPucchPowerControl
1411 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1412 uint8_t pathLossRefRSListCount;
1413 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1414 }SchPucchPowerControl;
1416 typedef struct schPucchCfg
1418 SchPucchResrcSetCfg *resrcSet;
1419 SchPucchResrcCfg *resrc;
1420 SchPucchFormatCfg *format1;
1421 SchPucchFormatCfg *format2;
1422 SchPucchFormatCfg *format3;
1423 SchPucchFormatCfg *format4;
1424 SchPucchSchedReqCfg *schedReq;
1425 SchPucchMultiCsiCfg *multiCsiCfg;
1426 SchPucchSpatialCfg *spatialInfo;
1427 SchPucchDlDataToUlAck *dlDataToUlAck;
1428 SchPucchPowerControl *powerControl;
1431 /* Transform precoding disabled */
1432 typedef struct schTransPrecodDisabled
1434 uint16_t scramblingId0;
1435 }SchTransPrecodDisabled;
1437 /* DMRS Uplink configuration */
1438 typedef struct SchDmrsUlCfg
1440 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1441 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1444 /* PUSCH Configuration */
1445 typedef struct schPuschCfg
1447 uint8_t dataScramblingId;
1448 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1449 SchResourceAllocType resourceAllocType;
1450 uint8_t numTimeDomRsrcAlloc;
1451 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1452 SchTransformPrecoder transformPrecoder;
1455 /* Initial Uplink BWP */
1456 typedef struct schInitialUlBwp
1459 SchPucchCfg pucchCfg;
1461 SchPuschCfg puschCfg;
1463 SchK2TimingInfoTbl k2InfoTbl;
1466 /* Uplink BWP information */
1467 typedef struct schUlBwpInfo
1472 /* Serving cell configuration */
1473 typedef struct schServCellCfgInfo
1475 SchInitalDlBwp initDlBwp;
1476 uint8_t numDlBwpToAdd;
1477 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1478 uint8_t firstActvDlBwpId;
1479 uint8_t defaultDlBwpId;
1480 uint8_t *bwpInactivityTmr;
1481 SchPdschServCellCfg pdschServCellCfg;
1482 SchInitialUlBwp initUlBwp;
1483 uint8_t numUlBwpToAdd;
1484 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1485 uint8_t firstActvUlBwpId;
1486 }SchServCellCfgInfo;
1488 typedef struct schNonDynFiveQi
1493 uint16_t maxDataBurstVol;
1496 typedef struct schDynFiveQi
1499 uint16_t packetDelayBudget;
1500 uint8_t packetErrRateScalar;
1501 uint8_t packetErrRateExp;
1503 uint8_t delayCritical;
1505 uint16_t maxDataBurstVol;
1508 typedef struct schNgRanAllocAndRetPri
1510 uint8_t priorityLevel;
1511 uint8_t preEmptionCap;
1512 uint8_t preEmptionVul;
1513 }SchNgRanAllocAndRetPri;
1515 typedef struct schGrbQosFlowInfo
1517 uint32_t maxFlowBitRateDl;
1518 uint32_t maxFlowBitRateUl;
1519 uint32_t guarFlowBitRateDl;
1520 uint32_t guarFlowBitRateUl;
1524 typedef struct schDrbQos
1526 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1529 SchNonDynFiveQi nonDyn5Qi;
1530 SchDynFiveQi dyn5Qi;
1532 SchNgRanAllocAndRetPri ngRanRetPri;
1533 SchGrbQosFlowInfo grbQosFlowInfo;
1534 uint16_t pduSessionId;
1535 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1538 /* Special cell configuration */
1539 typedef struct schSpCellCfg
1541 uint8_t servCellIdx;
1542 SchServCellCfgInfo servCellCfg;
1545 /* Uplink logical channel configuration */
1546 typedef struct SchUlLcCfg
1551 uint8_t pbr; // prioritisedBitRate
1552 uint8_t bsd; // bucketSizeDuration
1555 /* Downlink logical channel configuration */
1556 typedef struct schDlLcCfg
1558 uint8_t lcp; // logical Channel Prioritization
1561 /* Logical Channel configuration */
1562 typedef struct schLcCfg
1564 ConfigType configType;
1566 SchDrbQosInfo *drbQos;
1572 /* Aggregate max bit rate */
1573 typedef struct schAmbrCfg
1575 uint32_t ulBr; /* Ul BitRate */
1578 typedef struct schModulationInfo
1582 SchMcsTable mcsTable;
1585 /* UE configuration */
1586 typedef struct schUeCfg
1591 bool macCellGrpCfgPres;
1592 SchMacCellGrpCfg macCellGrpCfg;
1593 bool phyCellGrpCfgPres;
1594 SchPhyCellGrpCfg phyCellGrpCfg;
1596 SchSpCellCfg spCellCfg;
1597 SchAmbrCfg *ambrCfg;
1598 SchModulationInfo dlModInfo;
1599 SchModulationInfo ulModInfo;
1601 SchLcCfg schLcCfg[MAX_NUM_LC];
1602 SchDataTransmission dataTransmissionInfo;
1605 typedef struct schUeCfgRsp
1611 SchFailureCause cause;
1614 typedef struct schRachRsrcReq
1619 uint8_t ssbIdx[MAX_NUM_SSB];
1622 typedef struct schCfraSsbResource
1625 uint8_t raPreambleIdx;
1626 }SchCfraSsbResource;
1628 typedef struct schCfraRsrc
1631 SchCfraSsbResource ssbResource[MAX_NUM_SSB];
1634 typedef struct schRachRsrcRsp
1639 SchCfraResource cfraResource;
1642 typedef struct schRachRsrcRel
1646 SchCfraResource cfraResource;
1649 typedef struct schUeDelete
1655 typedef struct schUeDeleteRsp
1663 typedef struct schCellDelete
1669 typedef struct schCellDeleteRsp
1675 typedef struct dataVolInfo
1681 typedef struct ulBufferStatusRptInd
1687 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1688 }UlBufferStatusRptInd;
1690 typedef struct srUciIndInfo
1694 SlotTimingInfo slotInd;
1696 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1699 typedef struct schRrmPolicyRatio
1701 uint8_t policyMaxRatio;
1702 uint8_t policyMinRatio;
1703 uint8_t policyDedicatedRatio;
1706 typedef struct schRrmPolicyOfSlice
1709 SchRrmPolicyRatio *rrmPolicyRatioInfo;
1710 }SchRrmPolicyOfSlice;
1712 typedef struct schSliceCfgReq
1714 uint8_t numOfConfiguredSlice;
1715 SchRrmPolicyOfSlice **listOfConfirguration;
1718 typedef struct sliceRsp
1725 typedef struct schSliceRsp
1727 uint8_t numSliceCfgRsp;
1728 SliceRsp **listOfSliceCfgRsp;
1731 typedef struct schPageInd
1740 /* function pointers */
1741 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1742 Pst *pst, /* Post Structure */
1743 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1746 typedef uint8_t (*SchCellCfgFunc) ARGS((
1747 Pst *pst, /* Post Structure */
1748 SchCellCfg *schCellCfg /* Cell Cfg */
1751 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1752 Pst *pst, /* Post Structure */
1753 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1756 typedef uint8_t (*SchMacDlPageAllocFunc) ARGS((
1757 Pst *pst, /* Post Structure */
1758 DlPageAlloc *dlPageAlloc /* dl Page allocation Info */
1761 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1762 Pst *pst, /* Post Structure */
1763 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1766 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1767 Pst *pst, /* Post structure */
1768 RachIndInfo *rachInd)); /* Rach Indication Info */
1770 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1771 Pst *pst, /* Post structure */
1772 CrcIndInfo *crcInd)); /* CRC Info */
1774 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1775 Pst *pst, /* Post structure */
1776 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1778 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1779 Pst *pst, /* Post structure */
1780 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1782 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1783 Pst *pst, /* Post structure */
1784 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1786 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1787 Pst *pst, /* Post structure */
1788 SlotTimingInfo *slotInd)); /* Slot Info */
1790 typedef uint8_t (*MacSchBsrFunc) ARGS((
1792 UlBufferStatusRptInd *bsrInd
1795 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1796 Pst *pst, /* Post structure */
1797 SrUciIndInfo *uciInd)); /* UCI IND Info */
1799 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1800 Pst *pst, /* Post structure */
1801 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1803 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1804 Pst *pst, /* Post structure */
1805 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1807 typedef uint8_t (*MacSchRachRsrcReqFunc) ARGS((
1808 Pst *pst, /* Post structure */
1809 SchRachRsrcReq *schRachRsrcReq)); /* RACH resource request to SCH */
1811 typedef uint8_t (*SchRachRsrcRspFunc) ARGS((
1812 Pst *pst, /* Post structure */
1813 SchRachRsrcRsp *schRachRsrcRsp)); /* RACH resource request to MAC */
1815 typedef uint8_t (*MacSchRachRsrcRelFunc) ARGS((
1816 Pst *pst, /* Post structure */
1817 SchRachRsrcRel *schRachRsrcRel)); /* RACH resource release to SCH */
1819 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1820 Pst *pst, /* Post structure */
1821 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1823 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1824 Pst *pst, /* Post structure */
1825 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1827 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1828 Pst *pst, /* Post structure */
1829 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1831 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1832 Pst *pst, /* Post structure */
1833 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1835 typedef uint8_t (*MacSchSliceCfgReqFunc) ARGS((
1836 Pst *pst, /* Post structure */
1837 SchSliceCfgReq *schSliceCfgReq)); /* Scheduler Slice Cfg Req */
1839 typedef uint8_t (*SchSliceCfgRspFunc) ARGS((
1840 Pst *pst, /* Post Structure */
1841 SchSliceCfgRsp *schSliceCfgRsp /* Cell Cfg Cfm */
1844 typedef uint8_t (*MacSchSliceReCfgReqFunc) ARGS((
1845 Pst *pst, /* Post structure */
1846 SchSliceCfgReq *schSliceReCfgReq)); /* Scheduler Slice ReCfg Req */
1848 typedef uint8_t (*SchSliceReCfgRspFunc) ARGS((
1849 Pst *pst, /* Post Structure */
1850 SchSliceCfgRsp *schSliceReCfgRsp /* Cell ReCfg Cfm */
1853 typedef uint8_t (*MacSchPagingIndFunc) ARGS((
1854 Pst *pst, /* Post structure */
1855 SchPageInd *schPagingInd)); /* Paging Indication */
1857 /* function declarations */
1858 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1859 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1860 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1861 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1862 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1863 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1864 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1865 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1866 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1867 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1868 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1869 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1870 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1871 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1872 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1873 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1874 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1875 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1876 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1877 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1878 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1879 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1880 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1881 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1882 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1883 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1884 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1885 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1886 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1887 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1888 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1889 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1890 uint8_t packMacSchRachRsrcReq(Pst *pst, SchRachRsrcReq *schRachRsrcReq);
1891 uint8_t MacSchRachRsrcReq(Pst *pst, SchRachRsrcReq *schRachRsrcReq);
1892 uint8_t packSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp);
1893 uint8_t MacProcSchRachRsrcRsp(Pst *pst, SchRachRsrcRsp *schRachRsrcRsp);
1894 uint8_t packMacSchRachRsrcRel(Pst *pst, SchRachRsrcRel *schRachRsrcRel);
1895 uint8_t MacSchRachRsrcRel(Pst *pst, SchRachRsrcRel *schRachRsrcRel);
1896 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1897 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1898 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1899 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1900 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1901 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1902 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1903 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1904 uint8_t packMacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1905 uint8_t MacSchSliceCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1906 uint8_t packSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1907 uint8_t MacProcSchSliceCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1908 uint8_t packMacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *cfgReq);
1909 uint8_t MacSchSliceReCfgReq(Pst *pst, SchSliceCfgReq *schSliceCfgReq);
1910 uint8_t packSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *cfgRsp);
1911 uint8_t MacProcSchSliceReCfgRsp(Pst *pst, SchSliceCfgRsp *sliceReCfgrsp);
1912 uint8_t packMacSchPagingInd(Pst *pst, SchPageInd *pageInd);
1913 uint8_t MacSchPagingInd(Pst *pst, SchPageInd *pageInd);
1914 uint8_t packSchMacDlPageAlloc(Pst *pst, DlPageAlloc *dlPageAlloc);
1915 uint8_t MacProcDlPageAlloc(Pst *pst, DlPageAlloc *dlPageAlloc);
1916 /**********************************************************************
1918 **********************************************************************/