| 1 | /* |
| 2 | * RouterBoot definitions |
| 3 | * |
| 4 | * Copyright (C) 2012 Gabor Juhos <juhosg@openwrt.org> |
| 5 | * |
| 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. |
| 9 | */ |
| 10 | |
| 11 | #ifndef _ATH79_ROUTERBOOT_H_ |
| 12 | #define _ATH79_ROUTERBOOT_H_ |
| 13 | |
| 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 | #else |
| 18 | static inline int |
| 19 | routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id, |
| 20 | u8 **tag_data, u16 *tag_len) |
| 21 | { |
| 22 | return -ENOENT; |
| 23 | } |
| 24 | #endif |
| 25 | |
| 26 | #endif /* _ATH79_ROUTERBOOT_H_ */ |
| 27 | |