100d8ed79b
8k boundary with this program still. text data bss dec hex filename 7925 4 4476 12405 3075 bootiic.out so we have like 293 bytes left before we have to play games. There may be ways to reduce that somewhat, but they start to be very board specific.
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_ */
|