1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Defines for the SRAM driver
8 struct sram_partition {
11 struct gen_pool *pool;
12 struct bin_attribute battr;
14 struct list_head list;
19 void __iomem *virt_base;
21 struct gen_pool *pool;
24 struct sram_partition *partition;
29 struct list_head list;
38 #ifdef CONFIG_SRAM_EXEC
39 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block,
40 struct sram_partition *part);
41 int sram_add_protect_exec(struct sram_partition *part);
43 static inline int sram_check_protect_exec(struct sram_dev *sram,
44 struct sram_reserve *block,
45 struct sram_partition *part)
50 static inline int sram_add_protect_exec(struct sram_partition *part)
54 #endif /* CONFIG_SRAM_EXEC */