18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Generic SRAM Driver Interface
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or
58c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License as
68c2ecf20Sopenharmony_ci * published by the Free Software Foundation version 2.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * This program is distributed "as is" WITHOUT ANY WARRANTY of any
98c2ecf20Sopenharmony_ci * kind, whether express or implied; without even the implied warranty
108c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
118c2ecf20Sopenharmony_ci * GNU General Public License for more details.
128c2ecf20Sopenharmony_ci */
138c2ecf20Sopenharmony_ci#ifndef __LINUX_SRAM_H__
148c2ecf20Sopenharmony_ci#define __LINUX_SRAM_H__
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_cistruct gen_pool;
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#ifdef CONFIG_SRAM_EXEC
198c2ecf20Sopenharmony_civoid *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
208c2ecf20Sopenharmony_ci#else
218c2ecf20Sopenharmony_cistatic inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src,
228c2ecf20Sopenharmony_ci				   size_t size)
238c2ecf20Sopenharmony_ci{
248c2ecf20Sopenharmony_ci	return NULL;
258c2ecf20Sopenharmony_ci}
268c2ecf20Sopenharmony_ci#endif /* CONFIG_SRAM_EXEC */
278c2ecf20Sopenharmony_ci#endif /* __LINUX_SRAM_H__ */
28