OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
include
/
linux
/
mtd
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:16 AM
rwxr-xr-x
📄
bbm.h
5.84 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
blktrans.h
2.81 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cfi.h
10.31 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
cfi_endian.h
2.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
concat.h
1.14 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
doc2000.h
6.03 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
flashchip.h
3.08 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
ftl.h
2.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gen_probe.h
1.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
inftl.h
1.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
latch-addr-flash.h
716 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
lpc32xx_mlc.h
531 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
lpc32xx_slc.h
531 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
map.h
13.37 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
mtd.h
19.05 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
mtdram.h
257 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
nand-gpio.h
330 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
nand_bch.h
1.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
nand_ecc.h
1.14 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ndfc.h
2.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
nftl.h
2.35 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
onenand.h
7.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
onenand_regs.h
7.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
partitions.h
3.75 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pfow.h
5.56 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
physmap.h
1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pismo.h
440 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
plat-ram.h
817 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
qinfo.h
2.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
rawnand.h
41.17 KB
06/16/2023 05:32:39 PM
rw-r--r--
📄
sh_flctl.h
6.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sharpsl.h
587 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
spear_smi.h
1.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
spi-nor.h
14.28 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
super.h
835 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ubi.h
10.33 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
xip.h
2.66 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: nftl.h
Close
/* * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ #ifndef __MTD_NFTL_H__ #define __MTD_NFTL_H__ #include <linux/mtd/mtd.h> #include <linux/mtd/blktrans.h> #include <mtd/nftl-user.h> /* 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__ */