1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _MDSS_ROTATOR_H_ 8 #define _MDSS_ROTATOR_H_ 9 #include <linux/msm_mdp_ext.h> 10 #define MDSS_ROTATOR_IOCTL_MAGIC 'w' 11 #define MDSS_ROTATION_OPEN _IOWR(MDSS_ROTATOR_IOCTL_MAGIC, 1, struct mdp_rotation_config *) 12 #define MDSS_ROTATION_CONFIG _IOWR(MDSS_ROTATOR_IOCTL_MAGIC, 2, struct mdp_rotation_config *) 13 #define MDSS_ROTATION_REQUEST _IOWR(MDSS_ROTATOR_IOCTL_MAGIC, 3, struct mdp_rotation_request *) 14 #define MDSS_ROTATION_CLOSE _IOW(MDSS_ROTATOR_IOCTL_MAGIC, 4, unsigned int) 15 #define MDP_ROTATION_NOP 0x01 16 #define MDP_ROTATION_FLIP_LR 0x02 17 #define MDP_ROTATION_FLIP_UD 0x04 18 #define MDP_ROTATION_90 0x08 19 #define MDP_ROTATION_180 (MDP_ROTATION_FLIP_LR | MDP_ROTATION_FLIP_UD) 20 #define MDP_ROTATION_270 (MDP_ROTATION_90 | MDP_ROTATION_180) 21 #define MDP_ROTATION_DEINTERLACE 0x10 22 #define MDP_ROTATION_BWC_EN 0x40 23 #define MDP_ROTATION_SECURE 0x80 24 #define MDSS_ROTATION_REQUEST_VALIDATE 0x01 25 #define MDP_ROTATION_REQUEST_VERSION_1_0 0x00010000 26 #define MDSS_ROTATION_HW_ANY 0xFFFFFFFF 27 struct mdp_rotation_buf_info { 28 uint32_t width; 29 uint32_t height; 30 uint32_t format; 31 struct mult_factor comp_ratio; 32 }; 33 struct mdp_rotation_config { 34 uint32_t version; 35 uint32_t session_id; 36 struct mdp_rotation_buf_info input; 37 struct mdp_rotation_buf_info output; 38 uint32_t frame_rate; 39 uint32_t flags; 40 uint32_t reserved[6]; 41 }; 42 struct mdp_rotation_item { 43 uint32_t flags; 44 struct mdp_rect src_rect; 45 struct mdp_rect dst_rect; 46 struct mdp_layer_buffer input; 47 struct mdp_layer_buffer output; 48 uint32_t pipe_idx; 49 uint32_t wb_idx; 50 uint32_t session_id; 51 uint32_t reserved[6]; 52 }; 53 struct mdp_rotation_request { 54 uint32_t version; 55 uint32_t flags; 56 uint32_t count; 57 struct mdp_rotation_item * list; 58 uint32_t reserved[6]; 59 }; 60 #endif 61