1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* linux/include/linux/mtd/plat-ram.h |
3 | * |
4 | * (c) 2004 Simtec Electronics |
5 | * http://www.simtec.co.uk/products/SWLINUX/ |
6 | * Ben Dooks <ben@simtec.co.uk> |
7 | * |
8 | * Generic platform device based RAM map |
9 | */ |
10 | |
11 | #ifndef __LINUX_MTD_PLATRAM_H |
12 | #define __LINUX_MTD_PLATRAM_H __FILE__ |
13 | |
14 | #define PLATRAM_RO (0) |
15 | #define PLATRAM_RW (1) |
16 | |
17 | struct platdata_mtd_ram { |
18 | const char *mapname; |
19 | const char * const *map_probes; |
20 | const char * const *probes; |
21 | struct mtd_partition *partitions; |
22 | int nr_partitions; |
23 | int bankwidth; |
24 | |
25 | /* control callbacks */ |
26 | |
27 | void (*set_rw)(struct device *dev, int to); |
28 | }; |
29 | |
30 | #endif /* __LINUX_MTD_PLATRAM_H */ |
31 | |