2 * RouterBoot definitions
4 * Copyright (C) 2012 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.
11 #ifndef _ATH79_ROUTERBOOT_H_
12 #define _ATH79_ROUTERBOOT_H_
15 unsigned int hard_cfg_offs;
16 unsigned int hard_cfg_size;
18 unsigned int soft_cfg_offs;
20 const char *board_name;
24 #ifdef CONFIG_ATH79_ROUTERBOOT
25 const struct rb_info *rb_init_info(void *data, unsigned int size);
26 void *rb_get_wlan_data(void);
28 int routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
29 u8 **tag_data, u16 *tag_len);
30 int routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard);
32 static inline const struct rb_info *
33 rb_init_info(void *data, unsigned int size)
38 static inline void *rb_get_wlan_data(void)
44 routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
45 u8 **tag_data, u16 *tag_len)
51 routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard)
57 #endif /* _ATH79_ROUTERBOOT_H_ */