source: umon/main/common/boardinfo.h @ 87db514

Last change on this file since 87db514 was 87db514, checked in by Amar Takhar <amar@…>, on 04/16/15 at 19:26:21

Initial commit of the umon repository.

Prior to this three changes were made:

  • Remove umon_ prefix from parent directories.
  • Collapse main/target/ into main/
  • Remove ports/template/flashtest.scr.ucon script.
  • Property mode set to 100644
File size: 1.6 KB
Line 
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
31struct boardinfo {
32        unsigned char *array;
33        short size;
34        char *varname;
35        char *def;
36        char *prompt;
37};
38
39struct 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 */
52extern struct boardinfo boardinfotbl[];
53
54extern void BoardInfoInit(void), BoardInfoEnvInit(void);
55extern int BoardInfoVar(char *);
56#endif
Note: See TracBrowser for help on using the repository browser.