![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * arch/arm/include/asm/mach/flash.h 0004 * 0005 * Copyright (C) 2003 Russell King, All Rights Reserved. 0006 */ 0007 #ifndef ASMARM_MACH_FLASH_H 0008 #define ASMARM_MACH_FLASH_H 0009 0010 struct mtd_partition; 0011 struct mtd_info; 0012 0013 /* 0014 * map_name: the map probe function name 0015 * name: flash device name (eg, as used with mtdparts=) 0016 * width: width of mapped device 0017 * init: method called at driver/device initialisation 0018 * exit: method called at driver/device removal 0019 * set_vpp: method called to enable or disable VPP 0020 * mmcontrol: method called to enable or disable Sync. Burst Read in OneNAND 0021 * parts: optional array of mtd_partitions for static partitioning 0022 * nr_parts: number of mtd_partitions for static partitioning 0023 */ 0024 struct flash_platform_data { 0025 const char *map_name; 0026 const char *name; 0027 unsigned int width; 0028 int (*init)(void); 0029 void (*exit)(void); 0030 void (*set_vpp)(int on); 0031 void (*mmcontrol)(struct mtd_info *mtd, int sync_read); 0032 struct mtd_partition *parts; 0033 unsigned int nr_parts; 0034 }; 0035 0036 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |