sram.h 437 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Generic SRAM Driver Interface */
  3. #ifndef __LINUX_SRAM_H__
  4. #define __LINUX_SRAM_H__
  5. struct gen_pool;
  6. #ifdef CONFIG_SRAM_EXEC
  7. void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
  8. #else
  9. static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src,
  10. size_t size)
  11. {
  12. return NULL;
  13. }
  14. #endif /* CONFIG_SRAM_EXEC */
  15. #endif /* __LINUX_SRAM_H__ */