1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
20 #define EVENT_SCH_CELL_CFG 1
21 #define EVENT_SCH_CELL_CFG_CFM 2
22 #define EVENT_DL_SCH_INFO 3
23 #define EVENT_UL_SCH_INFO 4
24 #define EVENT_RACH_IND_TO_SCH 5
25 #define EVENT_CRC_IND_TO_SCH 6
26 #define EVENT_DL_RLC_BO_INFO_TO_SCH 7
27 #define EVENT_ADD_UE_CONFIG_REQ_TO_SCH 8
28 #define EVENT_UE_CONFIG_RSP_TO_MAC 9
29 #define EVENT_SLOT_IND_TO_SCH 10
30 #define EVENT_SHORT_BSR 11
31 #define EVENT_UCI_IND_TO_SCH 12
32 #define EVENT_MODIFY_UE_CONFIG_REQ_TO_SCH 13
33 #define EVENT_UE_RECONFIG_RSP_TO_MAC 14
34 #define EVENT_UE_DELETE_REQ_TO_SCH 15
35 #define EVENT_UE_DELETE_RSP_TO_MAC 16
36 #define EVENT_CELL_DELETE_REQ_TO_SCH 17
37 #define EVENT_CELL_DELETE_RSP_TO_MAC 18
41 #define MAX_SSB_IDX 1 /* forcing it as 1 for now. Right value is 64 */
42 #define SCH_SSB_MASK_SIZE 1
44 #define MAX_NUM_PRG 1 /* max value should be later 275 */
45 #define MAX_DIG_BF_INTERFACES 0 /* max value should be later 255 */
46 #define MAX_CODEWORDS 1 /* max should be 2 */
47 #define SCH_HARQ_PROC_ID 1 /* harq proc id */
48 #define SCH_ALLOC_TYPE_1 1 /*sch res alloc type */
50 /* Datatype in UL SCH Info */
51 #define SCH_DATATYPE_PUSCH 1
52 #define SCH_DATATYPE_PUSCH_UCI 2
53 #define SCH_DATATYPE_UCI 4
54 #define SCH_DATATYPE_SRS 8
55 #define SCH_DATATYPE_PRACH 16
57 #define MAX_NUMBER_OF_CRC_IND_BITS 1
58 #define MAX_NUMBER_OF_UCI_IND_BITS 1
59 #define MAX_SR_BITS_IN_BYTES 1
60 #define MAX_NUM_LOGICAL_CHANNEL_GROUPS 8
61 /* can we have a common numslot numscs between mac sch */
68 #define MAX_NUM_SR_CFG_PER_CELL_GRP 8 /* Max number of scheduling request config per cell group */
69 #define MAX_NUM_TAGS 4 /* Max number of timing advance groups */
70 #define MAX_NUM_BWP 4 /* Max number of BWP per serving cell */
71 #define MAX_NUM_CRSET 3 /* Max number of control resource set in add/modify/release list */
72 #define MAX_NUM_SEARCH_SPC 10 /* Max number of search space in add/modify/release list */
73 #define FREQ_DOM_RSRC_SIZE 6 /* i.e. 6 bytes because Size of frequency domain resource is 45 bits */
74 #define MONITORING_SYMB_WITHIN_SLOT_SIZE 2 /* i.e. 2 bytes because size of monitoring symbols within slot is 14 bits */
75 #define MAX_NUM_DL_ALLOC 16 /* Max number of pdsch time domain downlink allocation */
76 #define MAX_NUM_UL_ALLOC 16 /* Max number of pusch time domain uplink allocation */
78 /* PUCCH Configuration Macro */
79 #define MAX_NUM_PUCCH_RESRC 128
80 #define MAX_NUM_PUCCH_RESRC_SET 4
81 #define MAX_NUM_PUCCH_PER_RESRC_SET 32
82 #define MAX_NUM_SPATIAL_RELATIONS 8
83 #define MAX_NUM_PUCCH_P0_PER_SET 8
84 #define MAX_NUM_PATH_LOSS_REF_RS 4
85 #define MAX_NUM_DL_DATA_TO_UL_ACK 15
86 #define QPSK_MODULATION 2
88 #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 */
89 #define TX_PAYLOAD_HDR_LEN 32 /* Intel L1 requires adding a 32 byte header to transmitted payload */
91 #define MAX_NUM_CONFIG_SLOTS 160 /*Max number of slots as per the numerology*/
92 #define MAX_NUM_K0_IDX 16 /* Max number of pdsch time domain downlink allocation */
93 #define MAX_NUM_K1_IDX 8 /* As per spec 38.213 section 9.2.3 Max number of PDSCH-to-HARQ resource indication */
94 #define MIN_NUM_K1_IDX 4 /* Min K1 values */
95 #define MAX_NUM_K2_IDX 16 /* PUSCH time domain UL resource allocation list */
96 #define DEFAULT_K0_VALUE 0 /* As per 38.331, PDSCH-TimeDomainResourceAllocation field descriptions */
97 /* As per 38.331, PUSCH-TimeDomainResourceAllocationList field descriptions */
98 #define DEFAULT_K2_VALUE_FOR_SCS15 1
99 #define DEFAULT_K2_VALUE_FOR_SCS30 1
100 #define DEFAULT_K2_VALUE_FOR_SCS60 2
101 #define DEFAULT_K2_VALUE_FOR_SCS120 3
103 #define ADD_DELTA_TO_TIME(crntTime, toFill, incr) \
105 if ((crntTime.slot + incr) > (MAX_SLOTS - 1)) \
107 toFill.sfn = (crntTime.sfn + 1); \
111 toFill.sfn = crntTime.sfn; \
113 toFill.slot = (crntTime.slot + incr) % MAX_SLOTS; \
114 if (toFill.sfn >= MAX_SFN) \
116 toFill.sfn%=MAX_SFN; \
124 RRC_CONNECTED_USERS_RSRC
138 RESOURCE_UNAVAILABLE,
175 TIME_ALIGNMENT_TIMER_MS500,
176 TIME_ALIGNMENT_TIMER_MS750,
177 TIME_ALIGNMENT_TIMER_MS1280,
178 TIME_ALIGNMENT_TIMER_MS1920,
179 TIME_ALIGNMENT_TIMER_MS2560,
180 TIME_ALIGNMENT_TIMER_MS5120,
181 TIME_ALIGNMENT_TIMER_MS10240,
182 TIME_ALIGNMENT_TIMER_INFINITE
183 }SchTimeAlignmentTimer;
187 PHR_PERIODIC_TIMER_SF10,
188 PHR_PERIODIC_TIMER_SF20,
189 PHR_PERIODIC_TIMER_SF50,
190 PHR_PERIODIC_TIMER_SF100,
191 PHR_PERIODIC_TIMER_SF200,
192 PHR_PERIODIC_TIMER_SF500,
193 PHR_PERIODIC_TIMER_SF1000,
194 PHR_PERIODIC_TIMER_INFINITE
195 }SchPhrPeriodicTimer;
199 PHR_PROHIBIT_TIMER_SF0,
200 PHR_PROHIBIT_TIMER_SF10,
201 PHR_PROHIBIT_TIMER_SF20,
202 PHR_PROHIBIT_TIMER_SF50,
203 PHR_PROHIBIT_TIMER_SF100,
204 PHR_PROHIBIT_TIMER_SF200,
205 PHR_PROHIBIT_TIMER_SF500,
206 PHR_PROHIBIT_TIMER_SF1000
207 }SchPhrProhibitTimer;
211 PHR_TX_PWR_FACTOR_CHANGE_DB1,
212 PHR_TX_PWR_FACTOR_CHANGE_DB3,
213 PHR_TX_PWR_FACTOR_CHANGE_DB6,
214 PHR_TX_PWR_FACTOR_CHANGE_INFINITE
215 }SchPhrTxPwrFactorChange;
225 HARQ_ACK_CODEBOOK_SEMISTATIC,
226 HARQ_ACK_CODEBOOK_DYNAMIC
227 }SchPdschHarqAckCodebook;
231 NUM_HARQ_PROC_FOR_PDSCH_N2,
232 NUM_HARQ_PROC_FOR_PDSCH_N4,
233 NUM_HARQ_PROC_FOR_PDSCH_N6,
234 NUM_HARQ_PROC_FOR_PDSCH_N10,
235 NUM_HARQ_PROC_FOR_PDSCH_N16
236 }SchNumHarqProcForPdsch;
240 MAX_CODE_BLOCK_GROUP_PER_TB_N2,
241 MAX_CODE_BLOCK_GROUP_PER_TB_N4,
242 MAX_CODE_BLOCK_GROUP_PER_TB_N6,
243 MAX_CODE_BLOCK_GROUP_PER_TB_N8
244 }SchMaxCodeBlkGrpPerTB;
248 PDSCH_X_OVERHEAD_XOH_6,
249 PDSCH_X_OVERHEAD_XOH_12,
250 PDSCH_X_OVERHEAD_XOH_18
255 DMRS_ADDITIONAL_POS0,
256 DMRS_ADDITIONAL_POS1,
258 }SchDmrsAdditionPosition;
262 RESOURCE_ALLOCTION_TYPE_0,
263 RESOURCE_ALLOCTION_TYPE_1,
264 RESOURCE_ALLOCTION_DYN_SWITCH
265 }SchResourceAllocType;
269 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_A,
270 TIME_DOMAIN_RSRC_ALLOC_MAPPING_TYPE_B
271 }SchTimeDomRsrcAllocMappingType;
275 ENABLED_TRANSFORM_PRECODER,
276 DISABLED_TRANSFORM_PRECODER
277 }SchTransformPrecoder;
281 INTERLEAVED_CCE_REG_MAPPING = 1,
282 NONINTERLEAVED_CCE_REG_MAPPING
287 SLOT_PERIODICITY_AND_OFFSET_SL_1 = 1,
288 SLOT_PERIODICITY_AND_OFFSET_SL_2,
289 SLOT_PERIODICITY_AND_OFFSET_SL_4,
290 SLOT_PERIODICITY_AND_OFFSET_SL_5,
291 SLOT_PERIODICITY_AND_OFFSET_SL_8,
292 SLOT_PERIODICITY_AND_OFFSET_SL_10,
293 SLOT_PERIODICITY_AND_OFFSET_SL_16,
294 SLOT_PERIODICITY_AND_OFFSET_SL_20,
295 SLOT_PERIODICITY_AND_OFFSET_SL_40,
296 SLOT_PERIODICITY_AND_OFFSET_SL_80,
297 SLOT_PERIODICITY_AND_OFFSET_SL_160,
298 SLOT_PERIODICITY_AND_OFFSET_SL_320,
299 SLOT_PERIODICITY_AND_OFFSET_SL_640,
300 SLOT_PERIODICITY_AND_OFFSET_SL_1280,
301 SLOT_PERIODICITY_AND_OFFSET_SL_2560
302 }SchMSlotPeriodAndOffset;
312 SEARCH_SPACE_TYPE_COMMON = 1,
313 SEARCH_SPACE_TYPE_UE_SPECIFIC
318 SCH_QOS_NON_DYNAMIC = 1,
324 AGGREGATION_LEVEL_N0,
325 AGGREGATION_LEVEL_N1,
326 AGGREGATION_LEVEL_N2,
327 AGGREGATION_LEVEL_N3,
328 AGGREGATION_LEVEL_N4,
329 AGGREGATION_LEVEL_N5,
330 AGGREGATION_LEVEL_N6,
342 CODE_WORDS_SCHED_BY_DCI_N1,
343 CODE_WORDS_SCHED_BY_DCI_N2
344 }SchCodeWordsSchedByDci;
348 STATIC_BUNDLING_TYPE = 1,
349 DYNAMIC_BUNDLING_TYPE
355 SCH_SET1_SIZE_WIDEBAND,
356 SCH_SET1_SIZE_N2_WIDEBAND,
357 SCH_SET1_SIZE_N4_WIDEBAND
358 }SchBundlingSizeSet1;
363 SCH_SET2_SIZE_WIDEBAND
364 }SchBundlingSizeSet2;
406 SCH_MCS_TABLE_QAM_64,
407 SCH_MCS_TABLE_QAM_256,
408 SCH_MCS_TABLE_QAM_64_LOW_SE
420 typedef struct timeDomainAlloc
426 typedef struct freqDomainAlloc
435 uint32_t ssbPbchPwr; /* SSB block power */
436 uint8_t scsCommon; /* subcarrier spacing for common [0-3]*/
437 uint8_t ssbOffsetPointA; /* SSB sub carrier offset from point A */
438 SchSSBPeriod ssbPeriod; /* SSB Periodicity in msec */
439 uint8_t ssbSubcOffset; /* Subcarrier Offset(Kssb) */
440 uint32_t nSSBMask[SCH_SSB_MASK_SIZE]; /* Bitmap for actually transmitted SSB. */
443 typedef struct bwpCfg
445 uint8_t subcarrierSpacing;
446 uint8_t cyclicPrefix;
447 FreqDomainAlloc freqAlloc;
453 uint16_t beamIdx[MAX_DIG_BF_INTERFACES];
456 typedef struct beamformingInfo
460 uint8_t digBfInterfaces;
461 Prg prg[MAX_NUM_PRG];
464 /* SIB1 PDSCH structures */
466 typedef struct codewordinfo
468 uint16_t targetCodeRate;
476 typedef struct dmrsInfo
478 uint16_t dlDmrsSymbPos;
479 uint8_t dmrsConfigType;
480 uint16_t dlDmrsScramblingId;
482 uint8_t numDmrsCdmGrpsNoData;
485 uint8_t nrOfDmrsSymbols;
489 typedef struct pdschFreqAlloc
491 uint8_t resourceAllocType;
492 /* since we are using type-1, rbBitmap excluded */
493 FreqDomainAlloc freqAlloc;
494 uint8_t vrbPrbMapping;
497 typedef struct pdschTimeAlloc
500 TimeDomainAlloc timeAlloc;
503 typedef struct txPowerPdschInfo
505 uint8_t powerControlOffset;
506 uint8_t powerControlOffsetSS;
509 typedef struct pdschCfg
514 uint8_t numCodewords;
515 CodewordInfo codeword[MAX_CODEWORDS];
516 uint16_t dataScramblingId;
518 uint8_t transmissionScheme;
521 PdschFreqAlloc pdschFreqAlloc;
522 PdschTimeAlloc pdschTimeAlloc;
523 BeamformingInfo beamPdschInfo;
524 TxPowerPdschInfo txPdschPower;
526 /* SIB1 PDSCH structures end */
528 /* SIB1 interface structure */
530 typedef struct coresetCfg
533 uint8_t startSymbolIndex;
534 uint8_t durationSymbols;
535 uint8_t freqDomainResource[6];
536 uint8_t cceRegMappingType;
537 uint8_t regBundleSize;
538 uint8_t interleaverSize;
541 uint8_t precoderGranularity;
543 uint8_t aggregationLevel;
546 typedef struct txPowerPdcchInfo
549 uint8_t powerControlOffsetSS;
555 uint16_t scramblingId;
556 uint16_t scramblingRnti;
559 BeamformingInfo beamPdcchInfo;
560 TxPowerPdcchInfo txPdcchPower;
564 typedef struct pdcchCfg
566 /* coreset-0 configuration */
567 CoresetCfg coresetCfg;
570 DlDCI dci; /* as of now its only one DCI, later it will be numDlCi */
572 /* end of SIB1 PDCCH structures */
576 /* parameters recieved from DU-APP */
578 uint16_t sib1RepetitionPeriod;
579 uint8_t coresetZeroIndex; /* derived from 4 LSB of pdcchSib1 present in MIB */
580 uint8_t searchSpaceZeroIndex; /* derived from 4 MSB of pdcchSib1 present in MIB */
583 /* parameters derived in scheduler */
586 PdcchCfg sib1PdcchCfg;
587 PdschCfg sib1PdschCfg;
590 typedef struct schRachCfg
592 uint8_t prachCfgIdx; /* PRACH config idx */
593 uint8_t prachSubcSpacing; /* Subcarrier spacing of RACH */
594 uint16_t msg1FreqStart; /* Msg1-FrequencyStart */
595 uint8_t msg1Fdm; /* PRACH FDM (1,2,4,8) */
596 uint8_t rootSeqLen; /* root sequence length */
597 uint16_t rootSeqIdx; /* Root sequence index */
598 uint8_t numRootSeq; /* Number of root sequences required for FD */
599 uint16_t k1; /* Frequency Offset for each FD */
600 uint8_t ssbPerRach; /* SSB per RACH occassion */
601 uint8_t prachMultCarrBand; /* Presence of Multiple carriers in Band */
602 uint8_t raContResTmr; /* RA Contention Resoultion Timer */
603 uint8_t rsrpThreshSsb; /* RSRP Threshold SSB */
604 uint8_t raRspWindow; /* RA Response Window */
607 typedef struct schBwpParams
609 FreqDomainAlloc freqAlloc;
611 uint8_t cyclicPrefix;
614 typedef struct schCandidatesInfo
623 typedef struct schSearchSpaceCfg
625 uint8_t searchSpaceId;
627 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
628 uint16_t monitoringSlot;
630 uint16_t monitoringSymbol;
631 SchCandidatesInfo candidate;
634 typedef struct schPdcchCfgCmn
636 SchSearchSpaceCfg commonSearchSpace;
637 uint8_t raSearchSpaceId;
640 typedef struct schPdschCfgCmnTimeDomRsrcAlloc
645 uint8_t lengthSymbol;
646 }SchPdschCfgCmnTimeDomRsrcAlloc;
648 typedef struct schPdschCfgCmn
650 uint8_t numTimeDomAlloc;
651 SchPdschCfgCmnTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_DL_ALLOC];
654 typedef struct schPucchCfgCmn
656 uint8_t pucchResourceCommon;
657 uint8_t pucchGroupHopping;
660 /* PUSCH Time Domain Resource Allocation */
661 typedef struct schPuschTimeDomRsrcAlloc
664 SchTimeDomRsrcAllocMappingType mappingType;
666 uint8_t symbolLength;
667 }SchPuschTimeDomRsrcAlloc;
669 typedef struct schPuschCfgCmn
671 uint8_t numTimeDomRsrcAlloc;
672 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
675 typedef struct schK1TimingInfo
678 uint8_t k1Indexes[MAX_NUM_K1_IDX];
681 typedef struct schK0TimingInfo
684 SchK1TimingInfo k1TimingInfo;
687 typedef struct schK0K1TimingInfo
690 SchK0TimingInfo k0Indexes[MAX_NUM_K0_IDX];
693 typedef struct schK0K1TimingInfoTbl
696 SchK0K1TimingInfo k0k1TimingInfo[MAX_NUM_CONFIG_SLOTS];
697 }SchK0K1TimingInfoTbl;
699 typedef struct schBwpDlCfg
702 SchPdcchCfgCmn pdcchCommon;
703 SchPdschCfgCmn pdschCommon;
704 SchK0K1TimingInfoTbl k0K1InfoTbl;
707 typedef struct schK2TimingInfo
710 uint8_t k2Indexes[MAX_NUM_K2_IDX];
713 typedef struct schK2TimingInfoTbl
716 SchK2TimingInfo k2TimingInfo[MAX_NUM_CONFIG_SLOTS];
719 typedef struct schBwpUlCfg
722 SchPucchCfgCmn pucchCommon;
723 SchPuschCfgCmn puschCommon;
724 SchK2TimingInfoTbl msg3K2InfoTbl;
725 SchK2TimingInfoTbl k2InfoTbl;
728 typedef struct schPolicyMemberList
732 }SchPolicyMemberList;
734 typedef struct schRrmPolicy
736 SchResourceType rsrcType;
737 SchPolicyMemberList memberList;
738 uint8_t policyMaxRatio;
739 uint8_t policyMinRatio;
740 uint8_t policyDedicatedRatio;
743 typedef struct schCellCfg
745 uint16_t cellId; /* Cell Id */
746 uint16_t phyCellId; /* Physical cell id */
747 uint8_t numerology; /* Supported numerology */
748 SchDuplexMode dupMode; /* Duplex type: TDD/FDD */
749 uint8_t bandwidth; /* Supported B/W */
750 uint32_t dlFreq; /* DL Frequency */
751 uint32_t ulFreq; /* UL Frequency */
752 SchSsbCfg ssbSchCfg; /* SSB config */
753 SchSib1Cfg sib1SchCfg; /* SIB1 config */
754 SchRachCfg schRachCfg; /* PRACH config */
755 SchBwpDlCfg schInitialDlBwp; /* Initial DL BWP */
756 SchBwpUlCfg schInitialUlBwp; /* Initial UL BWP */
757 uint8_t numSliceSupport; /* Total num of slice support */
758 Snssai **snssai; /* List of supporting snssai*/
759 SchRrmPolicy *rrmPolicy; /* RRM policy */
761 TDDCfg tddCfg; /* TDD Cfg */
765 typedef struct schCellCfgCfm
767 uint16_t cellId; /* Cell Id */
771 typedef struct ssbInfo
773 uint8_t ssbIdx; /* SSB Index */
774 TimeDomainAlloc tdAlloc; /* Time domain allocation */
775 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
778 typedef struct sib1AllocInfo
781 PdcchCfg sib1PdcchCfg;
782 PdschCfg sib1PdschCfg;
785 typedef struct prachSchInfo
787 uint8_t numPrachOcas; /* Num Prach Ocassions */
788 uint8_t prachFormat; /* PRACH Format */
789 uint8_t numRa; /* Freq domain ocassion */
790 uint8_t prachStartSymb; /* Freq domain ocassion */
793 /* Interface structure signifying DL broadcast allocation for SSB, SIB1 */
794 typedef struct dlBrdcstAlloc
796 /* Ssb transmission is determined as follows:
797 * 0 : No tranamission
798 * 1 : SSB Transmission
799 * 2 : SSB Repetition */
801 uint8_t ssbIdxSupported;
802 SsbInfo ssbInfo[MAX_SSB_IDX];
803 /* Sib1 transmission is determined as follows:
804 * 0 : No tranamission
805 * 1 : SIB1 Transmission
806 * 2 : SIB1 Repetition */
808 Sib1AllocInfo sib1Alloc;
811 typedef struct msg3UlGrant
815 FreqDomainAlloc msg3FreqAlloc;
822 typedef struct rarInfo
829 uint8_t rarPdu[RAR_PAYLOAD_SIZE];
833 typedef struct rarAlloc
839 PdcchCfg rarPdcchCfg;
840 PdschCfg rarPdschCfg;
843 typedef struct dlMsgInfo
851 uint8_t harqFeedbackInd;
854 uint16_t dlMsgPduLen;
858 typedef struct lcSchInfo
861 uint32_t schBytes; /* Number of scheduled bytes */
864 typedef struct dlMsgAlloc
868 LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */
870 PdcchCfg dlMsgPdcchCfg;
871 PdschCfg dlMsgPdschCfg;
877 typedef struct schSlotValue
879 SlotTimingInfo currentTime;
880 SlotTimingInfo broadcastTime;
881 SlotTimingInfo rarTime;
882 SlotTimingInfo dlMsgTime;
883 SlotTimingInfo ulDciTime;
886 typedef struct format0_0
888 uint8_t resourceAllocType;
889 /* since we are using type-1, hence rbBitmap excluded */
890 FreqDomainAlloc freqAlloc;
891 TimeDomainAlloc timeAlloc;
894 uint8_t harqProcId; /* HARQ Process ID */
897 uint8_t ndi; /* NDI */
898 uint8_t rv; /* Redundancy Version */
903 typedef struct format0_1
909 typedef struct format1_0
915 typedef struct format1_1
920 typedef struct dciInfo
923 uint16_t crnti; /* CRNI */
924 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
925 BwpCfg bwpCfg; /* BWP Cfg */
926 CoresetCfg coresetCfg; /* Coreset1 Cfg */
927 FormatType formatType; /* DCI Format */
930 Format0_0 format0_0; /* Format 0_0 */
931 Format0_1 format0_1; /* Format 0_1 */
932 Format1_0 format1_0; /* Format 1_0 */
933 Format1_1 format1_1; /* Format 1_1 */
939 typedef struct dlSchedInfo
941 uint16_t cellId; /* Cell Id */
942 SchSlotValue schSlotValue;
944 /* Allocation for broadcast messages */
945 bool isBroadcastPres;
946 DlBrdcstAlloc brdcstAlloc;
948 /* Allocation for RAR message */
952 /* Allocation from MSG4 */
953 //Msg4Alloc *msg4Alloc;
955 /* UL grant in response to BSR */
958 /* Allocation from dedicated DL msg */
959 DlMsgAlloc *dlMsgAlloc;
963 typedef struct tbInfo
965 uint8_t qamOrder; /* Modulation Order */
966 uint8_t mcs; /* MCS */
967 SchMcsTable mcsTable; /* MCS Table */
968 uint8_t ndi; /* NDI */
969 uint8_t rv; /* Redundancy Version */
970 uint16_t tbSize; /* TB Size */
973 typedef struct schPuschInfo
976 uint8_t harqProcId; /* HARQ Process ID */
977 uint8_t resAllocType; /* Resource allocation type */
978 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
979 TimeDomainAlloc tdAlloc; /* Time domain allocation */
980 TbInfo tbInfo; /* TB info */
981 uint8_t dmrsMappingType;
982 uint8_t nrOfDmrsSymbols;
986 typedef struct schPucchFormatCfg
988 uint8_t interSlotFreqHop;
996 typedef struct schPucchInfo
1000 FreqDomainAlloc fdAlloc; /* Freq domain allocation */
1001 TimeDomainAlloc tdAlloc; /* Time domain allocation */
1004 uint8_t numHarqBits;
1007 uint8_t intraFreqHop;
1008 uint16_t secondPrbHop;
1009 uint8_t initialCyclicShift;
1013 SchPucchFormatCfg cmnFormatCfg;
1016 typedef struct ulSchedInfo
1018 uint16_t cellId; /* Cell Id */
1019 uint16_t crnti; /* CRNI */
1020 SlotTimingInfo slotIndInfo; /* Slot Info: sfn, slot number */
1021 uint8_t dataType; /* Type of info being scheduled */
1022 PrachSchInfo prachSchInfo; /* Prach scheduling info */
1023 SchPuschInfo schPuschInfo; /* Pusch scheduling info */
1024 SchPucchInfo schPucchInfo; /* Pusch scheduling info */
1027 typedef struct rachIndInfo
1031 SlotTimingInfo timingInfo;
1035 uint8_t preambleIdx;
1040 typedef struct crcIndInfo
1044 SlotTimingInfo timingInfo;
1046 uint8_t crcInd[MAX_NUMBER_OF_CRC_IND_BITS];
1049 typedef struct boInfo
1052 uint32_t dataVolume;
1055 typedef struct dlRlcBOInfo
1060 uint32_t dataVolume;
1063 /* Info of Scheduling Request to Add/Modify */
1064 typedef struct schSchedReqInfo
1067 SchSrProhibitTimer srProhibitTmr;
1068 SchSrTransMax srTransMax;
1071 /* Scheduling Request Configuration */
1072 typedef struct schSchedReqCfg
1074 uint8_t addModListCount;
1075 SchSchedReqInfo addModList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* List of Scheduling req to be added/modified */
1076 uint8_t relListCount;
1077 uint8_t relList[MAX_NUM_SR_CFG_PER_CELL_GRP]; /* list of scheduling request Id to be deleted */
1080 /* Info of Tag to Add/Modify */
1081 typedef struct schTagInfo
1084 SchTimeAlignmentTimer timeAlignmentTmr;
1087 /* Timing Advance Group Configuration */
1088 typedef struct schTagCfg
1090 uint8_t addModListCount;
1091 SchTagInfo addModList[MAX_NUM_TAGS]; /* List of Tag to Add/Modify */
1092 uint8_t relListCount;
1093 uint8_t relList[MAX_NUM_TAGS]; /* list of Tag Id to release */
1096 /* Configuration for Power headroom reporting */
1097 typedef struct schPhrCfg
1099 SchPhrPeriodicTimer periodicTmr;
1100 SchPhrProhibitTimer prohibitTmr;
1101 SchPhrTxPwrFactorChange txpowerFactorChange;
1104 bool type2OtherCell;
1105 SchPhrModeOtherCG modeOtherCG;
1108 /* MAC cell Group configuration */
1109 typedef struct schMacCellGrpCfg
1111 SchSchedReqCfg schedReqCfg;
1113 SchPhrCfg phrCfg; /* To be used only if phrCfgSetupPres is true */
1116 /* Physical Cell Group Configuration */
1117 typedef struct schPhyCellGrpCfg
1119 SchPdschHarqAckCodebook pdschHarqAckCodebook;
1123 /* Control resource set info */
1124 typedef struct schControlRsrcSet
1126 uint8_t cRSetId; /* Control resource set id */
1127 uint8_t freqDomainRsrc[FREQ_DOM_RSRC_SIZE]; /* Frequency domain resource */
1129 SchREGMappingType cceRegMappingType;
1130 SchPrecoderGranul precoderGranularity;
1131 uint16_t dmrsScramblingId;
1134 /* Search Space info */
1135 typedef struct schSearchSpace
1137 uint8_t searchSpaceId;
1139 SchMSlotPeriodAndOffset mSlotPeriodicityAndOffset;
1140 uint8_t mSymbolsWithinSlot[MONITORING_SYMB_WITHIN_SLOT_SIZE];
1141 SchAggrLevel numCandidatesAggLevel1; /* Number of candidates for aggregation level 1 */
1142 SchAggrLevel numCandidatesAggLevel2; /* Number of candidates for aggregation level 2 */
1143 SchAggrLevel numCandidatesAggLevel4; /* Number of candidates for aggregation level 4 */
1144 SchAggrLevel numCandidatesAggLevel8; /* Number of candidates for aggregation level 8 */
1145 SchAggrLevel numCandidatesAggLevel16; /* Number of candidates for aggregation level 16 */
1146 SchSearchSpaceType searchSpaceType;
1147 uint8_t ueSpecificDciFormat;
1150 /* PDCCH cofniguration */
1151 typedef struct schPdcchConfig
1153 uint8_t numCRsetToAddMod;
1154 SchControlRsrcSet cRSetToAddModList[MAX_NUM_CRSET]; /* List of control resource set to add/modify */
1155 uint8_t numCRsetToRel;
1156 uint8_t cRSetToRelList[MAX_NUM_CRSET]; /* List of control resource set to release */
1157 uint8_t numSearchSpcToAddMod;
1158 SchSearchSpace searchSpcToAddModList[MAX_NUM_SEARCH_SPC]; /* List of search space to add/modify */
1159 uint8_t numSearchSpcToRel;
1160 uint8_t searchSpcToRelList[MAX_NUM_SEARCH_SPC]; /* List of search space to release */
1163 /* PDSCH time domain resource allocation */
1164 typedef struct schPdschTimeDomRsrcAlloc
1167 SchTimeDomRsrcAllocMappingType mappingType;
1168 uint8_t startSymbol;
1169 uint8_t symbolLength;
1170 }SchPdschTimeDomRsrcAlloc;
1173 typedef struct schPdschBundling
1175 struct schStaticBundling
1177 SchBundlingSizeSet2 size;
1179 struct schDynamicBundling
1181 SchBundlingSizeSet1 sizeSet1;
1182 SchBundlingSizeSet2 sizeSet2;
1183 }SchDynamicBundling;
1186 /* DMRS downlink configuration */
1187 typedef struct schDmrsDlCfg
1189 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1192 /* PDSCH Configuration */
1193 typedef struct schPdschConfig
1195 SchDmrsDlCfg dmrsDlCfgForPdschMapTypeA;
1196 SchResourceAllocType resourceAllocType;
1197 uint8_t numTimeDomRsrcAlloc;
1198 SchPdschTimeDomRsrcAlloc timeDomRsrcAllociList[MAX_NUM_DL_ALLOC]; /* PDSCH time domain DL resource allocation list */
1200 SchCodeWordsSchedByDci numCodeWordsSchByDci; /* Number of code words scheduled by DCI */
1201 SchBundlingType bundlingType;
1202 SchPdschBundling bundlingInfo;
1205 /* Initial Downlink BWP */
1206 typedef struct schInitalDlBwp
1209 SchPdcchConfig pdcchCfg;
1211 SchPdschConfig pdschCfg;
1212 SchK0K1TimingInfoTbl k0K1InfoTbl;
1215 /* BWP Downlink common */
1216 typedef struct schBwpDlCommon
1220 /* Downlink BWP information */
1221 typedef struct schDlBwpInfo
1226 /* PDCCH Serving Cell configuration */
1227 typedef struct schPdschServCellCfg
1229 uint8_t *maxMimoLayers;
1230 SchNumHarqProcForPdsch numHarqProcForPdsch;
1231 SchMaxCodeBlkGrpPerTB *maxCodeBlkGrpPerTb;
1232 bool *codeBlkGrpFlushInd;
1233 SchPdschXOverhead *xOverhead;
1234 }SchPdschServCellCfg;
1236 /* PUCCH Configuration */
1237 typedef struct schPucchResrcSetInfo
1240 uint8_t resrcListCount;
1241 uint8_t resrcList[MAX_NUM_PUCCH_PER_RESRC_SET];
1242 uint8_t maxPayLoadSize;
1243 }SchPucchResrcSetInfo;
1245 typedef struct schPucchResrcSetCfg
1247 uint8_t resrcSetToAddModListCount;
1248 SchPucchResrcSetInfo resrcSetToAddModList[MAX_NUM_PUCCH_RESRC_SET];
1249 uint8_t resrcSetToRelListCount;
1250 uint8_t resrcSetToRelList[MAX_NUM_PUCCH_RESRC];
1251 }SchPucchResrcSetCfg;
1253 typedef struct schPucchFormat0
1255 uint8_t initialCyclicShift;
1257 uint8_t startSymbolIdx;
1260 typedef struct schPucchFormat1
1262 uint8_t initialCyclicShift;
1264 uint8_t startSymbolIdx;
1268 typedef struct schPucchFormat2_3
1272 uint8_t startSymbolIdx;
1275 typedef struct schPucchFormat4
1280 uint8_t startSymbolIdx;
1283 typedef struct schPucchResrcInfo
1287 uint8_t intraFreqHop;
1288 uint16_t secondPrbHop;
1289 uint8_t pucchFormat;
1291 SchPucchFormat0 *format0;
1292 SchPucchFormat1 *format1;
1293 SchPucchFormat2_3 *format2;
1294 SchPucchFormat2_3 *format3;
1295 SchPucchFormat4 *format4;
1299 typedef struct schPucchResrcCfg
1301 uint8_t resrcToAddModListCount;
1302 SchPucchResrcInfo resrcToAddModList[MAX_NUM_PUCCH_RESRC];
1303 uint8_t resrcToRelListCount;
1304 uint8_t resrcToRelList[MAX_NUM_PUCCH_RESRC];
1308 typedef struct schSchedReqResrcInfo
1312 uint8_t periodicity;
1315 }SchSchedReqResrcInfo;
1317 typedef struct schPucchSchedReqCfg
1319 uint8_t schedAddModListCount;
1320 SchSchedReqResrcInfo schedAddModList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1321 uint8_t schedRelListCount;
1322 uint8_t schedRelList[MAX_NUM_SR_CFG_PER_CELL_GRP];
1323 }SchPucchSchedReqCfg;
1325 typedef struct schSpatialRelationInfo
1327 uint8_t spatialRelationId;
1328 uint8_t servCellIdx;
1329 uint8_t pathLossRefRSId;
1331 uint8_t closeLoopIdx;
1332 }SchSpatialRelationInfo;
1334 typedef struct schPucchSpatialCfg
1336 uint8_t spatialAddModListCount;
1337 SchSpatialRelationInfo spatialAddModList[MAX_NUM_SPATIAL_RELATIONS];
1338 uint8_t spatialRelListCount;
1339 uint8_t spatialRelList[MAX_NUM_SPATIAL_RELATIONS];
1340 }SchPucchSpatialCfg;
1342 typedef struct schP0PucchCfg
1348 typedef struct schPathLossRefRSCfg
1350 uint8_t pathLossRefRSId;
1351 }SchPathLossRefRSCfg;
1353 typedef struct schPucchMultiCsiCfg
1355 uint8_t multiCsiResrcListCount;
1356 uint8_t multiCsiResrcList[MAX_NUM_PUCCH_RESRC-1];
1357 }SchPucchMultiCsiCfg;
1359 typedef struct schPucchDlDataToUlAck
1361 uint8_t dlDataToUlAckListCount;
1362 uint8_t dlDataToUlAckList[MAX_NUM_DL_DATA_TO_UL_ACK];
1363 }SchPucchDlDataToUlAck;
1365 typedef struct schPucchPowerControl
1373 SchP0PucchCfg p0Set[MAX_NUM_PUCCH_P0_PER_SET];
1374 uint8_t pathLossRefRSListCount;
1375 SchPathLossRefRSCfg pathLossRefRSList[MAX_NUM_PATH_LOSS_REF_RS];
1376 }SchPucchPowerControl;
1378 typedef struct schPucchCfg
1380 SchPucchResrcSetCfg *resrcSet;
1381 SchPucchResrcCfg *resrc;
1382 SchPucchFormatCfg *format1;
1383 SchPucchFormatCfg *format2;
1384 SchPucchFormatCfg *format3;
1385 SchPucchFormatCfg *format4;
1386 SchPucchSchedReqCfg *schedReq;
1387 SchPucchMultiCsiCfg *multiCsiCfg;
1388 SchPucchSpatialCfg *spatialInfo;
1389 SchPucchDlDataToUlAck *dlDataToUlAck;
1390 SchPucchPowerControl *powerControl;
1393 /* Transform precoding disabled */
1394 typedef struct schTransPrecodDisabled
1396 uint16_t scramblingId0;
1397 }SchTransPrecodDisabled;
1399 /* DMRS Uplink configuration */
1400 typedef struct SchDmrsUlCfg
1402 SchDmrsAdditionPosition addPos; /* DMRS additional position */
1403 SchTransPrecodDisabled transPrecodDisabled; /* Transform precoding disabled */
1406 /* PUSCH Configuration */
1407 typedef struct schPuschCfg
1409 uint8_t dataScramblingId;
1410 SchDmrsUlCfg dmrsUlCfgForPuschMapTypeA;
1411 SchResourceAllocType resourceAllocType;
1412 uint8_t numTimeDomRsrcAlloc;
1413 SchPuschTimeDomRsrcAlloc timeDomRsrcAllocList[MAX_NUM_UL_ALLOC]; /* PUSCH time domain UL resource allocation list */
1414 SchTransformPrecoder transformPrecoder;
1417 /* Initial Uplink BWP */
1418 typedef struct schInitialUlBwp
1421 SchPucchCfg pucchCfg;
1423 SchPuschCfg puschCfg;
1424 SchK2TimingInfoTbl k2InfoTbl;
1427 /* Uplink BWP information */
1428 typedef struct schUlBwpInfo
1433 /* Serving cell configuration */
1434 typedef struct schServCellCfgInfo
1436 SchInitalDlBwp initDlBwp;
1437 uint8_t numDlBwpToAdd;
1438 SchDlBwpInfo DlBwpToAddList[MAX_NUM_BWP];
1439 uint8_t firstActvDlBwpId;
1440 uint8_t defaultDlBwpId;
1441 uint8_t *bwpInactivityTmr;
1442 SchPdschServCellCfg pdschServCellCfg;
1443 SchInitialUlBwp initUlBwp;
1444 uint8_t numUlBwpToAdd;
1445 SchUlBwpInfo UlBwpToAddList[MAX_NUM_BWP];
1446 uint8_t firstActvUlBwpId;
1447 }SchServCellCfgInfo;
1449 typedef struct schNonDynFiveQi
1454 uint16_t maxDataBurstVol;
1457 typedef struct schDynFiveQi
1460 uint16_t packetDelayBudget;
1461 uint8_t packetErrRateScalar;
1462 uint8_t packetErrRateExp;
1464 uint8_t delayCritical;
1466 uint16_t maxDataBurstVol;
1469 typedef struct schNgRanAllocAndRetPri
1471 uint8_t priorityLevel;
1472 uint8_t preEmptionCap;
1473 uint8_t preEmptionVul;
1474 }SchNgRanAllocAndRetPri;
1476 typedef struct schGrbQosFlowInfo
1478 uint32_t maxFlowBitRateDl;
1479 uint32_t maxFlowBitRateUl;
1480 uint32_t guarFlowBitRateDl;
1481 uint32_t guarFlowBitRateUl;
1485 typedef struct schDrbQos
1487 SchQosType fiveQiType; /* Dynamic or non-dynamic */
1490 SchNonDynFiveQi nonDyn5Qi;
1491 SchDynFiveQi dyn5Qi;
1493 SchNgRanAllocAndRetPri ngRanRetPri;
1494 SchGrbQosFlowInfo grbQosFlowInfo;
1495 uint16_t pduSessionId;
1496 uint32_t ulPduSessAggMaxBitRate; /* UL PDU Session Aggregate max bit rate */
1499 /* Special cell configuration */
1500 typedef struct schSpCellCfg
1502 uint8_t servCellIdx;
1503 SchServCellCfgInfo servCellCfg;
1506 /* Uplink logical channel configuration */
1507 typedef struct SchUlLcCfg
1512 uint8_t pbr; // prioritisedBitRate
1513 uint8_t bsd; // bucketSizeDuration
1516 /* Downlink logical channel configuration */
1517 typedef struct schDlLcCfg
1519 uint8_t lcp; // logical Channel Prioritization
1522 /* Logical Channel configuration */
1523 typedef struct schLcCfg
1525 ConfigType configType;
1527 SchDrbQosInfo *drbQos;
1533 /* Aggregate max bit rate */
1534 typedef struct schAmbrCfg
1536 uint32_t ulBr; /* Ul BitRate */
1539 typedef struct schModulationInfo
1543 SchMcsTable mcsTable;
1546 /* UE configuration */
1547 typedef struct schUeCfg
1551 bool macCellGrpCfgPres;
1552 SchMacCellGrpCfg macCellGrpCfg;
1553 bool phyCellGrpCfgPres;
1554 SchPhyCellGrpCfg phyCellGrpCfg;
1556 SchSpCellCfg spCellCfg;
1557 SchAmbrCfg *ambrCfg;
1558 SchModulationInfo dlModInfo;
1559 SchModulationInfo ulModInfo;
1561 SchLcCfg schLcCfg[MAX_NUM_LC];
1564 typedef struct schUeCfgRsp
1570 SchFailureCause cause;
1573 typedef struct schUeDelete
1579 typedef struct schUeDeleteRsp
1587 typedef struct schCellDelete
1593 typedef struct schCellDeleteRsp
1599 typedef struct dataVolInfo
1605 typedef struct ulBufferStatusRptInd
1611 DataVolInfo dataVolInfo[MAX_NUM_LOGICAL_CHANNEL_GROUPS];
1612 }UlBufferStatusRptInd;
1614 typedef struct srUciIndInfo
1618 SlotTimingInfo slotInd;
1620 uint8_t srPayload[MAX_SR_BITS_IN_BYTES];
1623 /* function pointers */
1625 typedef uint8_t (*SchCellCfgCfmFunc) ARGS((
1626 Pst *pst, /* Post Structure */
1627 SchCellCfgCfm *schCellCfgCfm /* Cell Cfg Cfm */
1630 typedef uint8_t (*SchCellCfgFunc) ARGS((
1631 Pst *pst, /* Post Structure */
1632 SchCellCfg *schCellCfg /* Cell Cfg */
1635 typedef uint8_t (*SchMacDlAllocFunc) ARGS((
1636 Pst *pst, /* Post Structure */
1637 DlSchedInfo *dlSchedInfo /* dl allocation Info */
1640 typedef uint8_t (*SchMacUlSchInfoFunc) ARGS((
1641 Pst *pst, /* Post Structure */
1642 UlSchedInfo *ulSchedInfo /* UL Alloc Sch Info */
1645 typedef uint8_t (*MacSchRachIndFunc) ARGS((
1646 Pst *pst, /* Post structure */
1647 RachIndInfo *rachInd)); /* Rach Indication Info */
1649 typedef uint8_t (*MacSchCrcIndFunc) ARGS((
1650 Pst *pst, /* Post structure */
1651 CrcIndInfo *crcInd)); /* CRC Info */
1653 typedef uint8_t (*MacSchDlRlcBoInfoFunc) ARGS((
1654 Pst *pst, /* Post structure */
1655 DlRlcBoInfo *dlBoInfo)); /* DL BO Info */
1657 typedef uint8_t (*MacSchAddUeConfigReqFunc) ARGS((
1658 Pst *pst, /* Post structure */
1659 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1661 typedef uint8_t (*SchUeCfgRspFunc) ARGS((
1662 Pst *pst, /* Post structure */
1663 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1665 typedef uint8_t (*MacSchSlotIndFunc) ARGS((
1666 Pst *pst, /* Post structure */
1667 SlotTimingInfo *slotInd)); /* Slot Info */
1669 typedef uint8_t (*MacSchBsrFunc) ARGS((
1671 UlBufferStatusRptInd *bsrInd
1674 typedef uint8_t (*MacSchSrUciIndFunc) ARGS((
1675 Pst *pst, /* Post structure */
1676 SrUciIndInfo *uciInd)); /* UCI IND Info */
1678 typedef uint8_t (*MacSchModUeConfigReqFunc) ARGS((
1679 Pst *pst, /* Post structure */
1680 SchUeCfg *ueCfgToSch)); /* Scheduler UE Cfg */
1682 typedef uint8_t (*SchUeReCfgRspFunc) ARGS((
1683 Pst *pst, /* Post structure */
1684 SchUeCfgRsp *cfgRsp)); /* Scheduler UE Cfg response */
1686 typedef uint8_t (*MacSchUeDeleteReqFunc) ARGS((
1687 Pst *pst, /* Post structure */
1688 SchUeDelete *schUeDel)); /*Scheduler UE Del*/
1690 typedef uint8_t (*SchUeDeleteRspFunc) ARGS((
1691 Pst *pst, /* Post structure */
1692 SchUeDeleteRsp *delRsp)); /* Scheduler UE delete response */
1694 typedef uint8_t (*MacSchCellDeleteReqFunc) ARGS((
1695 Pst *pst, /* Post structure */
1696 SchCellDelete *schCellDelete)); /*Scheduler UE Del*/
1698 typedef uint8_t (*SchCellDeleteRspFunc) ARGS((
1699 Pst *pst, /* Post structure */
1700 SchCellDeleteRsp *schCellDeleteRsp)); /* Scheduler UE delete response */
1702 /* function declarations */
1703 uint8_t packMacSchSlotInd(Pst *pst, SlotTimingInfo *slotInd);
1704 uint8_t packSchMacDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1705 uint8_t packSchMacUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1706 uint8_t packSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1707 uint8_t packSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1708 uint8_t MacProcDlAlloc(Pst *pst, DlSchedInfo *dlSchedInfo);
1709 uint8_t MacProcSchCellCfg(Pst *pst, SchCellCfg *schCellCfg);
1710 uint8_t MacProcSchCellCfgCfm(Pst *pst, SchCellCfgCfm *schCellCfgCfm);
1711 uint8_t SchHdlCellCfgReq(Pst *pst, SchCellCfg *schCellCfg);
1712 uint8_t schActvInit(Ent entity, Inst instId, Region region, Reason reason);
1713 uint8_t MacProcUlSchInfo(Pst *pst, UlSchedInfo *ulSchedInfo);
1714 uint8_t packMacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1715 uint8_t MacSchRachInd(Pst *pst, RachIndInfo *rachInd);
1716 uint8_t packMacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1717 uint8_t MacSchCrcInd(Pst *pst, CrcIndInfo *crcInd);
1718 uint8_t packMacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1719 uint8_t MacSchDlRlcBoInfo(Pst *pst, DlRlcBoInfo *dlBoInfo);
1720 uint8_t packMacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1721 uint8_t MacSchAddUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1722 uint8_t packSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1723 uint8_t MacProcSchUeCfgRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1724 uint8_t MacSchSlotInd ARGS((Pst * pst, SlotTimingInfo * slotInd));
1725 uint8_t packMacSchSlotInd(Pst * pst, SlotTimingInfo * slotInd);
1726 uint8_t unpackMacSchSlotInd(MacSchSlotIndFunc func, Pst *pst, Buffer *mBuf);
1727 uint8_t packMacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1728 uint8_t MacSchBsr(Pst *pst, UlBufferStatusRptInd *bsrInd);
1729 uint8_t packMacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1730 uint8_t MacSchSrUciInd(Pst *pst, SrUciIndInfo *uciInd);
1731 uint8_t packMacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1732 uint8_t MacSchModUeConfigReq(Pst *pst, SchUeCfg *ueCfgToSch);
1733 uint8_t packSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1734 uint8_t MacProcSchUeReconfigRsp(Pst *pst, SchUeCfgRsp *cfgRsp);
1735 uint8_t packMacSchUeDeleteReq(Pst *pst, SchUeDelete *schUeDel);
1736 uint8_t MacSchUeDeleteReq(Pst *pst, SchUeDelete *ueDelete);
1737 uint8_t packSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *delRsp);
1738 uint8_t MacProcSchUeDeleteRsp(Pst *pst, SchUeDeleteRsp *schUeDelRsp);
1739 uint8_t packMacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1740 uint8_t MacSchCellDeleteReq(Pst *pst, SchCellDelete *schCellDelete);
1741 uint8_t packSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1742 uint8_t MacProcSchCellDeleteRsp(Pst *pst, SchCellDeleteRsp *schCellDeleteRsp);
1744 /**********************************************************************
1746 **********************************************************************/