mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 09:16:38 +07:00
d8cfd6c8b4
This will allow us to separate out omap1 and omap2+ specific code in the later patches. Signed-off-by: Tony Lindgren <tony@atomide.com>
17 lines
511 B
C
17 lines
511 B
C
int omap_sram_init(void);
|
|
|
|
void omap_map_sram(unsigned long start, unsigned long size,
|
|
unsigned long skip, int cached);
|
|
void omap_sram_reset(void);
|
|
|
|
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; \
|
|
})
|