M7350/kernel/arch/arm/plat-omap/include/plat/sram.h

17 lines
511 B
C
Raw Normal View History

2024-09-09 08:57:42 +00:00
int omap_sram_init(void);
2024-09-09 08:52:07 +00:00
2024-09-09 08:57:42 +00:00
void omap_map_sram(unsigned long start, unsigned long size,
unsigned long skip, int cached);
void omap_sram_reset(void);
2024-09-09 08:52:07 +00:00
extern void *omap_sram_push_address(unsigned long size);
/* Macro to push a function to the internal SRAM, using the fncpy API */
#define omap_sram_push(funcp, size) ({ \
typeof(&(funcp)) _res = NULL; \
void *_sram_address = omap_sram_push_address(size); \
if (_sram_address) \
_res = fncpy(_sram_address, &(funcp), size); \
_res; \
})