summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJignesh Mehta <jigneshm@codeaurora.org>2010-07-21 14:13:38 -0700
committerJignesh Mehta <jigneshm@codeaurora.org>2010-08-05 12:15:34 -0700
commite12632cb3fe8aa2eeea75743c968a9cb5cc9ba5c (patch)
tree82612f64f27a13724f6c27a3acbc683f3384a75a
parentac51a6183c4388dab525a5f943fce571ab8bf697 (diff)
downloadbionic-e12632cb3fe8aa2eeea75743c968a9cb5cc9ba5c.zip
bionic-e12632cb3fe8aa2eeea75743c968a9cb5cc9ba5c.tar.gz
bionic-e12632cb3fe8aa2eeea75743c968a9cb5cc9ba5c.tar.bz2
camera: Add VPE driver support
Change-Id: If1a43f878a0fec143ee3d8d8b2c6032999a31bbb
-rw-r--r--libc/kernel/common/media/msm_camera.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/libc/kernel/common/media/msm_camera.h b/libc/kernel/common/media/msm_camera.h
index a7cc621..b1d4b3b 100644
--- a/libc/kernel/common/media/msm_camera.h
+++ b/libc/kernel/common/media/msm_camera.h
@@ -18,7 +18,11 @@
#include <linux/types.h>
#include <asm/sizes.h>
#include <linux/ioctl.h>
+#ifdef MSM_CAMERA_GCC
+#include <time.h>
+#else
#include <linux/time.h>
+#endif
#define MSM_CAM_IOCTL_MAGIC 'm'
@@ -64,6 +68,10 @@
#define MSM_CAM_IOCTL_SENSOR_IO_CFG _IOW(MSM_CAM_IOCTL_MAGIC, 21, struct sensor_cfg_data *)
+#define MSM_CAM_IOCTL_CONFIG_VPE _IOW(MSM_CAM_IOCTL_MAGIC, 27, struct msm_camera_vpe_cfg_cmd *)
+
+#define MSM_CAM_IOCTL_AXI_VPE_CONFIG _IOW(MSM_CAM_IOCTL_MAGIC, 28, struct msm_camera_vpe_cfg_cmd *)
+
#define MSM_CAMERA_LED_OFF 0
#define MSM_CAMERA_LED_LOW 1
#define MSM_CAMERA_LED_HIGH 2
@@ -101,6 +109,15 @@ struct msm_vfe_evt_msg {
unsigned short type;
unsigned short msg_id;
unsigned int len;
+ uint32_t frame_id;
+ void *data;
+};
+
+struct msm_vpe_evt_msg {
+ unsigned short type;
+ unsigned short msg_id;
+ unsigned int len;
+ uint32_t frame_id;
void *data;
};
@@ -174,6 +191,8 @@ struct msm_camera_cfg_cmd {
#define CMD_STATS_IHIST_ENABLE 38
#define CMD_STATS_RS_ENABLE 39
#define CMD_STATS_CS_ENABLE 40
+#define CMD_VPE 41
+#define CMD_AXI_CFG_VPE 42
struct msm_vfe_cfg_cmd {
int cmd_type;
@@ -181,6 +200,12 @@ struct msm_vfe_cfg_cmd {
void *value;
};
+struct msm_vpe_cfg_cmd {
+ int cmd_type;
+ uint16_t length;
+ void *value;
+};
+
#define MAX_CAMERA_ENABLE_NAME_LEN 32
struct camera_enable_cmd {
char name[MAX_CAMERA_ENABLE_NAME_LEN];
@@ -202,7 +227,8 @@ struct camera_enable_cmd {
#define MSM_PMEM_SKIN 13
#define MSM_PMEM_VIDEO 14
#define MSM_PMEM_PREVIEW 15
-#define MSM_PMEM_MAX 16
+#define MSM_PMEM_VIDEO_VPE 16
+#define MSM_PMEM_MAX 17
#define STAT_AEAW 0
#define STAT_AEC 1