199767f8919635c4928607450d9e0abb932109ceToomas Soome/******************************************************************************
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Filename: env_vars.h
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Definition of environment variables, structures, and other globals.
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Revision information:
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * 20AUG2004 kb_admin initial creation
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * BEGIN_KBDD_BLOCK
199767f8919635c4928607450d9e0abb932109ceToomas Soome * No warranty, expressed or implied, is included with this software. It is
199767f8919635c4928607450d9e0abb932109ceToomas Soome * provided "AS IS" and no warranty of any kind including statutory or aspects
199767f8919635c4928607450d9e0abb932109ceToomas Soome * relating to merchantability or fitness for any purpose is provided. All
199767f8919635c4928607450d9e0abb932109ceToomas Soome * intellectual property rights of others is maintained with the respective
199767f8919635c4928607450d9e0abb932109ceToomas Soome * owners. This software is not copyrighted and is intended for reference
199767f8919635c4928607450d9e0abb932109ceToomas Soome * only.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * END_BLOCK
199767f8919635c4928607450d9e0abb932109ceToomas Soome *
199767f8919635c4928607450d9e0abb932109ceToomas Soome * $FreeBSD$
199767f8919635c4928607450d9e0abb932109ceToomas Soome *****************************************************************************/
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#ifndef _ENV_VARS_H_
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define _ENV_VARS_H_
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* each environment variable is a string following the standard command */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* definition used by the interactive loader in the following format: */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* <command> <parm1> <parm2> ... */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* all environment variables (or commands) are stored in a string */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* format: NULL-terminated. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* this implies that commands can never utilize 0-values: actual 0, not */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* the string '0'. this is not an issue as the string '0' is handled */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* by the command parse routine. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* the following defines the maximum size of the environment for */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* including variables. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* this value must match that declared in the low-level file that */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* actually reserves the space for the non-volatile environment. */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define MAX_ENV_SIZE_BYTES 0x100
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define MAX_BOOT_COMMANDS 10
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* C-style reference section */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#ifndef __ASSEMBLY__
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern void WriteCommandTable(void);
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern void SetBootCommand(int index, char *command);
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern void DumpBootCommands(void);
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern void LoadBootCommands(void);
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern void ExecuteEnvironmentFunctions(void);
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#endif /* !__ASSEMBLY__ */
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#endif /* _ENV_VARS_H_ */