1161370Simp/******************************************************************************
2161370Simp *
3161370Simp * Filename: env_vars.h
4161370Simp *
5161370Simp * Definition of environment variables, structures, and other globals.
6161370Simp *
7161370Simp * Revision information:
8161370Simp *
9161370Simp * 20AUG2004	kb_admin	initial creation
10161370Simp *
11161370Simp * BEGIN_KBDD_BLOCK
12161370Simp * No warranty, expressed or implied, is included with this software.  It is
13161370Simp * provided "AS IS" and no warranty of any kind including statutory or aspects
14161370Simp * relating to merchantability or fitness for any purpose is provided.  All
15161370Simp * intellectual property rights of others is maintained with the respective
16161370Simp * owners.  This software is not copyrighted and is intended for reference
17161370Simp * only.
18161370Simp * END_BLOCK
19161370Simp *
20161370Simp * $FreeBSD: releng/11.0/sys/boot/arm/at91/bootspi/env_vars.h 161370 2006-08-16 23:39:58Z imp $
21161370Simp *****************************************************************************/
22161370Simp
23161370Simp#ifndef _ENV_VARS_H_
24161370Simp#define _ENV_VARS_H_
25161370Simp
26161370Simp/* each environment variable is a string following the standard command	*/
27161370Simp/* definition used by the interactive loader in the following format:	*/
28161370Simp/*  <command> <parm1> <parm2> ...					*/
29161370Simp/* all environment variables (or commands) are stored in a string	*/
30161370Simp/* format: NULL-terminated.						*/
31161370Simp/* this implies that commands can never utilize 0-values: actual 0, not	*/
32161370Simp/* the string '0'.  this is not an issue as the string '0' is handled	*/
33161370Simp/* by the command parse routine.					*/
34161370Simp
35161370Simp/* the following defines the maximum size of the environment for 	*/
36161370Simp/* including variables.							*/
37161370Simp/* this value must match that declared in the low-level file that	*/
38161370Simp/* actually reserves the space for the non-volatile environment.	*/
39161370Simp#define	MAX_ENV_SIZE_BYTES	0x100
40161370Simp
41161370Simp#define MAX_BOOT_COMMANDS	10
42161370Simp
43161370Simp/* C-style reference section						*/
44161370Simp#ifndef __ASSEMBLY__
45161370Simp
46161370Simpextern void	WriteCommandTable(void);
47161370Simpextern void	SetBootCommand(int index, char *command);
48161370Simpextern void	DumpBootCommands(void);
49161370Simpextern void	LoadBootCommands(void);
50161370Simpextern void	ExecuteEnvironmentFunctions(void);
51161370Simp
52161370Simp#endif /* !__ASSEMBLY__ */
53161370Simp
54161370Simp#endif /* _ENV_VARS_H_ */
55