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 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef __MSM_ROTATOR_H__ 20 #define __MSM_ROTATOR_H__ 21 #include <linux/types.h> 22 #include <linux/msm_mdp.h> 23 #define MSM_ROTATOR_IOCTL_MAGIC 'R' 24 #define MSM_ROTATOR_IOCTL_START _IOWR(MSM_ROTATOR_IOCTL_MAGIC, 1, struct msm_rotator_img_info) 25 #define MSM_ROTATOR_IOCTL_ROTATE _IOW(MSM_ROTATOR_IOCTL_MAGIC, 2, struct msm_rotator_data_info) 26 #define MSM_ROTATOR_IOCTL_FINISH _IOW(MSM_ROTATOR_IOCTL_MAGIC, 3, int) 27 #define ROTATOR_VERSION_01 0xA5B4C301 28 enum rotator_clk_type { 29 ROTATOR_CORE_CLK, 30 ROTATOR_PCLK, 31 ROTATOR_IMEM_CLK 32 }; 33 struct msm_rotator_img_info { 34 unsigned int session_id; 35 struct msmfb_img src; 36 struct msmfb_img dst; 37 struct mdp_rect src_rect; 38 unsigned int dst_x; 39 unsigned int dst_y; 40 unsigned char rotations; 41 int enable; 42 unsigned int downscale_ratio; 43 unsigned int secure; 44 }; 45 struct msm_rotator_data_info { 46 int session_id; 47 struct msmfb_data src; 48 struct msmfb_data dst; 49 unsigned int version_key; 50 struct msmfb_data src_chroma; 51 struct msmfb_data dst_chroma; 52 }; 53 struct msm_rot_clocks { 54 const char * clk_name; 55 enum rotator_clk_type clk_type; 56 unsigned int clk_rate; 57 }; 58 struct msm_rotator_platform_data { 59 unsigned int number_of_clocks; 60 unsigned int hardware_version_number; 61 struct msm_rot_clocks * rotator_clks; 62 struct msm_bus_scale_pdata * bus_scale_table; 63 char rot_iommu_split_domain; 64 }; 65 #endif 66 67