blob: 4fb405fb0480cf3fbbdfe3ba969bd62876c8ed7d [file] [log] [blame]
Dave Gerlach728bbe72017-01-12 14:52:19 -06001/*
2 * Generic SRAM Driver Interface
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation version 2.
7 *
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13#ifndef __LINUX_SRAM_H__
14#define __LINUX_SRAM_H__
15
16struct gen_pool;
17
18#ifdef CONFIG_SRAM_EXEC
Dave Gerlach34cfb102017-05-18 10:07:06 -050019void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
Dave Gerlach728bbe72017-01-12 14:52:19 -060020#else
Dave Gerlach34cfb102017-05-18 10:07:06 -050021static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src,
22 size_t size)
Dave Gerlach728bbe72017-01-12 14:52:19 -060023{
Dave Gerlach34cfb102017-05-18 10:07:06 -050024 return NULL;
Dave Gerlach728bbe72017-01-12 14:52:19 -060025}
26#endif /* CONFIG_SRAM_EXEC */
27#endif /* __LINUX_SRAM_H__ */