Openwrt/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
Felix Fietkau 144cfb65a4 ar71xx: add hard_cfg offset detection for rb2011 support - fixes wlan on some newer devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36631
2013-05-13 19:13:33 +00:00

34 lines
857 B
C

/*
* RouterBoot definitions
*
* Copyright (C) 2012 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 _ATH79_ROUTERBOOT_H_
#define _ATH79_ROUTERBOOT_H_
#ifdef CONFIG_ATH79_ROUTERBOOT
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 int
routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
u8 **tag_data, u16 *tag_len)
{
return -ENOENT;
}
static inline int
routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard)
{
return -ENOENT;
}
#endif
#endif /* _ATH79_ROUTERBOOT_H_ */