Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /* linux/include/linux/mtd/plat-ram.h
0003  *
0004  * (c) 2004 Simtec Electronics
0005  *  http://www.simtec.co.uk/products/SWLINUX/
0006  *  Ben Dooks <ben@simtec.co.uk>
0007  *
0008  * Generic platform device based RAM map
0009  */
0010 
0011 #ifndef __LINUX_MTD_PLATRAM_H
0012 #define __LINUX_MTD_PLATRAM_H __FILE__
0013 
0014 #define PLATRAM_RO (0)
0015 #define PLATRAM_RW (1)
0016 
0017 struct platdata_mtd_ram {
0018     const char      *mapname;
0019     const char * const      *map_probes;
0020     const char * const      *probes;
0021     struct mtd_partition    *partitions;
0022     int          nr_partitions;
0023     int          bankwidth;
0024 
0025     /* control callbacks */
0026 
0027     void    (*set_rw)(struct device *dev, int to);
0028 };
0029 
0030 #endif /* __LINUX_MTD_PLATRAM_H */