Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * For boards with physically mapped flash and using
0004  * drivers/mtd/maps/physmap.c mapping driver.
0005  *
0006  * Copyright (C) 2003 MontaVista Software Inc.
0007  * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
0008  */
0009 
0010 #ifndef __LINUX_MTD_PHYSMAP__
0011 #define __LINUX_MTD_PHYSMAP__
0012 
0013 #include <linux/mtd/mtd.h>
0014 #include <linux/mtd/partitions.h>
0015 
0016 struct map_info;
0017 struct platform_device;
0018 
0019 struct physmap_flash_data {
0020     unsigned int        width;
0021     int         (*init)(struct platform_device *);
0022     void            (*exit)(struct platform_device *);
0023     void            (*set_vpp)(struct platform_device *, int);
0024     unsigned int        nr_parts;
0025     unsigned int        pfow_base;
0026     char                    *probe_type;
0027     struct mtd_partition    *parts;
0028     const char * const  *part_probe_types;
0029 };
0030 
0031 #endif /* __LINUX_MTD_PHYSMAP__ */