builtins 1.78 KB
#
# gfx/common/ide/builtins $Revision: 1.1.1.1 $
#
# builtins - ide builtin functions
#
# First column is the name
# Second column is the type:
#   CMD for command
#   SCMD for command expecting ide-parsed args
#   DCMD for command expecting a communication struct arg
#   INT for integer constant
#   STR for string constant
# Third column is value:
#   CMD value is the name of the function to call with char * argv
#   STR value is the quoted string
#   INT value is the integer
#   SCMD value is the name of the function to call with sym_t * argv
#   DCMD value is the name of the function to call with a comm struct ptr. 
# 
# Columns must be separated by exactly one TAB!
ON	INT	1
on	INT	1
OFF	INT	0
off	INT	0
TRUE	INT	1
true	INT	1
FALSE	INT	0
false	INT	0
INFO	INT	1
ERR_SIMPLE	INT	2
ERR_SEVERE	INT	4
DEBUG	INT	8
DEFAULT_PRINT_MSGS	INT	DEFAULT_PRINT_MSGS
DEFAULT_LOG_MSGS	INT	DEFAULT_LOG_MSGS
DEFAULT_EXIT_MSGS	INT	DEFAULT_EXIT_MSGS
TRAP_NONE	INT	1
TRAP_SEVERE	INT	2
TRAP_ALL	INT	3
PS1	STR	"ide>> "
PS2	STR	"more>> "
#boot	CMD	boot	boot [-f FILE] [-n] [ARGS]
#dump	CMD	dump	dump [-(b|h|w)] [-(o|d|u|x|c|B)] RANGE
dumpsym	SCMD	_dodumpsym
echo	SCMD	_doprint	echo [\"STRING\"|VAL ...]
exit	SCMD	_doexit	exit [VAL]
quit	SCMD	_doexit	exit [VAL]
#fill	CMD	fill	fill [-(b|h|w)] [-v VAL] RANGE
help	SCMD	_dohelp	displays summary of commands and statements
printenv	CMD	printenv	printenv [ENV_VAR_LIST]
printf	SCMD	_doprintf	printf \"FORMAT\" [ARG1 ARG2...]
#read	SCMD	_doread	read [VAR ...]
setenv	CMD	setenv	setenv ENV_VAR STRING
source	CMD	_dosource	source SOURCE_PATH
#spin	CMD	spin	spin [[-c COUNT] [-v VAL] [-(r|w)[+](b|h|w) ADDR]]*
stat	SCMD	showmstats
testcmd	SCMD	_dotestcmd
unsetenv	CMD	dounsetenv	unsetenv ENV_VAR
status	CMD	status	status [RESERVE_VAR_LIST]
reset	CMD	reset	reset RESERVE VARS to their default values