1 | /************************************************************************** |
---|
2 | * |
---|
3 | * Copyright (c) 2013 Alcatel-Lucent |
---|
4 | * |
---|
5 | * Alcatel Lucent licenses this file to You under the Apache License, |
---|
6 | * Version 2.0 (the "License"); you may not use this file except in |
---|
7 | * compliance with the License. A copy of the License is contained the |
---|
8 | * file LICENSE at the top level of this repository. |
---|
9 | * You may also obtain a copy of the License at: |
---|
10 | * |
---|
11 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
12 | * |
---|
13 | * Unless required by applicable law or agreed to in writing, software |
---|
14 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
16 | * See the License for the specific language governing permissions and |
---|
17 | * limitations under the License. |
---|
18 | * |
---|
19 | ************************************************************************** |
---|
20 | * |
---|
21 | * boardinfo.h: |
---|
22 | * |
---|
23 | * Structures and data used by boardinfo facility. |
---|
24 | * |
---|
25 | * Original author: Ed Sutter (ed.sutter@alcatel-lucent.com) |
---|
26 | * |
---|
27 | */ |
---|
28 | #ifndef _BOARDINFO_H_ |
---|
29 | #define _BOARDINFO_H_ |
---|
30 | |
---|
31 | struct boardinfo { |
---|
32 | unsigned char *array; |
---|
33 | short size; |
---|
34 | char *varname; |
---|
35 | char *def; |
---|
36 | char *prompt; |
---|
37 | }; |
---|
38 | |
---|
39 | struct boardinfoverify { |
---|
40 | unsigned short len; |
---|
41 | unsigned short crc16; |
---|
42 | }; |
---|
43 | |
---|
44 | #define BISIZE sizeof(struct boardinfo) |
---|
45 | #define BIVSIZE sizeof(struct boardinfoverify) |
---|
46 | |
---|
47 | /* boardinfotbl[]: |
---|
48 | * If the "boardinfo" facility in the monitor is to be used, then |
---|
49 | * this table must be included in the target-specific portion of |
---|
50 | * the monitor build. |
---|
51 | */ |
---|
52 | extern struct boardinfo boardinfotbl[]; |
---|
53 | |
---|
54 | extern void BoardInfoInit(void), BoardInfoEnvInit(void); |
---|
55 | extern int BoardInfoVar(char *); |
---|
56 | #endif |
---|