diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-02-28 23:39:14 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-02-28 23:39:14 +0000 |
commit | 780d6939b2ae13603734b815b8dd9772842f4c70 (patch) | |
tree | 89edc4c1ba07c54a882029bab8d3aa3e96f54683 /target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/prom/routerboot.h | |
parent | 0e7e585752b3a73d7cb0c368f3a850447e9f79a0 (diff) | |
download | master-31e0f0ae-780d6939b2ae13603734b815b8dd9772842f4c70.tar.gz master-31e0f0ae-780d6939b2ae13603734b815b8dd9772842f4c70.tar.bz2 master-31e0f0ae-780d6939b2ae13603734b815b8dd9772842f4c70.zip |
adm5120: add 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44580
Diffstat (limited to 'target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/prom/routerboot.h')
-rw-r--r-- | target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/prom/routerboot.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/prom/routerboot.h b/target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/prom/routerboot.h new file mode 100644 index 0000000000..91ac05a630 --- /dev/null +++ b/target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/prom/routerboot.h @@ -0,0 +1,36 @@ +/* + * Mikrotik's RouterBOOT definitions + * + * Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org> + * + * 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_ */ |