aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-09-09 14:05:28 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-09-09 14:05:28 +0000
commitccabe4a1b447e9bc7efd0a7eb19e843bc46702b1 (patch)
tree71dc3fe6eaa181a1f747fd2469404ab01df4b519 /target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
parent2323120d5eacf1b1b25e1419cebe895e2dd0288a (diff)
downloadupstream-ccabe4a1b447e9bc7efd0a7eb19e843bc46702b1.tar.gz
upstream-ccabe4a1b447e9bc7efd0a7eb19e843bc46702b1.tar.bz2
upstream-ccabe4a1b447e9bc7efd0a7eb19e843bc46702b1.zip
ar71xx: add RouterBoot related helper routines
SVN-Revision: 33347
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/routerboot.h')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/routerboot.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h b/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
new file mode 100644
index 0000000000..9a4dde59ec
--- /dev/null
+++ b/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
@@ -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_ */