1e2b973679db8690efaf6e592483857e48bb6c53
[openwrt/svn-archive/archive.git] / target / linux / adm5120-2.6 / files / include / asm-mips / mach-adm5120 / routerboot.h
1 /*
2 * $Id$
3 *
4 * Copyright (C) 2007 OpenWrt.org
5 * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 *
12 */
13
14 #ifndef _ROUTERBOOT_H
15 #define _ROUTERBOOT_H
16
17 /*
18 * Magic numbers
19 */
20 #define RB_MAGIC_HARD 0x64726148 /* "Hard" */
21 #define RB_MAGIC_SOFT 0x74666F53 /* "Soft" */
22 #define RB_MAGIC_DAWN 0x6E776144 /* "Dawn" */
23
24 #define RB_ID_TERMINATOR 0
25
26 /*
27 * ID values for Hardware settings
28 */
29 #define RB_ID_HARD_01 1
30 #define RB_ID_HARD_02 2
31 #define RB_ID_FLASH_INFO 3
32 #define RB_ID_MAC_ADDRESS_PACK 4
33 #define RB_ID_BOARD_NAME 5
34 #define RB_ID_BIOS_VERSION 6
35 #define RB_ID_HARD_07 7
36 #define RB_ID_SDRAM_TIMINGS 8
37 #define RB_ID_DEVICE_TIMINGS 9
38 #define RB_ID_SOFTWARE_ID 10
39 #define RB_ID_SERIAL_NUMBER 11
40 #define RB_ID_HARD_12 12
41 #define RB_ID_MEMORY_SIZE 13
42 #define RB_ID_MAC_ADDRESS_COUNT 14
43
44 /*
45 * ID values for Software settings
46 */
47 #define RB_ID_UART_SPEED 1
48 #define RB_ID_BOOT_DELAY 2
49 #define RB_ID_BOOT_DEVICE 3
50 #define RB_ID_BOOT_KEY 4
51 #define RB_ID_CPU_MODE 5
52 #define RB_ID_FW_VERSION 6
53 #define RB_ID_SOFT_07 7
54 #define RB_ID_SOFT_08 8
55 #define RB_ID_BOOT_PROTOCOL 9
56 #define RB_ID_SOFT_10 10
57 #define RB_ID_SOFT_11 11
58
59 /*
60 * UART_SPEED values
61 */
62 #define RB_UART_SPEED_115200 0
63 #define RB_UART_SPEED_57600 1
64 #define RB_UART_SPEED_38400 2
65 #define RB_UART_SPEED_19200 3
66 #define RB_UART_SPEED_9600 4
67 #define RB_UART_SPEED_4800 5
68 #define RB_UART_SPEED_2400 6
69 #define RB_UART_SPEED_1200 7
70
71 /*
72 * BOOT_DELAY values
73 */
74 #define RB_BOOT_DELAY_0SEC 0
75 #define RB_BOOT_DELAY_1SEC 1
76 #define RB_BOOT_DELAY_2SEC 2
77
78 /*
79 * BOOT_DEVICE values
80 */
81 #define RB_BOOT_DEVICE_ETHER 0
82 #define RB_BOOT_DEVICE_NANDETH 1
83 #define RB_BOOT_DEVICE_ETHONCE 2
84 #define RB_BOOT_DEVICE_NANDONLY 3
85
86 /*
87 * BOOT_KEY values
88 */
89 #define RB_BOOT_KEY_ANY 0
90 #define RB_BOOT_KEY_DEL 1
91
92 /*
93 * CPU_MODE values
94 */
95 #define RB_CPU_MODE_POWERSAVE 0
96 #define RB_CPU_MODE_REGULAR 1
97
98 /*
99 * BOOT_PROTOCOL values
100 */
101 #define RB_BOOT_PROTOCOL_BOOTP 0
102 #define RB_BOOT_PROTOCOL_DHCP 1
103
104 #endif /* _ROUTERBOOT_H */