adm5120: move common routerboot definitions into a separate header file
[openwrt/svn-archive/archive.git] / target / linux / adm5120 / files / arch / mips / include / asm / mach-adm5120 / prom / routerboot.h
1 /*
2 * Mikrotik's RouterBOOT definitions
3 *
4 * Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
9 *
10 */
11
12 #ifndef _PROM_ROUTERBOOT_H_
13 #define _PROM_ROUTERBOOT_H_
14
15 struct rb_bios_settings {
16 u32 hs_offs; /* hard settings offset */
17 u32 hs_size; /* hard settings size */
18 u32 fw_offs; /* firmware offset */
19 u32 ss_offs; /* soft settings offset */
20 u32 ss_size; /* soft settings size */
21 };
22
23 struct rb_hard_settings {
24 char *name; /* board name */
25 char *bios_ver; /* BIOS version */
26 u32 mem_size; /* memory size in bytes */
27 u32 mac_count; /* number of mac addresses */
28 u8 *mac_base; /* mac address base */
29 };
30
31 extern int routerboot_present(void) __init;
32 extern char *routerboot_get_boardname(void);
33
34 extern struct rb_hard_settings rb_hs;
35
36 #endif /* _PROM_ROUTERBOOT_H_ */