Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / arm / plat-omap / include / plat / sram.h
blobfb061cf0d736d3203cf670d366cab227776e8264
1 /* SPDX-License-Identifier: GPL-2.0 */
2 int omap_sram_init(void);
4 void omap_map_sram(unsigned long start, unsigned long size,
5 unsigned long skip, int cached);
6 void omap_sram_reset(void);
8 extern void *omap_sram_push_address(unsigned long size);
10 /* Macro to push a function to the internal SRAM, using the fncpy API */
11 #define omap_sram_push(funcp, size) ({ \
12 typeof(&(funcp)) _res = NULL; \
13 void *_sram_address = omap_sram_push_address(size); \
14 if (_sram_address) \
15 _res = fncpy(_sram_address, &(funcp), size); \
16 _res; \