Merge tag 'pci-v4.14-fixes-7' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[sfrench/cifs-2.6.git] / arch / arm / plat-omap / include / plat / sram.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 int omap_sram_init(void);
3
4 void omap_map_sram(unsigned long start, unsigned long size,
5                         unsigned long skip, int cached);
6 void omap_sram_reset(void);
7
8 extern void *omap_sram_push_address(unsigned long size);
9
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;                                                   \
17 })