X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fadm5120%2Ffiles-3.8%2Farch%2Fmips%2Finclude%2Fasm%2Fmach-adm5120%2Fprom%2Frouterboot.h;fp=target%2Flinux%2Fadm5120%2Ffiles-3.8%2Farch%2Fmips%2Finclude%2Fasm%2Fmach-adm5120%2Fprom%2Frouterboot.h;h=91ac05a630ddc6e713fde24c39edf77f72e78682;hp=0000000000000000000000000000000000000000;hb=b44dd7a0361eb8295166161788f0d824a265e955;hpb=e8968a9b93d9ea8600e701ac38fc6f00266876c7 diff --git a/target/linux/adm5120/files-3.8/arch/mips/include/asm/mach-adm5120/prom/routerboot.h b/target/linux/adm5120/files-3.8/arch/mips/include/asm/mach-adm5120/prom/routerboot.h new file mode 100644 index 0000000000..91ac05a630 --- /dev/null +++ b/target/linux/adm5120/files-3.8/arch/mips/include/asm/mach-adm5120/prom/routerboot.h @@ -0,0 +1,36 @@ +/* + * Mikrotik's RouterBOOT definitions + * + * Copyright (C) 2007-2008 Gabor Juhos + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + * + */ + +#ifndef _PROM_ROUTERBOOT_H_ +#define _PROM_ROUTERBOOT_H_ + +struct rb_bios_settings { + u32 hs_offs; /* hard settings offset */ + u32 hs_size; /* hard settings size */ + u32 fw_offs; /* firmware offset */ + u32 ss_offs; /* soft settings offset */ + u32 ss_size; /* soft settings size */ +}; + +struct rb_hard_settings { + char *name; /* board name */ + char *bios_ver; /* BIOS version */ + u32 mem_size; /* memory size in bytes */ + u32 mac_count; /* number of mac addresses */ + u8 *mac_base; /* mac address base */ +}; + +extern int routerboot_present(void) __init; +extern char *routerboot_get_boardname(void); + +extern struct rb_hard_settings rb_hs; + +#endif /* _PROM_ROUTERBOOT_H_ */