mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: add RouterBoot related helper routines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33347 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
26
target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
Normal file
26
target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* 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);
|
||||
#else
|
||||
static inline int
|
||||
routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
|
||||
u8 **tag_data, u16 *tag_len)
|
||||
{
|
||||
return -ENOENT;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _ATH79_ROUTERBOOT_H_ */
|
||||
Reference in New Issue
Block a user