1161202Simp/******************************************************************************
2161202Simp *
3161202Simp * Filename: env_vars.h
4161202Simp *
5161202Simp * Definition of environment variables, structures, and other globals.
6161202Simp *
7161202Simp * Revision information:
8161202Simp *
9161202Simp * 20AUG2004	kb_admin	initial creation
10161202Simp *
11161202Simp * BEGIN_KBDD_BLOCK
12161202Simp * No warranty, expressed or implied, is included with this software.  It is
13161202Simp * provided "AS IS" and no warranty of any kind including statutory or aspects
14161202Simp * relating to merchantability or fitness for any purpose is provided.  All
15161202Simp * intellectual property rights of others is maintained with the respective
16161202Simp * owners.  This software is not copyrighted and is intended for reference
17161202Simp * only.
18161202Simp * END_BLOCK
19161202Simp *
20161202Simp * $FreeBSD$
21161202Simp *****************************************************************************/
22161202Simp
23161202Simp#ifndef _ENV_VARS_H_
24161202Simp#define _ENV_VARS_H_
25161202Simp
26161202Simp/* each environment variable is a string following the standard command	*/
27161202Simp/* definition used by the interactive loader in the following format:	*/
28161202Simp/*  <command> <parm1> <parm2> ...					*/
29161202Simp/* all environment variables (or commands) are stored in a string	*/
30161202Simp/* format: NULL-terminated.						*/
31161202Simp/* this implies that commands can never utilize 0-values: actual 0, not	*/
32161202Simp/* the string '0'.  this is not an issue as the string '0' is handled	*/
33161202Simp/* by the command parse routine.					*/
34161202Simp
35161202Simp/* the following defines the maximum size of the environment for 	*/
36161202Simp/* including variables.							*/
37161202Simp/* this value must match that declared in the low-level file that	*/
38161202Simp/* actually reserves the space for the non-volatile environment.	*/
39161202Simp#define	MAX_ENV_SIZE_BYTES	0x100
40161202Simp
41161202Simp#define MAX_BOOT_COMMANDS	10
42161202Simp
43161202Simp/* C-style reference section						*/
44161202Simp#ifndef __ASSEMBLY__
45161202Simp
46161202Simpextern void	WriteCommandTable(void);
47161202Simpextern void	SetBootCommand(int index, char *command);
48161202Simpextern void	DumpBootCommands(void);
49161202Simpextern void	LoadBootCommands(void);
50161202Simpextern void	ExecuteEnvironmentFunctions(void);
51161202Simp
52161202Simp#endif /* !__ASSEMBLY__ */
53161202Simp
54161202Simp#endif /* _ENV_VARS_H_ */
55