blob: d10ed438354eafc4d3a5b2db9f6cd475fc0b9836 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _MSM_MDP_H_
13#define _MSM_MDP_H_
14
15#include <linux/types.h>
16
17#define MSMFB_IOCTL_MAGIC 'm'
18#define MSMFB_GRP_DISP _IOW(MSMFB_IOCTL_MAGIC, 1, unsigned int)
19#define MSMFB_BLIT _IOW(MSMFB_IOCTL_MAGIC, 2, unsigned int)
20
21enum {
22 MDP_RGB_565,
23 MDP_XRGB_8888,
24 MDP_Y_CBCR_H2V2,
25 MDP_ARGB_8888,
26 MDP_RGB_888,
27 MDP_Y_CRCB_H2V2,
28 MDP_YCRYCB_H2V1,
29 MDP_Y_CRCB_H2V1,
30 MDP_Y_CBCR_H2V1,
31 MDP_RGBA_8888,
32 MDP_BGRA_8888,
33 MDP_IMGTYPE_LIMIT
34};
35
36enum {
37 PMEM_IMG,
38 FB_IMG,
39};
40
41#define MDP_ROT_NOP 0
42#define MDP_FLIP_LR 0x1
43#define MDP_FLIP_UD 0x2
44#define MDP_ROT_90 0x4
45#define MDP_ROT_180 (MDP_FLIP_UD|MDP_FLIP_LR)
46#define MDP_ROT_270 (MDP_ROT_90|MDP_FLIP_UD|MDP_FLIP_LR)
47#define MDP_DITHER 0x8
48
49#define MDP_TRANSP_NOP 0xffffffff
50#define MDP_ALPHA_NOP 0xff
51
52struct mdp_rect {
53 uint32_t x;
54 uint32_t y;
55 uint32_t w;
56 uint32_t h;
57};
58
59struct mdp_img {
60 uint32_t width;
61 uint32_t height;
62 uint32_t format;
63 uint32_t offset;
64 int memory_id;
65};
66
67struct mdp_blit_req {
68 struct mdp_img src;
69 struct mdp_img dst;
70 struct mdp_rect src_rect;
71 struct mdp_rect dst_rect;
72 uint32_t alpha;
73 uint32_t transp_mask;
74 uint32_t flags;
75};
76
77struct mdp_blit_req_list {
78 uint32_t count;
79 struct mdp_blit_req req[];
80};
81
82#endif