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
commit2a30d5c072401036729afad83947d9343ffdb862 (patch)
tree0bb215ae9d510c230fe34101a0f2e33a750fd138 /target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
parent93f4aa685323b956291b8a0d058265c65ccd87d3 (diff)
downloadmaster-187ad058-2a30d5c072401036729afad83947d9343ffdb862.tar.gz
master-187ad058-2a30d5c072401036729afad83947d9343ffdb862.tar.bz2
master-187ad058-2a30d5c072401036729afad83947d9343ffdb862.zip
ar71xx: add RouterBoot related helper routines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33347 3c298f89-4303-0410-b956-a3cf2f4a3e73
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_ */