Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /* Generic SRAM Driver Interface */
0003 #ifndef __LINUX_SRAM_H__
0004 #define __LINUX_SRAM_H__
0005 
0006 struct gen_pool;
0007 
0008 #ifdef CONFIG_SRAM_EXEC
0009 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
0010 #else
0011 static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src,
0012                    size_t size)
0013 {
0014     return NULL;
0015 }
0016 #endif /* CONFIG_SRAM_EXEC */
0017 #endif /* __LINUX_SRAM_H__ */