xref: /titanic_52/usr/src/boot/sys/boot/arm/at91/bootiic/env_vars.h (revision 4a5d661a82b942b6538acd26209d959ce98b593a)
1 /******************************************************************************
2  *
3  * Filename: env_vars.h
4  *
5  * Definition of environment variables, structures, and other globals.
6  *
7  * Revision information:
8  *
9  * 20AUG2004	kb_admin	initial creation
10  *
11  * BEGIN_KBDD_BLOCK
12  * No warranty, expressed or implied, is included with this software.  It is
13  * provided "AS IS" and no warranty of any kind including statutory or aspects
14  * relating to merchantability or fitness for any purpose is provided.  All
15  * intellectual property rights of others is maintained with the respective
16  * owners.  This software is not copyrighted and is intended for reference
17  * only.
18  * END_BLOCK
19  *
20  * $FreeBSD$
21  *****************************************************************************/
22 
23 #ifndef _ENV_VARS_H_
24 #define _ENV_VARS_H_
25 
26 /* each environment variable is a string following the standard command	*/
27 /* definition used by the interactive loader in the following format:	*/
28 /*  <command> <parm1> <parm2> ...					*/
29 /* all environment variables (or commands) are stored in a string	*/
30 /* format: NULL-terminated.						*/
31 /* this implies that commands can never utilize 0-values: actual 0, not	*/
32 /* the string '0'.  this is not an issue as the string '0' is handled	*/
33 /* by the command parse routine.					*/
34 
35 /* the following defines the maximum size of the environment for 	*/
36 /* including variables.							*/
37 /* this value must match that declared in the low-level file that	*/
38 /* actually reserves the space for the non-volatile environment.	*/
39 #define	MAX_ENV_SIZE_BYTES	0x100
40 
41 #define MAX_BOOT_COMMANDS	10
42 
43 /* C-style reference section						*/
44 #ifndef __ASSEMBLY__
45 
46 extern void	WriteCommandTable(void);
47 extern void	SetBootCommand(int index, char *command);
48 extern void	DumpBootCommands(void);
49 extern void	LoadBootCommands(void);
50 extern void	ExecuteEnvironmentFunctions(void);
51 
52 #endif /* !__ASSEMBLY__ */
53 
54 #endif /* _ENV_VARS_H_ */
55