]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/video/sh_mobile_meram.h
fbdev: sh_mobile_meram: Don't perform update in register operation
[mirror_ubuntu-bionic-kernel.git] / include / video / sh_mobile_meram.h
CommitLineData
7caa4342
DHG
1#ifndef __VIDEO_SH_MOBILE_MERAM_H__
2#define __VIDEO_SH_MOBILE_MERAM_H__
3
4/* For sh_mobile_meram_info.addr_mode */
5enum {
6 SH_MOBILE_MERAM_MODE0 = 0,
7 SH_MOBILE_MERAM_MODE1
8};
9
10enum {
11 SH_MOBILE_MERAM_PF_NV = 0,
3fedd2ac
DHG
12 SH_MOBILE_MERAM_PF_RGB,
13 SH_MOBILE_MERAM_PF_NV24
7caa4342
DHG
14};
15
16
17struct sh_mobile_meram_priv;
18struct sh_mobile_meram_ops;
19
48110050
LP
20/*
21 * struct sh_mobile_meram_info - MERAM platform data
22 * @reserved_icbs: Bitmask of reserved ICBs (for instance used through UIO)
23 */
7caa4342
DHG
24struct sh_mobile_meram_info {
25 int addr_mode;
48110050 26 u32 reserved_icbs;
7caa4342
DHG
27 struct sh_mobile_meram_ops *ops;
28 struct sh_mobile_meram_priv *priv;
29 struct platform_device *pdev;
30};
31
32/* icb config */
d272f428 33struct sh_mobile_meram_icb_cfg {
d272f428 34 unsigned int meram_size; /* MERAM Buffer Size to use */
7caa4342
DHG
35};
36
37struct sh_mobile_meram_cfg {
2a618e03 38 struct sh_mobile_meram_icb_cfg icb[2];
7caa4342
DHG
39};
40
41struct module;
42struct sh_mobile_meram_ops {
43 struct module *module;
44 /* register usage of meram */
48110050
LP
45 void *(*meram_register)(struct sh_mobile_meram_info *meram_dev,
46 const struct sh_mobile_meram_cfg *cfg,
47 unsigned int xres, unsigned int yres,
48 unsigned int pixelformat,
48110050 49 unsigned int *pitch);
7caa4342
DHG
50
51 /* unregister usage of meram */
52 int (*meram_unregister)(struct sh_mobile_meram_info *meram_dev,
48110050 53 void *data);
7caa4342
DHG
54
55 /* update meram settings */
56 int (*meram_update)(struct sh_mobile_meram_info *meram_dev,
48110050 57 void *data,
7caa4342
DHG
58 unsigned long base_addr_y,
59 unsigned long base_addr_c,
60 unsigned long *icb_addr_y,
61 unsigned long *icb_addr_c);
62};
63
64#endif /* __VIDEO_SH_MOBILE_MERAM_H__ */