The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame^] | 1 | /**************************************************************************** |
| 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 | |
| 21 | enum { |
| 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_IMGTYPE_LIMIT |
| 33 | }; |
| 34 | |
| 35 | enum { |
| 36 | PMEM_IMG, |
| 37 | FB_IMG, |
| 38 | }; |
| 39 | |
| 40 | #define MDP_ROT_NOP 0 |
| 41 | #define MDP_FLIP_LR 0x1 |
| 42 | #define MDP_FLIP_UD 0x2 |
| 43 | #define MDP_ROT_90 0x4 |
| 44 | #define MDP_ROT_180 (MDP_FLIP_UD|MDP_FLIP_LR) |
| 45 | #define MDP_ROT_270 (MDP_ROT_90|MDP_FLIP_UD|MDP_FLIP_LR) |
| 46 | #define MDP_DITHER 0x8 |
| 47 | |
| 48 | #define MDP_TRANSP_NOP 0xffffffff |
| 49 | #define MDP_ALPHA_NOP 0xff |
| 50 | |
| 51 | struct mdp_rect { |
| 52 | uint32_t x; |
| 53 | uint32_t y; |
| 54 | uint32_t w; |
| 55 | uint32_t h; |
| 56 | }; |
| 57 | |
| 58 | struct mdp_img { |
| 59 | uint32_t width; |
| 60 | uint32_t height; |
| 61 | uint32_t format; |
| 62 | uint32_t offset; |
| 63 | int memory_id; |
| 64 | }; |
| 65 | |
| 66 | struct mdp_blit_req { |
| 67 | struct mdp_img src; |
| 68 | struct mdp_img dst; |
| 69 | struct mdp_rect src_rect; |
| 70 | struct mdp_rect dst_rect; |
| 71 | uint32_t alpha; |
| 72 | uint32_t transp_mask; |
| 73 | uint32_t flags; |
| 74 | }; |
| 75 | |
| 76 | struct mdp_blit_req_list { |
| 77 | uint32_t count; |
| 78 | struct mdp_blit_req req[]; |
| 79 | }; |
| 80 | |
| 81 | #endif |