| #ifndef __sh_mobile_meram_h__ |
| #define __sh_mobile_meram_h__ |
| #include <video/sh_mobile_meram.h> |
| #define SH_MOBILE_MERAM_ICB_NUM 32 |
| #define SH_MOBILE_MERAM_CACHE_OFFSET(p) ((p) >> 16) |
| #define SH_MOBILE_MERAM_CACHE_SIZE(p) ((p) & 0xffff) |
| struct sh_mobile_meram_priv { |
| int used_meram_cache_regions; |
| unsigned long used_meram_cache[SH_MOBILE_MERAM_ICB_NUM]; |
| int sh_mobile_meram_alloc_icb(const struct sh_mobile_meram_cfg *cfg, |
| void sh_mobile_meram_free_icb(int marker_icb); |
| #define SH_MOBILE_MERAM_START(ind, ab) \ |
| (0xC0000000 | ((ab & 0x1) << 23) | ((ind & 0x1F) << 24)) |
| #endif /* !__sh_mobile_meram_h__ */ |