forked from Ivasoft/openwrt
ar71xx: add some RouterBOOT specific helper functions
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39091
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user