a27196d312c69d7c644d58187cf89cf34fab8149
[o-du/l2.git] / src / 5gnrrlc / kw_id.c
1 /*******************************************************************************
2 ################################################################################
3 #   Copyright (c) [2017-2019] [Radisys]                                        #
4 #                                                                              #
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                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
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 *******************************************************************************/
18
19 /********************************************************************20**
20   
21         Name:    LTE-RLC Layer 
22     
23         Type:     C source file
24   
25         Desc:     <description of file contents>
26  
27         File:     kw_id.c
28
29 *********************************************************************21*/
30  
31
32 \f  
33 /* header include files (.h) */
34   
35 #include "envopt.h"             /* environment options */  
36 #include "envdep.h"             /* environment dependent */
37 #include "envind.h"             /* environment independent */
38
39 #include "gen.h"                /* general */
40 #include "ssi.h"                /* system services interface */
41
42 /* header/extern include files (.x) */
43
44 #include "gen.x"                /* general */
45 #include "ssi.x"                /* system services interface */
46
47 \f  
48 /* local defines */
49
50 #define RLCSWMV 2             /* rlc - main version */
51 #define RLCSWMR 1             /* rlc - main revision */
52 #define RLCSWBV 0             /* rlc - branch version */
53 #define RLCSWBR 5             /* rlc -  kw005.201 patch level */
54 #define RLCSWPN "1000371"     /* rlc - part number */
55
56 /* local typedefs */
57
58 /* local externs */
59   
60 /* forward references */
61
62 /* public variable declarations */
63
64 #ifdef __cplusplus
65 extern "C" {
66 #endif /* CPLUSPLUS */
67
68 S16 rlcGetSId ARGS((SystemId *s));
69 #ifdef __cplusplus
70 }
71 #endif /* CPLUSPLUS */
72
73 /* copyright banner */
74
75 const Txt rlcBan1[] =
76    {"(c) COPYRIGHT 1989-2002, Trillium Digital Systems, Inc."};
77
78 const Txt rlcBan2[] =
79    {"                 All rights reserved."};
80
81 /* system id */
82
83 static const SystemId sId ={
84    RLCSWMV,              /* rlc - main version */
85    RLCSWMR,              /* rlc - main revision */
86    RLCSWBV,              /* rlc - branch version */
87    RLCSWBR,              /* rlc - branch revision */
88    RLCSWPN               /* rlc - part number */
89 };
90
91 /*
92 *     support functions
93 */
94
95 /*
96 *
97 *       Fun:   get system id
98 *
99 *       Desc:  Get system id consisting of part number, main version and
100 *              revision and branch version and branch.
101 *
102 *       Ret:   TRUE      - ok
103 *
104 *       Notes: None
105 *
106 *       File:  kw_id.c
107 *
108 */
109
110 S16 rlcGetSId
111 (
112 SystemId *s                 /* system id */
113 )
114 {
115
116    s->mVer = sId.mVer;
117    s->mRev = sId.mRev;
118    s->bVer = sId.bVer;
119    s->bRev = sId.bRev;
120    s->ptNmb = sId.ptNmb;
121
122    return (TRUE);
123
124 } /* end of rlcGetSId */
125
126 \f  
127 /********************************************************************30**
128   
129          End of file
130 **********************************************************************/