2 * Defines for the SRAM driver
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
11 struct sram_partition {
14 struct gen_pool *pool;
15 struct bin_attribute battr;
17 struct list_head list;
22 void __iomem *virt_base;
24 struct gen_pool *pool;
27 struct sram_partition *partition;
32 struct list_head list;
41 #ifdef CONFIG_SRAM_EXEC
42 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block,
43 struct sram_partition *part);
44 int sram_add_protect_exec(struct sram_partition *part);
46 static inline int sram_check_protect_exec(struct sram_dev *sram,
47 struct sram_reserve *block,
48 struct sram_partition *part)
53 static inline int sram_add_protect_exec(struct sram_partition *part)
57 #endif /* CONFIG_SRAM_EXEC */