2 * Mikrotik's RouterBOOT definitions
4 * Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
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.
12 #ifndef _PROM_ROUTERBOOT_H_
13 #define _PROM_ROUTERBOOT_H_
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 */
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 */
31 extern int routerboot_present(void) __init
;
32 extern char *routerboot_get_boardname(void);
34 extern struct rb_hard_settings rb_hs
;
36 #endif /* _PROM_ROUTERBOOT_H_ */