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 "envopt.h" /* environment options */
39 #include "envdep.h" /* environment dependent */
40 #include "envind.h" /* environment independent */
41 #include "gen.h" /* general layer */
42 #include "ssi.h" /* system services */
43 #include "lrg.h" /* layer manager */
45 /* header/extern include files (.x) */
46 #include "gen.x" /* general layer */
47 #include "ssi.x" /* system services */
48 #include "cm_lib.x" /* common library */
53 #endif /* __cplusplus */
54 EXTERN Void rgGetSId ARGS((SystemId *s));
57 #endif /* __cplusplus */
60 #define RGSWMV 3 /* LTE MAC- main version */
61 #define RGSWMR 1 /* LTE MAC - main revision */
62 #define RGSWBV 0 /* LTE MAC - branch version */
63 /* Updated the branch revision Number */
64 #define RGSWBR 2 /* LTE MAC - branch revision */
65 #define RGSWPN "1000372" /* LTE MAC - part number */
68 PRIVATE CONSTANT SystemId sId ={
69 RGSWMV, /* LTE MAC - main version */
70 RGSWMR, /* LTE MAC - main revision */
71 RGSWBV, /* LTE MAC - branch version */
72 RGSWBR, /* LTE MAC - branch revision */
73 (Txt *)RGSWPN /* LTE MAC - part number */
78 * @brief Retrieve system id.
84 * Get system id consisting of part number, main version and
85 * revision and branch version and branch.
88 * @param[out] SystemId *s
95 * Desc: Get system id consisting of part number, main version and
96 * revision and branch version and branch.
109 SystemId *s /* system id */
112 PUBLIC Void rgGetSId(s)
113 SystemId *s; /* system id */
122 cmMemcpy((U8 *)s->ptNmb, (U8 *)sId.ptNmb, LRG_MAX_PT_NUM_SIZE);
124 /* Stack Crash Problem for TRACE5 Changes. Added the return below */
127 } /* end of rgGetSid */
131 /**********************************************************************
134 **********************************************************************/