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 to provide software part number, version and
30 **********************************************************************/
33 @brief This file contains the definition of this software's part number,
34 version and revision. Also provides an API to access the same.
37 /* header include files (.h) */
38 #include "common_def.h"
39 #include "lrg.h" /* layer manager */
41 /* header/extern include files (.x) */
42 #include "cm_lib.x" /* common library */
47 #endif /* __cplusplus */
48 Void rgGetSId ARGS((SystemId *s));
51 #endif /* __cplusplus */
54 #define RGSWMV 3 /* LTE MAC- main version */
55 #define RGSWMR 1 /* LTE MAC - main revision */
56 #define RGSWBV 0 /* LTE MAC - branch version */
57 /* Updated the branch revision Number */
58 #define RGSWBR 2 /* LTE MAC - branch revision */
59 #define RGSWPN "1000372" /* LTE MAC - part number */
62 static const SystemId sId ={
63 RGSWMV, /* LTE MAC - main version */
64 RGSWMR, /* LTE MAC - main revision */
65 RGSWBV, /* LTE MAC - branch version */
66 RGSWBR, /* LTE MAC - branch revision */
67 (Txt *)RGSWPN /* LTE MAC - part number */
72 * @brief Retrieve system id.
78 * Get system id consisting of part number, main version and
79 * revision and branch version and branch.
82 * @param[out] SystemId *s
89 * Desc: Get system id consisting of part number, main version and
90 * revision and branch version and branch.
102 SystemId *s /* system id */
109 memcpy(s->ptNmb, sId.ptNmb, LRG_MAX_PT_NUM_SIZE);
111 /* Stack Crash Problem for TRACE5 Changes. Added the return below */
114 } /* end of rgGetSid */
118 /**********************************************************************
121 **********************************************************************/