4 * Copyright (C) 2007 OpenWrt.org
5 * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
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.
18 #define RB_MAX_MAC_COUNT 6
20 struct rb_bios_settings
{
21 u32 hs_offs
; /* hard settings offset */
22 u32 hs_size
; /* hard settings size */
23 u32 fw_offs
; /* firmware offset */
24 u32 ss_offs
; /* soft settings offset */
25 u32 ss_size
; /* soft settings size */
28 struct rb_hard_settings
{
29 char *name
; /* board name */
30 char *bios_ver
; /* BIOS version */
31 u32 mem_size
; /* memory size in bytes */
32 u32 mac_count
; /* number of mac addresses */
33 u8 macs
[RB_MAC_SIZE
][RB_MAX_MAC_COUNT
]; /* mac addresses */
39 #define RB_MAGIC_HARD 0x64726148 /* "Hard" */
40 #define RB_MAGIC_SOFT 0x74666F53 /* "Soft" */
41 #define RB_MAGIC_DAWN 0x6E776144 /* "Dawn" */
43 #define RB_ID_TERMINATOR 0
46 * ID values for Hardware settings
48 #define RB_ID_HARD_01 1
49 #define RB_ID_HARD_02 2
50 #define RB_ID_FLASH_INFO 3
51 #define RB_ID_MAC_ADDRESS_PACK 4
52 #define RB_ID_BOARD_NAME 5
53 #define RB_ID_BIOS_VERSION 6
54 #define RB_ID_HARD_07 7
55 #define RB_ID_SDRAM_TIMINGS 8
56 #define RB_ID_DEVICE_TIMINGS 9
57 #define RB_ID_SOFTWARE_ID 10
58 #define RB_ID_SERIAL_NUMBER 11
59 #define RB_ID_HARD_12 12
60 #define RB_ID_MEMORY_SIZE 13
61 #define RB_ID_MAC_ADDRESS_COUNT 14
64 * ID values for Software settings
66 #define RB_ID_UART_SPEED 1
67 #define RB_ID_BOOT_DELAY 2
68 #define RB_ID_BOOT_DEVICE 3
69 #define RB_ID_BOOT_KEY 4
70 #define RB_ID_CPU_MODE 5
71 #define RB_ID_FW_VERSION 6
72 #define RB_ID_SOFT_07 7
73 #define RB_ID_SOFT_08 8
74 #define RB_ID_BOOT_PROTOCOL 9
75 #define RB_ID_SOFT_10 10
76 #define RB_ID_SOFT_11 11
81 #define RB_UART_SPEED_115200 0
82 #define RB_UART_SPEED_57600 1
83 #define RB_UART_SPEED_38400 2
84 #define RB_UART_SPEED_19200 3
85 #define RB_UART_SPEED_9600 4
86 #define RB_UART_SPEED_4800 5
87 #define RB_UART_SPEED_2400 6
88 #define RB_UART_SPEED_1200 7
93 #define RB_BOOT_DELAY_0SEC 0
94 #define RB_BOOT_DELAY_1SEC 1
95 #define RB_BOOT_DELAY_2SEC 2
100 #define RB_BOOT_DEVICE_ETHER 0
101 #define RB_BOOT_DEVICE_NANDETH 1
102 #define RB_BOOT_DEVICE_ETHONCE 2
103 #define RB_BOOT_DEVICE_NANDONLY 3
108 #define RB_BOOT_KEY_ANY 0
109 #define RB_BOOT_KEY_DEL 1
114 #define RB_CPU_MODE_POWERSAVE 0
115 #define RB_CPU_MODE_REGULAR 1
118 * BOOT_PROTOCOL values
120 #define RB_BOOT_PROTOCOL_BOOTP 0
121 #define RB_BOOT_PROTOCOL_DHCP 1
123 #endif /* _ROUTERBOOT_H */
This page took 0.051486 seconds and 5 git commands to generate.