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_
14 #ifdef CONFIG_ATH79_ROUTERBOOT
15 int routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
16 u8 **tag_data, u16 *tag_len);
17 int routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard);
20 routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
21 u8 **tag_data, u16 *tag_len)
27 routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard)
33 #endif /* _ATH79_ROUTERBOOT_H_ */