Linux 3.11-rc3
[cris-mirror.git] / arch / arm / plat-omap / include / plat / sram.h
blobba4525059a996d44f9ce8ddb83ae0bba6802fc79
1 int omap_sram_init(void);
3 void omap_map_sram(unsigned long start, unsigned long size,
4 unsigned long skip, int cached);
5 void omap_sram_reset(void);
7 extern void *omap_sram_push_address(unsigned long size);
9 /* Macro to push a function to the internal SRAM, using the fncpy API */
10 #define omap_sram_push(funcp, size) ({ \
11 typeof(&(funcp)) _res = NULL; \
12 void *_sram_address = omap_sram_push_address(size); \
13 if (_sram_address) \
14 _res = fncpy(_sram_address, &(funcp), size); \
15 _res; \