blob: 20b9002712ef23505d5261b9d192dd5c30de627e [file] [log] [blame]
Mike Rapoport22caf042006-07-14 00:24:34 -07001#ifndef __MBX_FB_H
2#define __MBX_FB_H
3
Raphael Assenatea465252006-12-08 02:40:36 -08004#include <asm/ioctl.h>
5#include <asm/types.h>
6
Mike Rapoport22caf042006-07-14 00:24:34 -07007struct mbxfb_val {
8 unsigned int defval;
9 unsigned int min;
10 unsigned int max;
11};
12
13struct fb_info;
14
15struct mbxfb_platform_data {
16 /* Screen info */
17 struct mbxfb_val xres;
18 struct mbxfb_val yres;
19 struct mbxfb_val bpp;
20
21 /* Memory info */
22 unsigned long memsize; /* if 0 use ODFB? */
23 unsigned long timings1;
24 unsigned long timings2;
25 unsigned long timings3;
26
27 int (*probe)(struct fb_info *fb);
28 int (*remove)(struct fb_info *fb);
29};
30
Raphael Assenatea465252006-12-08 02:40:36 -080031/* planar */
32#define MBXFB_FMT_YUV12 0
33
34/* packed */
35#define MBXFB_FMT_UY0VY1 1
36#define MBXFB_FMT_VY0UY1 2
37#define MBXFB_FMT_Y0UY1V 3
38#define MBXFB_FMT_Y0VY1U 4
39struct mbxfb_overlaySetup {
40 __u32 enable;
41 __u32 x, y;
42 __u32 width, height;
43 __u32 alpha;
44 __u32 fmt;
45 __u32 mem_offset;
46 __u32 scaled_width;
47 __u32 scaled_height;
48
49 /* Filled by the driver */
50 __u32 U_offset;
51 __u32 V_offset;
52
53 __u16 Y_stride;
54 __u16 UV_stride;
55};
56
57#define MBXFB_IOCX_OVERLAY _IOWR(0xF4, 0x00,struct mbxfb_overlaySetup)
58
Mike Rapoport22caf042006-07-14 00:24:34 -070059#endif /* __MBX_FB_H */