initial commit
[freebsd-arm:freebsd-arm.git] / boot / arm / at91 / bootspi / loader_prompt.h
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$
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
29 enum {
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_RESET,
44         COMMAND_LOAD_SPI_KERNEL,
45         COMMAND_REPLACE_KERNEL_VIA_XMODEM,
46         COMMAND_REPLACE_FLASH_VIA_XMODEM,
47         COMMAND_REPLACE_FPGA_VIA_XMODEM,
48         COMMAND_REPLACE_ID_EEPROM,
49         COMMAND_FINAL_FLAG
50 } e_cmd_t;
51
52
53 typedef struct {
54         int             command;
55         const char      *c_string;
56 } command_entry_t;
57
58 void EnterInteractiveBootloader(int(*inputFunction)(int));
59 void Bootloader(int(*inputFunction)(int));
60 void fpga_load(void);
61
62 #endif /* _LOADER_PROMPT_H_ */