/usr/src/linux-headers-5.15.0-190/include/linux/mtd
NameSizeModeActions
bbm.h48250644editdlrm
blktrans.h26820644editdlrm
cfi.h101440644editdlrm
cfi_endian.h15140644editdlrm
concat.h4930644editdlrm
doc2000.h55050644editdlrm
flashchip.h24780644editdlrm
ftl.h25510644editdlrm
gen_probe.h6150644editdlrm
hyperbus.h28930644editdlrm
inftl.h15990644editdlrm
jedec.h19050644editdlrm
latch-addr-flash.h7160644editdlrm
lpc32xx_mlc.h3850644editdlrm
lpc32xx_slc.h3850644editdlrm
map.h130160644editdlrm
mtd.h225690644editdlrm
mtdram.h2570644editdlrm
nand-ecc-sw-bch.h21170644editdlrm
nand-ecc-sw-hamming.h27170644editdlrm
nand-gpio.h3300644editdlrm
nand.h302840644editdlrm
ndfc.h20700644editdlrm
nftl.h17340644editdlrm
onenand.h79740644editdlrm
onenand_regs.h72170644editdlrm
onfi.h49620644editdlrm
partitions.h39460644editdlrm
pfow.h44890644editdlrm
physmap.h8080644editdlrm
pismo.h2710644editdlrm
plat-ram.h6680644editdlrm
platnand.h25450644editdlrm
qinfo.h25300644editdlrm
rawnand.h524000644editdlrm
sharpsl.h4850644editdlrm
sh_flctl.h59270644editdlrm
spear_smi.h17140644editdlrm
spi-nor.h172470644editdlrm
spinand.h162200644editdlrm
super.h5780644editdlrm
ubi.h99140644editdlrm
xip.h25560644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/include/linux/mtd/nftl.h (1734B)
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright © 1999-2010 David Woodhouse */ #ifndef __MTD_NFTL_H__ #define __MTD_NFTL_H__ #include #include #include /* these info are used in ReplUnitTable */ #define BLOCK_NIL 0xffff /* last block of a chain */ #define BLOCK_FREE 0xfffe /* free block */ #define BLOCK_NOTEXPLORED 0xfffd /* non explored block, only used during mounting */ #define BLOCK_RESERVED 0xfffc /* bios block or bad block */ struct NFTLrecord { struct mtd_blktrans_dev mbd; __u16 MediaUnit, SpareMediaUnit; __u32 EraseSize; struct NFTLMediaHeader MediaHdr; int usecount; unsigned char heads; unsigned char sectors; unsigned short cylinders; __u16 numvunits; __u16 lastEUN; /* should be suppressed */ __u16 numfreeEUNs; __u16 LastFreeEUN; /* To speed up finding a free EUN */ int head,sect,cyl; __u16 *EUNtable; /* [numvunits]: First EUN for each virtual unit */ __u16 *ReplUnitTable; /* [numEUNs]: ReplUnitNumber for each */ unsigned int nb_blocks; /* number of physical blocks */ unsigned int nb_boot_blocks; /* number of blocks used by the bios */ struct erase_info instr; }; int NFTL_mount(struct NFTLrecord *s); int NFTL_formatblock(struct NFTLrecord *s, int block); int nftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf); int nftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len, size_t *retlen, uint8_t *buf); #ifndef NFTL_MAJOR #define NFTL_MAJOR 93 #endif #define MAX_NFTLS 16 #define MAX_SECTORS_PER_UNIT 64 #define NFTL_PARTN_BITS 4 #endif /* __MTD_NFTL_H__ */