/
usr
/
src
/
linux-headers-5.15.0-181
/
include
/
linux
/
mtd
/
/usr/src/linux-headers-5.15.0-181/include/linux/mtd
mkdir
upload
Name
Size
Mode
Actions
bbm.h
4825
0644
edit
dl
rm
blktrans.h
2682
0644
edit
dl
rm
cfi.h
10144
0644
edit
dl
rm
cfi_endian.h
1514
0644
edit
dl
rm
concat.h
493
0644
edit
dl
rm
doc2000.h
5505
0644
edit
dl
rm
flashchip.h
2478
0644
edit
dl
rm
ftl.h
2551
0644
edit
dl
rm
gen_probe.h
615
0644
edit
dl
rm
hyperbus.h
2893
0644
edit
dl
rm
inftl.h
1599
0644
edit
dl
rm
jedec.h
1905
0644
edit
dl
rm
latch-addr-flash.h
716
0644
edit
dl
rm
lpc32xx_mlc.h
385
0644
edit
dl
rm
lpc32xx_slc.h
385
0644
edit
dl
rm
map.h
13016
0644
edit
dl
rm
mtd.h
22569
0644
edit
dl
rm
mtdram.h
257
0644
edit
dl
rm
nand-ecc-sw-bch.h
2117
0644
edit
dl
rm
nand-ecc-sw-hamming.h
2717
0644
edit
dl
rm
nand-gpio.h
330
0644
edit
dl
rm
nand.h
30284
0644
edit
dl
rm
ndfc.h
2070
0644
edit
dl
rm
nftl.h
1734
0644
edit
dl
rm
onenand.h
7974
0644
edit
dl
rm
onenand_regs.h
7217
0644
edit
dl
rm
onfi.h
4962
0644
edit
dl
rm
partitions.h
3946
0644
edit
dl
rm
pfow.h
4489
0644
edit
dl
rm
physmap.h
808
0644
edit
dl
rm
pismo.h
271
0644
edit
dl
rm
plat-ram.h
668
0644
edit
dl
rm
platnand.h
2545
0644
edit
dl
rm
qinfo.h
2530
0644
edit
dl
rm
rawnand.h
52400
0644
edit
dl
rm
sharpsl.h
485
0644
edit
dl
rm
sh_flctl.h
5927
0644
edit
dl
rm
spear_smi.h
1714
0644
edit
dl
rm
spi-nor.h
17247
0644
edit
dl
rm
spinand.h
16220
0644
edit
dl
rm
super.h
578
0644
edit
dl
rm
ubi.h
9914
0644
edit
dl
rm
xip.h
2556
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/include/linux/mtd/platnand.h
(2545B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> * Steven J. Hill <sjhill@realitydiluted.com> * Thomas Gleixner <tglx@linutronix.de> * * Contains all platform NAND related definitions. */ #ifndef __LINUX_MTD_PLATNAND_H #define __LINUX_MTD_PLATNAND_H #include <linux/mtd/partitions.h> #include <linux/mtd/rawnand.h> #include <linux/platform_device.h> /** * struct platform_nand_chip - chip level device structure * @nr_chips: max. number of chips to scan for * @chip_offset: chip number offset * @nr_partitions: number of partitions pointed to by partitions (or zero) * @partitions: mtd partition list * @chip_delay: R/B delay value in us * @options: Option flags, e.g. 16bit buswidth * @bbt_options: BBT option flags, e.g. NAND_BBT_USE_FLASH * @part_probe_types: NULL-terminated array of probe types */ struct platform_nand_chip { int nr_chips; int chip_offset; int nr_partitions; struct mtd_partition *partitions; int chip_delay; unsigned int options; unsigned int bbt_options; const char **part_probe_types; }; /** * struct platform_nand_ctrl - controller level device structure * @probe: platform specific function to probe/setup hardware * @remove: platform specific function to remove/teardown hardware * @dev_ready: platform specific function to read ready/busy pin * @select_chip: platform specific chip select function * @cmd_ctrl: platform specific function for controlling * ALE/CLE/nCE. Also used to write command and address * @write_buf: platform specific function for write buffer * @read_buf: platform specific function for read buffer * @priv: private data to transport driver specific settings * * All fields are optional and depend on the hardware driver requirements */ struct platform_nand_ctrl { int (*probe)(struct platform_device *pdev); void (*remove)(struct platform_device *pdev); int (*dev_ready)(struct nand_chip *chip); void (*select_chip)(struct nand_chip *chip, int cs); void (*cmd_ctrl)(struct nand_chip *chip, int dat, unsigned int ctrl); void (*write_buf)(struct nand_chip *chip, const uint8_t *buf, int len); void (*read_buf)(struct nand_chip *chip, uint8_t *buf, int len); void *priv; }; /** * struct platform_nand_data - container structure for platform-specific data * @chip: chip level chip structure * @ctrl: controller level device structure */ struct platform_nand_data { struct platform_nand_chip chip; struct platform_nand_ctrl ctrl; }; #endif /* __LINUX_MTD_PLATNAND_H */
Save
cmd:
run