1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef __MTD_NFTL_H__
13 #define __MTD_NFTL_H__
15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/blktrans.h>
18 #include <mtd/nftl-user.h>
20 #define BLOCK_NIL 0xffff
21 #define BLOCK_FREE 0xfffe
22 #define BLOCK_NOTEXPLORED 0xfffd
23 #define BLOCK_RESERVED 0xfffc
26 struct mtd_blktrans_dev mbd;
27 __u16 MediaUnit, SpareMediaUnit;
29 struct NFTLMediaHeader MediaHdr;
32 unsigned char sectors;
33 unsigned short cylinders;
41 unsigned int nb_blocks;
42 unsigned int nb_boot_blocks;
43 struct erase_info instr;
44 struct nand_ecclayout oobinfo;
52 #define MAX_SECTORS_PER_UNIT 64
53 #define NFTL_PARTN_BITS 4