Dave Gerlach | 728bbe7 | 2017-01-12 14:52:19 -0600 | [diff] [blame] | 1 | /* |
| 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 | |
| 16 | struct gen_pool; |
| 17 | |
| 18 | #ifdef CONFIG_SRAM_EXEC |
Dave Gerlach | 34cfb10 | 2017-05-18 10:07:06 -0500 | [diff] [blame] | 19 | void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size); |
Dave Gerlach | 728bbe7 | 2017-01-12 14:52:19 -0600 | [diff] [blame] | 20 | #else |
Dave Gerlach | 34cfb10 | 2017-05-18 10:07:06 -0500 | [diff] [blame] | 21 | static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, |
| 22 | size_t size) |
Dave Gerlach | 728bbe7 | 2017-01-12 14:52:19 -0600 | [diff] [blame] | 23 | { |
Dave Gerlach | 34cfb10 | 2017-05-18 10:07:06 -0500 | [diff] [blame] | 24 | return NULL; |
Dave Gerlach | 728bbe7 | 2017-01-12 14:52:19 -0600 | [diff] [blame] | 25 | } |
| 26 | #endif /* CONFIG_SRAM_EXEC */ |
| 27 | #endif /* __LINUX_SRAM_H__ */ |