also take over the files for 2.6.31
[openwrt/openwrt.git] / target / linux / generic-2.6 / files-2.6.31 / include / linux / glamofb.h
1 #ifndef _LINUX_GLAMOFB_H
2 #define _LINUX_GLAMOFB_H
3
4 #include <linux/fb.h>
5
6 #ifdef __KERNEL__
7
8 struct glamo_core;
9 struct glamofb_handle;
10
11 struct glamo_fb_platform_data {
12 int width, height;
13
14 int num_modes;
15 struct fb_videomode *modes;
16
17 struct glamo_core *core;
18 };
19
20 int glamofb_cmd_mode(struct glamofb_handle *gfb, int on);
21 int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val);
22
23 #ifdef CONFIG_MFD_GLAMO
24 void glamo_lcm_reset(struct platform_device *pdev, int level);
25 #else
26 #define glamo_lcm_reset(...) do {} while (0)
27 #endif
28
29 #endif
30
31 #define GLAMOFB_ENGINE_ENABLE _IOW('F', 0x1, __u32)
32 #define GLAMOFB_ENGINE_DISABLE _IOW('F', 0x2, __u32)
33 #define GLAMOFB_ENGINE_RESET _IOW('F', 0x3, __u32)
34
35 #endif