···11-/* include/linux/msm_mdp.h22- *33- * Copyright (C) 2007 Google Incorporated44- *55- * This software is licensed under the terms of the GNU General Public66- * License version 2, as published by the Free Software Foundation, and77- * may be copied, distributed, and modified under those terms.88- *99- * This program is distributed in the hope that it will be useful,1010- * but WITHOUT ANY WARRANTY; without even the implied warranty of1111- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1212- * GNU General Public License for more details.1313- */1414-#ifndef _MSM_MDP_H_1515-#define _MSM_MDP_H_1616-1717-#include <linux/types.h>1818-1919-#define MSMFB_IOCTL_MAGIC 'm'2020-#define MSMFB_GRP_DISP _IOW(MSMFB_IOCTL_MAGIC, 1, unsigned int)2121-#define MSMFB_BLIT _IOW(MSMFB_IOCTL_MAGIC, 2, unsigned int)2222-2323-enum {2424- MDP_RGB_565, /* RGB 565 planar */2525- MDP_XRGB_8888, /* RGB 888 padded */2626- MDP_Y_CBCR_H2V2, /* Y and CbCr, pseudo planar w/ Cb is in MSB */2727- MDP_ARGB_8888, /* ARGB 888 */2828- MDP_RGB_888, /* RGB 888 planar */2929- MDP_Y_CRCB_H2V2, /* Y and CrCb, pseudo planar w/ Cr is in MSB */3030- MDP_YCRYCB_H2V1, /* YCrYCb interleave */3131- MDP_Y_CRCB_H2V1, /* Y and CrCb, pseduo planar w/ Cr is in MSB */3232- MDP_Y_CBCR_H2V1, /* Y and CrCb, pseduo planar w/ Cr is in MSB */3333- MDP_RGBA_8888, /* ARGB 888 */3434- MDP_BGRA_8888, /* ABGR 888 */3535- MDP_RGBX_8888, /* RGBX 888 */3636- MDP_IMGTYPE_LIMIT /* Non valid image type after this enum */3737-};3838-3939-enum {4040- PMEM_IMG,4141- FB_IMG,4242-};4343-4444-/* flag values */4545-#define MDP_ROT_NOP 04646-#define MDP_FLIP_LR 0x14747-#define MDP_FLIP_UD 0x24848-#define MDP_ROT_90 0x44949-#define MDP_ROT_180 (MDP_FLIP_UD|MDP_FLIP_LR)5050-#define MDP_ROT_270 (MDP_ROT_90|MDP_FLIP_UD|MDP_FLIP_LR)5151-#define MDP_DITHER 0x85252-#define MDP_BLUR 0x105353-5454-#define MDP_TRANSP_NOP 0xffffffff5555-#define MDP_ALPHA_NOP 0xff5656-5757-struct mdp_rect {5858- u32 x, y, w, h;5959-};6060-6161-struct mdp_img {6262- u32 width, height, format, offset;6363- int memory_id; /* the file descriptor */6464-};6565-6666-struct mdp_blit_req {6767- struct mdp_img src;6868- struct mdp_img dst;6969- struct mdp_rect src_rect;7070- struct mdp_rect dst_rect;7171- u32 alpha, transp_mask, flags;7272-};7373-7474-struct mdp_blit_req_list {7575- u32 count;7676- struct mdp_blit_req req[];7777-};7878-7979-#endif /* _MSM_MDP_H_ */