summaryrefslogtreecommitdiffstats
path: root/src/mtd/mtd-user.h
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2007-06-02 02:23:58 +0200
committerpancake <pancake@dazo>2007-06-02 02:23:58 +0200
commitf299486ef9ee5531ebee567211eb7861ae7a93bf (patch)
tree78d1b86880660f49b10bc9dca7bfc075af985236 /src/mtd/mtd-user.h
parent1515b7c7c12097db8c713194217d57477074c6ac (diff)
download0xFFFF-f299486ef9ee5531ebee567211eb7861ae7a93bf.tar.bz2
* Covardly copy the nanddump() function from the mtd-utils to fix dump functionality
- The new function works like the old rf_extract one, no parameters has changed. - Now a complete dump/restore will be possible. - Check for badblocks while copying data - Shows information about the partition * Better use of query_error_message() for debugging
Diffstat (limited to 'src/mtd/mtd-user.h')
-rw-r--r--src/mtd/mtd-user.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mtd/mtd-user.h b/src/mtd/mtd-user.h
new file mode 100644
index 0000000..713f34d
--- /dev/null
+++ b/src/mtd/mtd-user.h
@@ -0,0 +1,21 @@
+/*
+ * $Id: mtd-user.h,v 1.2 2004/05/05 14:44:57 dwmw2 Exp $
+ *
+ * MTD ABI header for use by user space only.
+ */
+
+#ifndef __MTD_USER_H__
+#define __MTD_USER_H__
+
+#include <stdint.h>
+
+/* This file is blessed for inclusion by userspace */
+#include <mtd/mtd-abi.h>
+
+typedef struct mtd_info_user mtd_info_t;
+typedef struct erase_info_user erase_info_t;
+typedef struct region_info_user region_info_t;
+typedef struct nand_oobinfo nand_oobinfo_t;
+typedef struct nand_ecclayout nand_ecclayout_t;
+
+#endif /* __MTD_USER_H__ */