1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * For boards with physically mapped flash and 3 * For boards with physically mapped flash and using 4 * drivers/mtd/maps/physmap.c mapping driver. 4 * drivers/mtd/maps/physmap.c mapping driver. 5 * 5 * 6 * Copyright (C) 2003 MontaVista Software Inc. 6 * Copyright (C) 2003 MontaVista Software Inc. 7 * Author: Jun Sun, jsun@mvista.com or jsun@ju 7 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net 8 */ 8 */ 9 9 10 #ifndef __LINUX_MTD_PHYSMAP__ 10 #ifndef __LINUX_MTD_PHYSMAP__ 11 #define __LINUX_MTD_PHYSMAP__ 11 #define __LINUX_MTD_PHYSMAP__ 12 12 13 #include <linux/mtd/mtd.h> 13 #include <linux/mtd/mtd.h> 14 #include <linux/mtd/partitions.h> 14 #include <linux/mtd/partitions.h> 15 15 16 struct map_info; 16 struct map_info; 17 struct platform_device; 17 struct platform_device; 18 18 19 struct physmap_flash_data { 19 struct physmap_flash_data { 20 unsigned int width; 20 unsigned int width; 21 int (*init)(struct 21 int (*init)(struct platform_device *); 22 void (*exit)(struct 22 void (*exit)(struct platform_device *); 23 void (*set_vpp)(str 23 void (*set_vpp)(struct platform_device *, int); 24 unsigned int nr_parts; 24 unsigned int nr_parts; 25 unsigned int pfow_base; 25 unsigned int pfow_base; 26 char *probe_type; 26 char *probe_type; 27 struct mtd_partition *parts; 27 struct mtd_partition *parts; 28 const char * const *part_probe_ty 28 const char * const *part_probe_types; 29 }; 29 }; 30 30 31 #endif /* __LINUX_MTD_PHYSMAP__ */ 31 #endif /* __LINUX_MTD_PHYSMAP__ */ 32 32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.