vendor/mediatek/PRoprietary/hardware/mtkcam/legacy/platform/mt6735m/core/drv/isp/isp_drv.cpp
通过Ioctl 控制到kernel-3.18/drivers/misc/mediatek/cameraisp/src/mt6735/camera_isp_D2.c
#define ISP_RESET _IO(ISP_MAGIC, ISP_CMD_RESET)#define ISP_RESET_BUF _IO(ISP_MAGIC, ISP_CMD_RESET_BUF)#define ISP_READ_REGISTER _IOWR(ISP_MAGIC, ISP_CMD_READ_REG, ISP_REG_IO_STRUCT)#define ISP_WRITE_REGISTER _IOWR(ISP_MAGIC, ISP_CMD_WRITE_REG, ISP_REG_IO_STRUCT)#define ISP_HOLD_REG_TIME _IOW(ISP_MAGIC, ISP_CMD_HOLD_TIME, ISP_HOLD_TIME_ENUM)#define ISP_HOLD_REG _IOW(ISP_MAGIC, ISP_CMD_HOLD_REG, bool)#define ISP_WAIT_IRQ _IOW(ISP_MAGIC, ISP_CMD_WAIT_IRQ, ISP_WAIT_IRQ_STRUCT)#define ISP_READ_IRQ _IOR(ISP_MAGIC, ISP_CMD_READ_IRQ, ISP_READ_IRQ_STRUCT)#define ISP_CLEAR_IRQ _IOW(ISP_MAGIC, ISP_CMD_CLEAR_IRQ, ISP_CLEAR_IRQ_STRUCT)#define ISP_DUMP_REG _IO(ISP_MAGIC, ISP_CMD_DUMP_REG)#define ISP_SET_USER_PID _IOW(ISP_MAGIC, ISP_CMD_SET_USER_PID, unsigned long)#define ISP_BUFFER_CTRL _IOWR(ISP_MAGIC, ISP_CMD_RT_BUF_CTRL, ISP_BUFFER_CTRL_STRUCT)#define ISP_REF_CNT_CTRL _IOWR(ISP_MAGIC, ISP_CMD_REF_CNT, ISP_REF_CNT_CTRL_STRUCT)#define ISP_DEBUG_FLAG _IOW(ISP_MAGIC, ISP_CMD_DEBUG_FLAG, unsigned long)#define ISP_WAKELOCK_CTRL _IOWR(ISP_MAGIC, ISP_CMD_WAKELOCK_CTRL, unsigned long)#define ISP_SENSOR_FREQ_CTRL _IOW(ISP_MAGIC, ISP_CMD_SENSOR_FREQ_CTRL, unsigned long)
新闻热点
疑难解答