ae78672c56
o Use a directory layout that is more akin to the i386 boot layout. o Create a libat91 for library routines that are used by one or more of the boot loaders. o Create bootiic for booting from an iic part. o Create bootspi for booting from an spi part. o Optimize the size of many of these routines (especially emac.c). Except for the emac.c optimizations, all these have been tested. o eliminate the inc directory, libat91 superceeds it. o Move linker.cfg up a layer to allow it to be shared.
55 lines
1.9 KiB
C
55 lines
1.9 KiB
C
/******************************************************************************
|
|
*
|
|
* Filename: env_vars.h
|
|
*
|
|
* Definition of environment variables, structures, and other globals.
|
|
*
|
|
* Revision information:
|
|
*
|
|
* 20AUG2004 kb_admin initial creation
|
|
*
|
|
* BEGIN_KBDD_BLOCK
|
|
* No warranty, expressed or implied, is included with this software. It is
|
|
* provided "AS IS" and no warranty of any kind including statutory or aspects
|
|
* relating to merchantability or fitness for any purpose is provided. All
|
|
* intellectual property rights of others is maintained with the respective
|
|
* owners. This software is not copyrighted and is intended for reference
|
|
* only.
|
|
* END_BLOCK
|
|
*
|
|
* $FreeBSD$
|
|
*****************************************************************************/
|
|
|
|
#ifndef _ENV_VARS_H_
|
|
#define _ENV_VARS_H_
|
|
|
|
/* each environment variable is a string following the standard command */
|
|
/* definition used by the interactive loader in the following format: */
|
|
/* <command> <parm1> <parm2> ... */
|
|
/* all environment variables (or commands) are stored in a string */
|
|
/* format: NULL-terminated. */
|
|
/* this implies that commands can never utilize 0-values: actual 0, not */
|
|
/* the string '0'. this is not an issue as the string '0' is handled */
|
|
/* by the command parse routine. */
|
|
|
|
/* the following defines the maximum size of the environment for */
|
|
/* including variables. */
|
|
/* this value must match that declared in the low-level file that */
|
|
/* actually reserves the space for the non-volatile environment. */
|
|
#define MAX_ENV_SIZE_BYTES 0x100
|
|
|
|
#define MAX_BOOT_COMMANDS 10
|
|
|
|
/* C-style reference section */
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern void WriteCommandTable(void);
|
|
extern void SetBootCommand(int index, char *command);
|
|
extern void DumpBootCommands(void);
|
|
extern void LoadBootCommands(void);
|
|
extern void ExecuteEnvironmentFunctions(void);
|
|
|
|
#endif /* !__ASSEMBLY__ */
|
|
|
|
#endif /* _ENV_VARS_H_ */
|