blob: 75cdf54a6ddbd9d6eeadb8b5dcf9dc597cc0bb49 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
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.
9 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef __MTD_NFTL_H__
20#define __MTD_NFTL_H__
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/mtd/mtd.h>
22#include <linux/mtd/blktrans.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#include <mtd/nftl-user.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025#define BLOCK_NIL 0xffff
26#define BLOCK_FREE 0xfffe
27#define BLOCK_NOTEXPLORED 0xfffd
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#define BLOCK_RESERVED 0xfffc
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030struct NFTLrecord {
31 struct mtd_blktrans_dev mbd;
32 __u16 MediaUnit, SpareMediaUnit;
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 __u32 EraseSize;
35 struct NFTLMediaHeader MediaHdr;
36 int usecount;
37 unsigned char heads;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 unsigned char sectors;
40 unsigned short cylinders;
41 __u16 numvunits;
42 __u16 lastEUN;
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044 __u16 numfreeEUNs;
45 __u16 LastFreeEUN;
46 int head,sect,cyl;
47 __u16 *EUNtable;
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049 __u16 *ReplUnitTable;
50 unsigned int nb_blocks;
51 unsigned int nb_boot_blocks;
52 struct erase_info instr;
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054 struct nand_ecclayout oobinfo;
55};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080056#ifndef NFTL_MAJOR
57#define NFTL_MAJOR 93
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#endif
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080060#define MAX_NFTLS 16
61#define MAX_SECTORS_PER_UNIT 64
62#define NFTL_PARTN_BITS 4
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#endif