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 *******************************************************************************/
19 /* Contains definitions for MAC CL modules */
23 #define MAX_NUM_CELL_SUPP 1
36 #include "du_app_mac_inf.h"
39 #define LWR_MAC_ALLOC(_datPtr, _size) WLS_MEM_ALLOC(_datPtr, _size);
41 #define LWR_MAC_ALLOC(_datPtr, _size) MAC_ALLOC(_datPtr, _size);
52 /* Events in Lower Mac */
67 Bool clCfgDone; /* CL configuration done */
68 CmHashListCp cellCbLst; /* List of Cells configured */
69 U8 numOfCells; /* Number of Cells configured */
70 PhyState phyState; /* State of PHY */
71 EventState event; /* State of Event */
94 NORMAL_CYCLIC_PREFIX_MASK,
95 EXTENDED_CYCLIC_PREFIX_MASK
125 CCE_MAPPING_INTERLEAVED_MASK,
126 CCE_MAPPING_NONINTERLVD_MASK
152 VRB_TO_PRB_MAP_NON_INTLV,
153 VRB_TO_PRB_MAP_INTLVD
170 DMRS_ADDITIONAL_POS_0,
171 DMRS_ADDITIONAL_POS_1,
172 DMRS_ADDITIONAL_POS_2,
173 DMRS_ADDITIONAL_POS_3
207 PRACH_FD_OCC_IN_A_SLOT_1 = 1,
208 PRACH_FD_OCC_IN_A_SLOT_2 = 2,
209 PRACH_FD_OCC_IN_A_SLOT_4 = 4,
210 PRACH_FD_OCC_IN_A_SLOT_8 = 8
219 typedef struct clCellParam
221 ReleaseCapab releaseCapability; /* Release Capability */
222 PhyState ParamPhystate;
223 ParamSupport skipBlankDlConfig;
224 ParamSupport skipBlankUlConfig;
225 ParamSupport numTlvsToReport;
226 CyclicPrefix cyclicPrefix;
227 SubCarrierSpacing supportedSubcarrierSpacingDl;
228 SupportedBandwidth supportedBandwidthDl;
229 SubCarrierSpacing supportedSubcarrierSpacingsUl;
230 SupportedBandwidth supportedBandwidthUl;
231 CCEMappingType cceMappingType;
232 ParamSupport coresetOutsideFirst3OfdmSymsOfSlot;
233 ParamSupport precoderGranularityCoreset;
234 ParamSupport pdcchMuMimo;
235 ParamSupport pdcchPrecoderCycling;
237 Formats pucchFormats;
239 MappingType pdschMappingType;
240 AllocationType pdschAllocationTypes;
241 VrbToPrbMap pdschVrbToPrbMapping;
242 ParamSupport pdschCbg;
243 DmrsConfigType pdschDmrsConfigTypes;
244 DmrMaxLen pdschDmrsMaxLength;
245 DmrsPos pdschDmrsAdditionalPos;
246 U8 maxPdschsTBsPerSlot;
247 U8 maxNumberMimoLayersPdsch;
248 ModulationOrder supportedMaxModulationOrderDl;
250 ParamSupport pdschDataInDmrsSymbols;
251 ParamSupport premptionSupport;
252 ParamSupport pdschNonSlotSupport;
253 ParamSupport uciMuxUlschInPusch;
254 ParamSupport uciOnlyPusch;
255 ParamSupport puschFrequencyHopping;
256 DmrsConfigType puschDmrsConfigTypes;
257 DmrMaxLen puschDmrsMaxLength;
258 DmrsPos puschDmrsAdditionalPos;
259 ParamSupport puschCbg;
260 MappingType puschMappingType;
261 AllocationType puschAllocationTypes;
262 VrbToPrbMap puschVrbToPrbMapping;
263 U8 puschMaxPtrsPorts;
264 U8 maxPduschsTBsPerSlot;
265 U8 maxNumberMimoLayersNonCbPusch;
266 ModulationOrder supportedModulationOrderUl;
268 ParamSupport dftsOfdmSupport;
269 AggregationFactor puschAggregationFactor;
270 Formats prachLongFormats;
271 ShortFormat prachShortFormats;
272 ParamSupport prachRestrictedSets;
273 FdOccPerSlot maxPrachFdOccasionsInASlot;
274 RssiMeasurement rssiMeasurementSupport;
277 EXTERN ClCb clGlobalCp;
278 EXTERN ClCellCb * rgClUtlGetCellCb ARGS((U16 cellId));
279 EXTERN uint32_t reverseBits(uint32_t num, uint8_t numBits);
280 EXTERN void fillDlDciPayload(uint8_t *buf, uint8_t *bytePos, uint8_t *bitPos,\
281 uint32_t val, uint8_t valSize);
282 EXTERN void lwrMacInit();
286 /**********************************************************************
288 **********************************************************************/