1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* linux/include/linux/mtd/plat-ram.h
4 * (c) 2004 Simtec Electronics
5 * http://www.simtec.co.uk/products/SWLINUX/
8 * Generic platform device based RAM map
11 #ifndef __LINUX_MTD_PLATRAM_H
12 #define __LINUX_MTD_PLATRAM_H __FILE__
14 #define PLATRAM_RO (0)
15 #define PLATRAM_RW (1)
17 struct platdata_mtd_ram {
19 const char * const *map_probes;
20 const char * const *probes;
21 struct mtd_partition *partitions;
25 /* control callbacks */
27 void (*set_rw)(struct device *dev, int to);
30 #endif /* __LINUX_MTD_PLATRAM_H */