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 /********************************************************************20**
25 Desc: <description of file contents>
29 *********************************************************************21*/
33 /* header include files (.h) */
35 #include "envopt.h" /* environment options */
36 #include "envdep.h" /* environment dependent */
37 #include "envind.h" /* environment independent */
39 #include "gen.h" /* general */
40 #include "ssi.h" /* system services interface */
42 /* header/extern include files (.x) */
44 #include "gen.x" /* general */
45 #include "ssi.x" /* system services interface */
50 #define KWSWMV 2 /* rlc - main version */
51 #define KWSWMR 1 /* rlc - main revision */
52 #define KWSWBV 0 /* rlc - branch version */
53 #define KWSWBR 5 /* rlc - kw005.201 patch level */
54 #define KWSWPN "1000371" /* rlc - part number */
60 /* forward references */
62 /* public variable declarations */
66 #endif /* CPLUSPLUS */
68 EXTERN S16 kwGetSId ARGS((SystemId *s));
71 #endif /* CPLUSPLUS */
73 /* copyright banner */
75 PUBLIC CONSTANT Txt kwBan1[] =
76 {"(c) COPYRIGHT 1989-2002, Trillium Digital Systems, Inc."};
78 PUBLIC CONSTANT Txt kwBan2[] =
79 {" All rights reserved."};
83 PRIVATE CONSTANT SystemId sId ={
84 KWSWMV, /* rlc - main version */
85 KWSWMR, /* rlc - main revision */
86 KWSWBV, /* rlc - branch version */
87 KWSWBR, /* rlc - branch revision */
88 KWSWPN /* rlc - part number */
99 * Desc: Get system id consisting of part number, main version and
100 * revision and branch version and branch.
113 SystemId *s /* system id */
116 PUBLIC S16 kwGetSId(s)
117 SystemId *s; /* system id */
126 s->ptNmb = sId.ptNmb;
130 } /* end of kwGetSId */
133 /********************************************************************30**
136 **********************************************************************/