1 #ifndef __VIDEO_SH_MOBILE_MERAM_H__
2 #define __VIDEO_SH_MOBILE_MERAM_H__
4 /* For sh_mobile_meram_info.addr_mode */
6 SH_MOBILE_MERAM_MODE0 = 0,
11 SH_MOBILE_MERAM_PF_NV = 0,
12 SH_MOBILE_MERAM_PF_RGB,
13 SH_MOBILE_MERAM_PF_NV24
17 struct sh_mobile_meram_priv;
18 struct sh_mobile_meram_ops;
21 * struct sh_mobile_meram_info - MERAM platform data
22 * @reserved_icbs: Bitmask of reserved ICBs (for instance used through UIO)
24 struct sh_mobile_meram_info {
27 struct sh_mobile_meram_ops *ops;
28 struct sh_mobile_meram_priv *priv;
29 struct platform_device *pdev;
33 struct sh_mobile_meram_icb_cfg {
34 unsigned int meram_size; /* MERAM Buffer Size to use */
37 struct sh_mobile_meram_cfg {
38 struct sh_mobile_meram_icb_cfg icb[2];
42 struct sh_mobile_meram_ops {
43 struct module *module;
45 /* LCDC cache management */
46 void *(*cache_alloc)(struct sh_mobile_meram_info *meram_dev,
47 const struct sh_mobile_meram_cfg *cfg,
48 unsigned int xres, unsigned int yres,
49 unsigned int pixelformat, unsigned int *pitch);
50 void (*cache_free)(struct sh_mobile_meram_info *meram_dev, void *data);
51 void (*cache_update)(struct sh_mobile_meram_info *meram_dev, void *data,
52 unsigned long base_addr_y,
53 unsigned long base_addr_c,
54 unsigned long *icb_addr_y,
55 unsigned long *icb_addr_c);
58 #endif /* __VIDEO_SH_MOBILE_MERAM_H__ */