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); \
15 _res = fncpy(_sram_address, &(funcp), size); \