/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/spear_smi.h (1714B)
/* * Copyright © 2010 ST Microelectronics * Shiraz Hashim * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #ifndef __MTD_SPEAR_SMI_H #define __MTD_SPEAR_SMI_H #include #include #include #include #include /* max possible slots for serial-nor flash chip in the SMI controller */ #define MAX_NUM_FLASH_CHIP 4 /* macro to define partitions for flash devices */ #define DEFINE_PARTS(n, of, s) \ { \ .name = n, \ .offset = of, \ .size = s, \ } /** * struct spear_smi_flash_info - platform structure for passing flash * information * * name: name of the serial nor flash for identification * mem_base: the memory base on which the flash is mapped * size: size of the flash in bytes * partitions: parition details * nr_partitions: number of partitions * fast_mode: whether flash supports fast mode */ struct spear_smi_flash_info { char *name; unsigned long mem_base; unsigned long size; struct mtd_partition *partitions; int nr_partitions; u8 fast_mode; }; /** * struct spear_smi_plat_data - platform structure for configuring smi * * clk_rate: clk rate at which SMI must operate * num_flashes: number of flashes present on board * board_flash_info: specific details of each flash present on board */ struct spear_smi_plat_data { unsigned long clk_rate; int num_flashes; struct spear_smi_flash_info *board_flash_info; struct device_node *np[MAX_NUM_FLASH_CHIP]; }; #endif /* __MTD_SPEAR_SMI_H */