1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Defines for the SRAM driver
10 bool map_only_reserved
;
13 struct sram_partition
{
16 struct gen_pool
*pool
;
17 struct bin_attribute battr
;
19 struct list_head list
;
23 const struct sram_config
*config
;
26 void __iomem
*virt_base
;
29 struct gen_pool
*pool
;
31 struct sram_partition
*partition
;
36 struct list_head list
;
46 #ifdef CONFIG_SRAM_EXEC
47 int sram_check_protect_exec(struct sram_dev
*sram
, struct sram_reserve
*block
,
48 struct sram_partition
*part
);
49 int sram_add_protect_exec(struct sram_partition
*part
);
51 static inline int sram_check_protect_exec(struct sram_dev
*sram
,
52 struct sram_reserve
*block
,
53 struct sram_partition
*part
)
58 static inline int sram_add_protect_exec(struct sram_partition
*part
)
62 #endif /* CONFIG_SRAM_EXEC */