You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
689 lines
25 KiB
689 lines
25 KiB
/**************************************************************************** |
|
**************************************************************************** |
|
*** |
|
*** 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 __UAPI_LINUX_MSM_CAM_SENSOR_H |
|
#define __UAPI_LINUX_MSM_CAM_SENSOR_H |
|
#include <linux/v4l2-mediabus.h> |
|
#include <media/msm_camsensor_sdk.h> |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#include <linux/types.h> |
|
#include <linux/i2c.h> |
|
#define I2C_SEQ_REG_SETTING_MAX 5 |
|
#define MSM_SENSOR_MCLK_8HZ 8000000 |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define MSM_SENSOR_MCLK_16HZ 16000000 |
|
#define MSM_SENSOR_MCLK_24HZ 24000000 |
|
#define MAX_SENSOR_NAME 32 |
|
#define MAX_ACTUATOR_AF_TOTAL_STEPS 1024 |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define MAX_OIS_MOD_NAME_SIZE 32 |
|
#define MAX_OIS_NAME_SIZE 32 |
|
#define MAX_OIS_REG_SETTINGS 800 |
|
#define MOVE_NEAR 0 |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define MOVE_FAR 1 |
|
#define MSM_ACTUATOR_MOVE_SIGNED_FAR - 1 |
|
#define MSM_ACTUATOR_MOVE_SIGNED_NEAR 1 |
|
#define MAX_ACTUATOR_REGION 5 |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define MAX_EEPROM_NAME 32 |
|
#define MAX_AF_ITERATIONS 3 |
|
#define MAX_NUMBER_OF_STEPS 47 |
|
#define MAX_REGULATOR 5 |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define FLASH_QUERY_CURRENT 1 |
|
#define MSM_V4L2_PIX_FMT_META v4l2_fourcc('M', 'E', 'T', 'A') |
|
#define MSM_V4L2_PIX_FMT_META10 v4l2_fourcc('M', 'E', '1', '0') |
|
#define MSM_V4L2_PIX_FMT_SBGGR14 v4l2_fourcc('B', 'G', '1', '4') |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define MSM_V4L2_PIX_FMT_SGBRG14 v4l2_fourcc('G', 'B', '1', '4') |
|
#define MSM_V4L2_PIX_FMT_SGRBG14 v4l2_fourcc('B', 'A', '1', '4') |
|
#define MSM_V4L2_PIX_FMT_SRGGB14 v4l2_fourcc('R', 'G', '1', '4') |
|
enum flash_type { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
LED_FLASH = 1, |
|
STROBE_FLASH, |
|
GPIO_FLASH |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_sensor_resolution_t { |
|
MSM_SENSOR_RES_FULL, |
|
MSM_SENSOR_RES_QTR, |
|
MSM_SENSOR_RES_2, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_SENSOR_RES_3, |
|
MSM_SENSOR_RES_4, |
|
MSM_SENSOR_RES_5, |
|
MSM_SENSOR_RES_6, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_SENSOR_RES_7, |
|
MSM_SENSOR_INVALID_RES, |
|
}; |
|
enum msm_camera_stream_type_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_STREAM_PREVIEW, |
|
MSM_CAMERA_STREAM_SNAPSHOT, |
|
MSM_CAMERA_STREAM_VIDEO, |
|
MSM_CAMERA_STREAM_INVALID, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
enum sensor_sub_module_t { |
|
SUB_MODULE_SENSOR, |
|
SUB_MODULE_CHROMATIX, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
SUB_MODULE_ACTUATOR, |
|
SUB_MODULE_EEPROM, |
|
SUB_MODULE_LED_FLASH, |
|
SUB_MODULE_STROBE_FLASH, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
SUB_MODULE_CSID, |
|
SUB_MODULE_CSID_3D, |
|
SUB_MODULE_CSIPHY, |
|
SUB_MODULE_CSIPHY_3D, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
SUB_MODULE_OIS, |
|
SUB_MODULE_EXT, |
|
SUB_MODULE_IR_LED, |
|
SUB_MODULE_IR_CUT, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
SUB_MODULE_MAX, |
|
}; |
|
enum { |
|
MSM_CAMERA_EFFECT_MODE_OFF, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_EFFECT_MODE_MONO, |
|
MSM_CAMERA_EFFECT_MODE_NEGATIVE, |
|
MSM_CAMERA_EFFECT_MODE_SOLARIZE, |
|
MSM_CAMERA_EFFECT_MODE_SEPIA, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_EFFECT_MODE_POSTERIZE, |
|
MSM_CAMERA_EFFECT_MODE_WHITEBOARD, |
|
MSM_CAMERA_EFFECT_MODE_BLACKBOARD, |
|
MSM_CAMERA_EFFECT_MODE_AQUA, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_EFFECT_MODE_EMBOSS, |
|
MSM_CAMERA_EFFECT_MODE_SKETCH, |
|
MSM_CAMERA_EFFECT_MODE_NEON, |
|
MSM_CAMERA_EFFECT_MODE_MAX |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
enum { |
|
MSM_CAMERA_WB_MODE_AUTO, |
|
MSM_CAMERA_WB_MODE_CUSTOM, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_WB_MODE_INCANDESCENT, |
|
MSM_CAMERA_WB_MODE_FLUORESCENT, |
|
MSM_CAMERA_WB_MODE_WARM_FLUORESCENT, |
|
MSM_CAMERA_WB_MODE_DAYLIGHT, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_WB_MODE_CLOUDY_DAYLIGHT, |
|
MSM_CAMERA_WB_MODE_TWILIGHT, |
|
MSM_CAMERA_WB_MODE_SHADE, |
|
MSM_CAMERA_WB_MODE_OFF, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_WB_MODE_MAX |
|
}; |
|
enum { |
|
MSM_CAMERA_SCENE_MODE_OFF, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_SCENE_MODE_AUTO, |
|
MSM_CAMERA_SCENE_MODE_LANDSCAPE, |
|
MSM_CAMERA_SCENE_MODE_SNOW, |
|
MSM_CAMERA_SCENE_MODE_BEACH, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_SCENE_MODE_SUNSET, |
|
MSM_CAMERA_SCENE_MODE_NIGHT, |
|
MSM_CAMERA_SCENE_MODE_PORTRAIT, |
|
MSM_CAMERA_SCENE_MODE_BACKLIGHT, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_SCENE_MODE_SPORTS, |
|
MSM_CAMERA_SCENE_MODE_ANTISHAKE, |
|
MSM_CAMERA_SCENE_MODE_FLOWERS, |
|
MSM_CAMERA_SCENE_MODE_CANDLELIGHT, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_SCENE_MODE_FIREWORKS, |
|
MSM_CAMERA_SCENE_MODE_PARTY, |
|
MSM_CAMERA_SCENE_MODE_NIGHT_PORTRAIT, |
|
MSM_CAMERA_SCENE_MODE_THEATRE, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_SCENE_MODE_ACTION, |
|
MSM_CAMERA_SCENE_MODE_AR, |
|
MSM_CAMERA_SCENE_MODE_FACE_PRIORITY, |
|
MSM_CAMERA_SCENE_MODE_BARCODE, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_SCENE_MODE_HDR, |
|
MSM_CAMERA_SCENE_MODE_MAX |
|
}; |
|
enum csid_cfg_type_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CSID_INIT, |
|
CSID_CFG, |
|
CSID_TESTMODE_CFG, |
|
CSID_RELEASE, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
enum csiphy_cfg_type_t { |
|
CSIPHY_INIT, |
|
CSIPHY_CFG, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CSIPHY_RELEASE, |
|
}; |
|
enum camera_vreg_type { |
|
VREG_TYPE_DEFAULT, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
VREG_TYPE_CUSTOM, |
|
}; |
|
enum sensor_af_t { |
|
SENSOR_AF_FOCUSSED, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
SENSOR_AF_NOT_FOCUSSED, |
|
}; |
|
enum cci_i2c_master_t { |
|
MASTER_0, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MASTER_1, |
|
MASTER_MAX, |
|
}; |
|
struct msm_camera_i2c_array_write_config { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_camera_i2c_reg_setting conf_array; |
|
uint16_t slave_addr; |
|
}; |
|
struct msm_camera_i2c_read_config { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t slave_addr; |
|
uint16_t reg_addr; |
|
enum msm_camera_i2c_reg_addr_type addr_type; |
|
enum msm_camera_i2c_data_type data_type; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t data; |
|
}; |
|
struct msm_camera_csi2_params { |
|
struct msm_camera_csid_params csid_params; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_camera_csiphy_params csiphy_params; |
|
uint8_t csi_clk_scale_enable; |
|
}; |
|
struct msm_camera_csi_lane_params { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t csi_lane_assign; |
|
uint16_t csi_lane_mask; |
|
}; |
|
struct csi_lane_params_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t csi_lane_assign; |
|
uint8_t csi_lane_mask; |
|
uint8_t csi_if; |
|
int8_t csid_core[2]; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint8_t csi_phy_sel; |
|
}; |
|
struct msm_sensor_info_t { |
|
char sensor_name[MAX_SENSOR_NAME]; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t session_id; |
|
int32_t subdev_id[SUB_MODULE_MAX]; |
|
int32_t subdev_intf[SUB_MODULE_MAX]; |
|
uint8_t is_mount_angle_valid; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t sensor_mount_angle; |
|
int modes_supported; |
|
enum camb_position_t position; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct camera_vreg_t { |
|
const char * reg_name; |
|
int min_voltage; |
|
int max_voltage; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
int op_mode; |
|
uint32_t delay; |
|
const char * custom_vreg_name; |
|
enum camera_vreg_type type; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct sensorb_cfg_data { |
|
int cfgtype; |
|
union { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_sensor_info_t sensor_info; |
|
struct msm_sensor_init_params sensor_init_params; |
|
void * setting; |
|
struct msm_sensor_i2c_sync_params sensor_i2c_sync_params; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
} cfg; |
|
}; |
|
struct csid_cfg_data { |
|
enum csid_cfg_type_t cfgtype; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
union { |
|
uint32_t csid_version; |
|
struct msm_camera_csid_params * csid_params; |
|
struct msm_camera_csid_testmode_parms * csid_testmode_params; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
} cfg; |
|
}; |
|
struct csiphy_cfg_data { |
|
enum csiphy_cfg_type_t cfgtype; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
union { |
|
struct msm_camera_csiphy_params * csiphy_params; |
|
struct msm_camera_csi_lane_params * csi_lane_params; |
|
} cfg; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
enum eeprom_cfg_type_t { |
|
CFG_EEPROM_GET_INFO, |
|
CFG_EEPROM_GET_CAL_DATA, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_EEPROM_READ_CAL_DATA, |
|
CFG_EEPROM_WRITE_DATA, |
|
CFG_EEPROM_GET_MM_INFO, |
|
CFG_EEPROM_INIT, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct eeprom_get_t { |
|
uint32_t num_bytes; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct eeprom_read_t { |
|
uint8_t * dbuffer; |
|
uint32_t num_bytes; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct eeprom_write_t { |
|
uint8_t * dbuffer; |
|
uint32_t num_bytes; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct eeprom_get_cmm_t { |
|
uint32_t cmm_support; |
|
uint32_t cmm_compression; |
|
uint32_t cmm_size; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct msm_eeprom_info_t { |
|
struct msm_sensor_power_setting_array * power_setting_array; |
|
enum i2c_freq_mode_t i2c_freq_mode; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_eeprom_memory_map_array * mem_map_array; |
|
}; |
|
struct msm_ir_led_cfg_data_t { |
|
enum msm_ir_led_cfg_type_t cfg_type; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
int32_t pwm_duty_on_ns; |
|
int32_t pwm_period_ns; |
|
}; |
|
struct msm_ir_cut_cfg_data_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_ir_cut_cfg_type_t cfg_type; |
|
}; |
|
struct msm_eeprom_cfg_data { |
|
enum eeprom_cfg_type_t cfgtype; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint8_t is_supported; |
|
union { |
|
char eeprom_name[MAX_EEPROM_NAME]; |
|
struct eeprom_get_t get_data; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct eeprom_read_t read_data; |
|
struct eeprom_write_t write_data; |
|
struct eeprom_get_cmm_t get_cmm_data; |
|
struct msm_eeprom_info_t eeprom_info; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
} cfg; |
|
}; |
|
enum msm_sensor_cfg_type_t { |
|
CFG_SET_SLAVE_INFO, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_SLAVE_READ_I2C, |
|
CFG_WRITE_I2C_ARRAY, |
|
CFG_SLAVE_WRITE_I2C_ARRAY, |
|
CFG_WRITE_I2C_SEQ_ARRAY, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_POWER_UP, |
|
CFG_POWER_DOWN, |
|
CFG_SET_STOP_STREAM_SETTING, |
|
CFG_GET_SENSOR_INFO, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_GET_SENSOR_INIT_PARAMS, |
|
CFG_SET_INIT_SETTING, |
|
CFG_SET_RESOLUTION, |
|
CFG_SET_STOP_STREAM, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_SET_START_STREAM, |
|
CFG_SET_SATURATION, |
|
CFG_SET_CONTRAST, |
|
CFG_SET_SHARPNESS, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_SET_ISO, |
|
CFG_SET_EXPOSURE_COMPENSATION, |
|
CFG_SET_ANTIBANDING, |
|
CFG_SET_BESTSHOT_MODE, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_SET_EFFECT, |
|
CFG_SET_WHITE_BALANCE, |
|
CFG_SET_AUTOFOCUS, |
|
CFG_CANCEL_AUTOFOCUS, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_SET_STREAM_TYPE, |
|
CFG_SET_I2C_SYNC_PARAM, |
|
CFG_WRITE_I2C_ARRAY_ASYNC, |
|
CFG_WRITE_I2C_ARRAY_SYNC, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_WRITE_I2C_ARRAY_SYNC_BLOCK, |
|
CFG_FW_UPDATE, |
|
CFG_VCM_FW_UPDATE, |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_actuator_cfg_type_t { |
|
CFG_GET_ACTUATOR_INFO, |
|
CFG_SET_ACTUATOR_INFO, |
|
CFG_SET_DEFAULT_FOCUS, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_MOVE_FOCUS, |
|
CFG_SET_POSITION, |
|
CFG_ACTUATOR_POWERDOWN, |
|
CFG_ACTUATOR_POWERUP, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_ACTUATOR_INIT, |
|
}; |
|
struct msm_ois_opcode { |
|
uint32_t prog; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t coeff; |
|
uint32_t pheripheral; |
|
uint32_t memory; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_ois_cfg_type_t { |
|
CFG_OIS_INIT, |
|
CFG_OIS_POWERDOWN, |
|
CFG_OIS_POWERUP, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_OIS_CONTROL, |
|
CFG_OIS_I2C_WRITE_SEQ_TABLE, |
|
CFG_OIS_I2C_READ_SEQ_TABLE, |
|
CFG_OIS_READ_TIMER, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_OIS_READ_TIMER_STOP, |
|
CFG_OIS_GET_GYRO, |
|
}; |
|
enum msm_ois_cfg_download_type_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_OIS_DOWNLOAD, |
|
CFG_OIS_DATA_CONFIG, |
|
}; |
|
enum msm_ois_i2c_operation { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_OIS_WRITE = 0, |
|
MSM_OIS_POLL, |
|
}; |
|
struct reg_settings_ois_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t reg_addr; |
|
enum msm_camera_i2c_reg_addr_type addr_type; |
|
uint32_t reg_data; |
|
enum msm_camera_i2c_data_type data_type; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_ois_i2c_operation i2c_operation; |
|
uint32_t delay; |
|
}; |
|
struct msm_ois_params_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t data_size; |
|
uint16_t setting_size; |
|
uint32_t i2c_addr; |
|
enum i2c_freq_mode_t i2c_freq_mode; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_camera_i2c_reg_addr_type i2c_addr_type; |
|
enum msm_camera_i2c_data_type i2c_data_type; |
|
struct reg_settings_ois_t * settings; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_ois_set_info_t { |
|
struct msm_ois_params_t ois_params; |
|
}; |
|
struct msm_actuator_move_params_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
int8_t dir; |
|
int8_t sign_dir; |
|
int16_t dest_step_pos; |
|
int32_t num_steps; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t curr_lens_pos; |
|
struct damping_params_t * ringing_params; |
|
}; |
|
struct msm_actuator_tuning_params_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
int16_t initial_code; |
|
uint16_t pwd_step; |
|
uint16_t region_size; |
|
uint32_t total_steps; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct region_params_t * region_params; |
|
}; |
|
struct park_lens_data_t { |
|
uint32_t damping_step; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t damping_delay; |
|
uint32_t hw_params; |
|
uint32_t max_step; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_actuator_params_t { |
|
enum actuator_type act_type; |
|
uint8_t reg_tbl_size; |
|
uint16_t data_size; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t init_setting_size; |
|
uint32_t i2c_addr; |
|
enum i2c_freq_mode_t i2c_freq_mode; |
|
enum msm_camera_i2c_reg_addr_type i2c_addr_type; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_camera_i2c_data_type i2c_data_type; |
|
struct msm_actuator_reg_params_t * reg_tbl_params; |
|
struct reg_settings_t * init_settings; |
|
struct park_lens_data_t park_lens; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct msm_actuator_set_info_t { |
|
struct msm_actuator_params_t actuator_params; |
|
struct msm_actuator_tuning_params_t af_tuning_params; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct msm_actuator_get_info_t { |
|
uint32_t focal_length_num; |
|
uint32_t focal_length_den; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t f_number_num; |
|
uint32_t f_number_den; |
|
uint32_t f_pix_num; |
|
uint32_t f_pix_den; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t total_f_dist_num; |
|
uint32_t total_f_dist_den; |
|
uint32_t hor_view_angle_num; |
|
uint32_t hor_view_angle_den; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t ver_view_angle_num; |
|
uint32_t ver_view_angle_den; |
|
}; |
|
enum af_camera_name { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
ACTUATOR_MAIN_CAM_0, |
|
ACTUATOR_MAIN_CAM_1, |
|
ACTUATOR_MAIN_CAM_2, |
|
ACTUATOR_MAIN_CAM_3, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
ACTUATOR_MAIN_CAM_4, |
|
ACTUATOR_MAIN_CAM_5, |
|
ACTUATOR_WEB_CAM_0, |
|
ACTUATOR_WEB_CAM_1, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
ACTUATOR_WEB_CAM_2, |
|
}; |
|
struct msm_ois_slave_info { |
|
char ois_name[MAX_OIS_NAME_SIZE]; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint32_t i2c_addr; |
|
struct msm_ois_opcode opcode; |
|
}; |
|
struct ois_position { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint8_t data0; |
|
uint8_t data1; |
|
uint8_t data2; |
|
uint8_t data3; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint8_t data4; |
|
uint8_t data5; |
|
uint8_t data6; |
|
uint8_t data7; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct msm_ois_readout { |
|
int16_t ois_x_shift; |
|
int16_t ois_y_shift; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
int64_t readout_time; |
|
}; |
|
struct ois_gyro { |
|
uint8_t query_size; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_ois_readout * gyro_data; |
|
}; |
|
struct msm_ois_cfg_data { |
|
int cfgtype; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct ois_position pos; |
|
union { |
|
struct msm_ois_set_info_t set_info; |
|
struct msm_camera_i2c_seq_reg_setting * settings; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct ois_gyro gyro; |
|
} cfg; |
|
}; |
|
struct msm_ois_cfg_download_data { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
int cfgtype; |
|
struct msm_ois_slave_info slave_info; |
|
}; |
|
struct msm_actuator_set_position_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
uint16_t number_of_steps; |
|
uint32_t hw_params; |
|
uint16_t pos[MAX_NUMBER_OF_STEPS]; |
|
uint16_t delay[MAX_NUMBER_OF_STEPS]; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct msm_actuator_cfg_data { |
|
int cfgtype; |
|
uint8_t is_af_supported; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
union { |
|
struct msm_actuator_move_params_t move; |
|
struct msm_actuator_set_info_t set_info; |
|
struct msm_actuator_get_info_t get_info; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_actuator_set_position_t setpos; |
|
enum af_camera_name cam_name; |
|
} cfg; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_camera_led_config_t { |
|
MSM_CAMERA_LED_OFF, |
|
MSM_CAMERA_LED_LOW, |
|
MSM_CAMERA_LED_HIGH, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
MSM_CAMERA_LED_INIT, |
|
MSM_CAMERA_LED_RELEASE, |
|
}; |
|
struct msm_camera_led_cfg_t { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_camera_led_config_t cfgtype; |
|
int32_t torch_current[MAX_LED_TRIGGERS]; |
|
int32_t flash_current[MAX_LED_TRIGGERS]; |
|
int32_t flash_duration[MAX_LED_TRIGGERS]; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct msm_flash_init_info_t { |
|
enum msm_flash_driver_type flash_driver_type; |
|
uint32_t slave_addr; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum i2c_freq_mode_t i2c_freq_mode; |
|
struct msm_sensor_power_setting_array * power_setting_array; |
|
struct msm_camera_i2c_reg_setting_array * settings; |
|
}; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
struct msm_flash_cfg_data_t { |
|
enum msm_flash_cfg_type_t cfg_type; |
|
int32_t flash_current[MAX_LED_TRIGGERS]; |
|
int32_t flash_duration[MAX_LED_TRIGGERS]; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
union { |
|
struct msm_flash_init_info_t * flash_init_info; |
|
struct msm_camera_i2c_reg_setting_array * settings; |
|
} cfg; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
}; |
|
struct msm_flash_query_data_t { |
|
int32_t flags; |
|
int32_t query_type; |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
int32_t max_avail_curr; |
|
}; |
|
enum msm_sensor_init_cfg_type_t { |
|
CFG_SINIT_PROBE, |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
CFG_SINIT_PROBE_DONE, |
|
CFG_SINIT_PROBE_WAIT_DONE, |
|
}; |
|
struct sensor_init_cfg_data { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
enum msm_sensor_init_cfg_type_t cfgtype; |
|
struct msm_sensor_info_t probed_info; |
|
char entity_name[MAX_SENSOR_NAME]; |
|
union { |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
void * setting; |
|
} cfg; |
|
}; |
|
#define VIDIOC_MSM_SENSOR_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 1, struct sensorb_cfg_data) |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define VIDIOC_MSM_SENSOR_RELEASE _IO('V', BASE_VIDIOC_PRIVATE + 2) |
|
#define VIDIOC_MSM_SENSOR_GET_SUBDEV_ID _IOWR('V', BASE_VIDIOC_PRIVATE + 3, uint32_t) |
|
#define VIDIOC_MSM_CSIPHY_IO_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 4, struct csiphy_cfg_data) |
|
#define VIDIOC_MSM_CSID_IO_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 5, struct csid_cfg_data) |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define VIDIOC_MSM_ACTUATOR_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 6, struct msm_actuator_cfg_data) |
|
#define VIDIOC_MSM_FLASH_LED_DATA_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 7, struct msm_camera_led_cfg_t) |
|
#define VIDIOC_MSM_EEPROM_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 8, struct msm_eeprom_cfg_data) |
|
#define VIDIOC_MSM_SENSOR_GET_AF_STATUS _IOWR('V', BASE_VIDIOC_PRIVATE + 9, uint32_t) |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define VIDIOC_MSM_SENSOR_INIT_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 10, struct sensor_init_cfg_data) |
|
#define VIDIOC_MSM_OIS_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 11, struct msm_ois_cfg_data) |
|
#define VIDIOC_MSM_FLASH_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 13, struct msm_flash_cfg_data_t) |
|
#define VIDIOC_MSM_OIS_CFG_DOWNLOAD _IOWR('V', BASE_VIDIOC_PRIVATE + 14, struct msm_ois_cfg_download_data) |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
#define VIDIOC_MSM_FLASH_QUERY_DATA _IOWR('V', BASE_VIDIOC_PRIVATE + 15, struct msm_flash_query_data_t) |
|
#define VIDIOC_MSM_IR_LED_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 15, struct msm_ir_led_cfg_data_t) |
|
#define VIDIOC_MSM_IR_CUT_CFG _IOWR('V', BASE_VIDIOC_PRIVATE + 15, struct msm_ir_cut_cfg_data_t) |
|
#endif |
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
|
|
|
|