2012-06-18 23:54:42 +02:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef __MSM_ROTATOR_H__
|
|
|
|
#define __MSM_ROTATOR_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/msm_mdp.h>
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
|
|
#define MSM_ROTATOR_IOCTL_MAGIC 'R'
|
|
|
|
#define MSM_ROTATOR_IOCTL_START _IOWR(MSM_ROTATOR_IOCTL_MAGIC, 1, struct msm_rotator_img_info)
|
|
|
|
#define MSM_ROTATOR_IOCTL_ROTATE _IOW(MSM_ROTATOR_IOCTL_MAGIC, 2, struct msm_rotator_data_info)
|
|
|
|
#define MSM_ROTATOR_IOCTL_FINISH _IOW(MSM_ROTATOR_IOCTL_MAGIC, 3, int)
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
|
|
#define ROTATOR_VERSION_01 0xA5B4C301
|
|
|
|
enum rotator_clk_type {
|
|
|
|
ROTATOR_CORE_CLK,
|
|
|
|
ROTATOR_PCLK,
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
|
|
ROTATOR_IMEM_CLK
|
|
|
|
};
|
|
|
|
struct msm_rotator_img_info {
|
|
|
|
unsigned int session_id;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
|
|
struct msmfb_img src;
|
|
|
|
struct msmfb_img dst;
|
|
|
|
struct mdp_rect src_rect;
|
|
|
|
unsigned int dst_x;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
|
|
unsigned int dst_y;
|
|
|
|
unsigned char rotations;
|
|
|
|
int enable;
|
|
|
|
unsigned int downscale_ratio;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-07-18 22:47:28 +02:00
|
|
|
unsigned int secure;
|
2012-06-18 23:54:42 +02:00
|
|
|
};
|
|
|
|
struct msm_rotator_data_info {
|
|
|
|
int session_id;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-07-18 22:47:28 +02:00
|
|
|
struct msmfb_data src;
|
2012-06-18 23:54:42 +02:00
|
|
|
struct msmfb_data dst;
|
|
|
|
unsigned int version_key;
|
|
|
|
struct msmfb_data src_chroma;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-07-18 22:47:28 +02:00
|
|
|
struct msmfb_data dst_chroma;
|
2012-06-18 23:54:42 +02:00
|
|
|
};
|
|
|
|
struct msm_rot_clocks {
|
|
|
|
const char *clk_name;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-07-18 22:47:28 +02:00
|
|
|
enum rotator_clk_type clk_type;
|
2012-06-18 23:54:42 +02:00
|
|
|
unsigned int clk_rate;
|
|
|
|
};
|
|
|
|
struct msm_rotator_platform_data {
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-07-18 22:47:28 +02:00
|
|
|
unsigned int number_of_clocks;
|
2012-06-18 23:54:42 +02:00
|
|
|
unsigned int hardware_version_number;
|
|
|
|
struct msm_rot_clocks *rotator_clks;
|
2012-07-18 22:47:28 +02:00
|
|
|
char rot_iommu_split_domain;
|
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2012-06-18 23:54:42 +02:00
|
|
|
};
|
|
|
|
#endif
|
2012-07-18 22:47:28 +02:00
|
|
|
|