aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src/wrgg.h
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/mtd/src/wrgg.h')
-rw-r--r--package/system/mtd/src/wrgg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/system/mtd/src/wrgg.h b/package/system/mtd/src/wrgg.h
new file mode 100644
index 0000000000..0c4b3677ec
--- /dev/null
+++ b/package/system/mtd/src/wrgg.h
@@ -0,0 +1,20 @@
+#ifndef __wrgg_h
+#define __wrgg_h
+
+#define WRGG03_MAGIC 0x20080321
+
+struct wrgg03_header {
+ char signature[32];
+ uint32_t magic1;
+ uint32_t magic2;
+ char version[16];
+ char model[16];
+ uint32_t flag[2];
+ uint32_t reserve[2];
+ char buildno[16];
+ uint32_t size;
+ uint32_t offset;
+ char dev_name[32];
+ char digest[16];
+} __attribute__ ((packed));
+#endif /* __wrgg_h */