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 /************************************************************************
25 Desc: C source code for Entry point fucntions
29 **********************************************************************/
32 @brief This module handles uplink harq related functionality in MAC.
35 /* header include files -- defines (.h) */
36 #include "envopt.h" /* environment options */
37 #include "envdep.h" /* environment dependent */
38 #include "envind.h" /* environment independent */
40 #include "gen.h" /* general */
41 #include "ssi.h" /* system services */
43 #include "cm_lte.h" /* Common LTE */
44 #include "cm_tkns.h" /* Common Token Defines */
45 #include "cm_llist.h" /* Common Link List Defines */
46 #include "cm_hash.h" /* Common Hash List Defines */
47 #include "cm_mblk.h" /* memory management */
49 #include "rg_env.h" /* MAC Environment Defines */
50 #include "tfu.h" /* TFU Interface defines */
51 #include "crg.h" /* CRG Interface defines */
52 #include "rgu.h" /* RGU Interface defines */
53 #include "rg_sch_inf.h" /* TFU Interface defines */
54 #include "lrg.h" /* LRG Interface defines */
56 #include "rg.h" /* MAC defines */
57 #include "rg_err.h" /* MAC error defines */
59 /* header/extern include files (.x) */
60 #include "gen.x" /* general */
61 #include "ssi.x" /* system services */
62 #include "cm5.x" /* system services */
63 #include "cm_lte.x" /* Common LTE */
64 #include "cm_tkns.x" /* Common Token Definitions */
65 #include "cm_llist.x" /* Common Link List Definitions */
66 #include "cm_lib.x" /* Common Library Definitions */
67 #include "cm_hash.x" /* Common Hash List Definitions */
68 #include "cm_mblk.x" /* memory management */
70 #include "tfu.x" /* TFU Interface defines */
71 #include "crg.x" /* CRG Interface includes */
72 #include "rgu.x" /* RGU Interface includes */
73 #include "rg_sch_inf.x" /* SCH Interface defines */
74 #include "rg_prg.x" /* PRG Interface defines */
75 #include "lrg.x" /* LRG Interface includes */
77 #include "du_app_mac_inf.h"
78 #include "rg.x" /* MAC includes */
86 /* forward references */
89 * @brief Handler for initializing the HARQ entity.
93 * Function: rgUHMCrgUeCfg
98 * - Initialize maxHqRetx
101 * @param[in,out] *ueCb
107 PUBLIC Void rgUHMCrgUeCfg
114 PUBLIC Void rgUHMCrgUeCfg(cellCb, ueCb, ueCfg)
122 ueCb->ul.hqEnt.maxHqRetx = (ueCfg->ueUlHqCfg.maxUlHqTx - 1);
124 } /* rgUHMCrgUeCfg */
127 * @brief Handler for re-initializing the HARQ entity.
131 * Function: rgUHMCrgUeRecfg
136 * - Re-initialize maxHqRetx
139 * @param[in,out] *ueCb
145 PUBLIC Void rgUHMCrgUeRecfg
152 PUBLIC Void rgUHMCrgUeRecfg(cellCb, ueCb, ueRecfg)
158 TRC2(rgUHMCrgUeRecfg);
160 ueCb->ul.hqEnt.maxHqRetx = (ueRecfg->ueUlHqRecfg.maxUlHqTx - 1);
162 } /* rgUHMCrgUeCfg */
164 /**********************************************************************
167 **********************************************************************/