1/**************************************************************************** 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 *** 10 *** 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 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef __MTD_NFTL_H__ 20#define __MTD_NFTL_H__ 21#include <linux/mtd/mtd.h> 22#include <linux/mtd/blktrans.h> 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#include <mtd/nftl-user.h> 25#define BLOCK_NIL 0xffff 26#define BLOCK_FREE 0xfffe 27#define BLOCK_NOTEXPLORED 0xfffd 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29#define BLOCK_RESERVED 0xfffc 30struct NFTLrecord { 31 struct mtd_blktrans_dev mbd; 32 __u16 MediaUnit, SpareMediaUnit; 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u32 EraseSize; 35 struct NFTLMediaHeader MediaHdr; 36 int usecount; 37 unsigned char heads; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 unsigned char sectors; 40 unsigned short cylinders; 41 __u16 numvunits; 42 __u16 lastEUN; 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __u16 numfreeEUNs; 45 __u16 LastFreeEUN; 46 int head,sect,cyl; 47 __u16 *EUNtable; 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u16 *ReplUnitTable; 50 unsigned int nb_blocks; 51 unsigned int nb_boot_blocks; 52 struct erase_info instr; 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 struct nand_ecclayout oobinfo; 55}; 56#ifndef NFTL_MAJOR 57#define NFTL_MAJOR 93 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59#endif 60#define MAX_NFTLS 16 61#define MAX_SECTORS_PER_UNIT 64 62#define NFTL_PARTN_BITS 4 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64#endif 65