1/******************************************************************************
2 *
3 * Filename: loader_prompt.h
4 *
5 * Definition of the interactive loader functions.
6 *
7 * Revision information:
8 *
9 * 20AUG2004	kb_admin	initial creation
10 *
11 * BEGIN_KBDD_BLOCK
12 * No warranty, expressed or implied, is included with this software.  It is
13 * provided "AS IS" and no warranty of any kind including statutory or aspects
14 * relating to merchantability or fitness for any purpose is provided.  All
15 * intellectual property rights of others is maintained with the respective
16 * owners.  This software is not copyrighted and is intended for reference
17 * only.
18 * END_BLOCK
19 *
20 * $FreeBSD: releng/11.0/sys/boot/arm/at91/bootiic/loader_prompt.h 161202 2006-08-10 19:55:52Z imp $
21 *****************************************************************************/
22
23#ifndef _LOADER_PROMPT_H_
24#define _LOADER_PROMPT_H_
25
26#define MAX_INPUT_SIZE		256
27#define MAX_COMMAND_PARAMS	10
28
29enum {
30	COMMAND_INVALID	= 0,
31	COMMAND_COPY,
32	COMMAND_DUMP,
33	COMMAND_EXEC,
34	COMMAND_HELP,
35	COMMAND_LOCAL_IP,
36	COMMAND_MAC,
37	COMMAND_SERVER_IP,
38	COMMAND_SET,
39	COMMAND_TAG,
40	COMMAND_TFTP,
41	COMMAND_WRITE,
42	COMMAND_XMODEM,
43	COMMAND_FINAL_FLAG
44} e_cmd_t;
45
46
47typedef struct {
48	int		command;
49	const char	*c_string;
50} command_entry_t;
51
52void EnterInteractiveBootloader(int(*inputFunction)(int));
53void Bootloader(int(*inputFunction)(int));
54
55#endif /* _LOADER_PROMPT_H_ */
56