Committing in PDCP code
[o-du/l2.git] / src / 5gnrpdcp / pj_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-PDCP Layer
22     
23         Type:     C source file
24   
25         Desc:     
26  
27         File:     pj_id.c
28   
29 *********************************************************************21*/
30
31 \f  
32 /* header include files (.h) */
33   
34 #include "envopt.h"             /* environment options */  
35 #include "envdep.h"             /* environment dependent */
36 #include "envind.h"             /* environment independent */
37
38 #include "gen.h"                /* general */
39 #include "ssi.h"                /* system services interface */
40
41 /* header/extern include files (.x) */
42
43 #include "gen.x"                /* general */
44 #include "ssi.x"                /* system services interface */
45
46 \f  
47 /* local defines */
48
49 #define KWSWMV 2             /* rlc - main version */
50 #define KWSWMR 1             /* rlc - main revision */
51 #define KWSWBV 0             /* rlc - branch version */
52 #define KWSWBR 5             /* rlc -  kw005.201 patch level */
53 #define KWSWPN "1000371"     /* rlc - part number */
54
55 /* local typedefs */
56
57 /* local externs */
58   
59 /* forward references */
60
61 /* public variable declarations */
62
63 #ifdef __cplusplus
64 EXTERN "C" {
65 #endif /* CPLUSPLUS */
66
67 EXTERN S16 pjGetSId ARGS((SystemId *s));
68 #ifdef __cplusplus
69 }
70 #endif /* CPLUSPLUS */
71
72 /* copyright banner */
73
74 PUBLIC CONSTANT Txt pjBan1[] =
75    {"(c) COPYRIGHT 1989-2002, Trillium Digital Systems, Inc."};
76
77 PUBLIC CONSTANT Txt pjBan2[] =
78    {"                 All rights reserved."};
79
80 /* system id */
81
82 PRIVATE CONSTANT SystemId sId ={
83    KWSWMV,              /* rlc - main version */
84    KWSWMR,              /* rlc - main revision */
85    KWSWBV,              /* rlc - branch version */
86    KWSWBR,              /* rlc - branch revision */
87    KWSWPN               /* rlc - part number */
88 };
89
90 /*
91 *     support functions
92 */
93
94 /*
95 *
96 *       Fun:   get system id
97 *
98 *       Desc:  Get system id consisting of part number, main version and
99 *              revision and branch version and branch.
100 *
101 *       Ret:   TRUE      - ok
102 *
103 *       Notes: None
104 *
105 *       File:  kw_id.c
106 *
107 */
108
109 #ifdef ANSI
110 PUBLIC S16 pjGetSId
111 (
112 SystemId *s                 /* system id */
113 )
114 #else
115 PUBLIC S16 pjGetSId(s)
116 SystemId *s;                /* system id */
117 #endif
118 {
119    TRC2(pjGetSId);
120
121    s->mVer = sId.mVer;
122    s->mRev = sId.mRev;
123    s->bVer = sId.bVer;
124    s->bRev = sId.bRev;
125    s->ptNmb = sId.ptNmb;
126
127    RETVALUE(TRUE);
128
129 } /* end of pjGetSId */
130
131 \f  
132 /********************************************************************30**
133   
134          End of file
135 **********************************************************************/