diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-12-16 10:11:01 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-12-16 10:11:01 +0000 |
commit | 16565ec94b39abceca14cb844fb1ff6cab2f815d (patch) | |
tree | a540ed1491393cbd8399457ebce21508cab02dd5 /target/linux/ar71xx/files/arch/mips/ath79/routerboot.h | |
parent | 0601b5f404925808765b0dde196d633c3326ce84 (diff) | |
download | master-31e0f0ae-16565ec94b39abceca14cb844fb1ff6cab2f815d.tar.gz master-31e0f0ae-16565ec94b39abceca14cb844fb1ff6cab2f815d.tar.bz2 master-31e0f0ae-16565ec94b39abceca14cb844fb1ff6cab2f815d.zip |
ar71xx: add some RouterBOOT specific helper functions
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39091
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/routerboot.h')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/routerboot.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h b/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h index 2489e0aee0..6ec296afd4 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h +++ b/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h @@ -11,11 +11,35 @@ #ifndef _ATH79_ROUTERBOOT_H_ #define _ATH79_ROUTERBOOT_H_ +struct rb_info { + unsigned int hard_cfg_offs; + unsigned int hard_cfg_size; + void *hard_cfg_data; + unsigned int soft_cfg_offs; + + const char *board_name; + u32 hw_options; +}; + #ifdef CONFIG_ATH79_ROUTERBOOT +const struct rb_info *rb_init_info(void *data, unsigned int size); +void *rb_get_wlan_data(void); + int routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id, u8 **tag_data, u16 *tag_len); int routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard); #else +static inline const struct rb_info * +rb_init_info(void *data, unsigned int size) +{ + return NULL; +} + +static inline void *rb_get_wlan_data(void) +{ + return NULL; +} + static inline int routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id, u8 **tag_data, u16 *tag_len) |