Home | History | Annotate | Download | only in media
      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 __UAPI_MEDIA_MSMB_BUF_MNGR_H__
     20 #define __UAPI_MEDIA_MSMB_BUF_MNGR_H__
     21 #include <media/msmb_camera.h>
     22 enum msm_camera_buf_mngr_cmd {
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24   MSM_CAMERA_BUF_MNGR_CONT_MAP,
     25   MSM_CAMERA_BUF_MNGR_CONT_UNMAP,
     26   MSM_CAMERA_BUF_MNGR_CONT_MAX,
     27 };
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 enum msm_camera_buf_mngr_buf_type {
     30   MSM_CAMERA_BUF_MNGR_BUF_PLANAR,
     31   MSM_CAMERA_BUF_MNGR_BUF_USER,
     32   MSM_CAMERA_BUF_MNGR_BUF_INVALID,
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 };
     35 struct msm_buf_mngr_info {
     36   uint32_t session_id;
     37   uint32_t stream_id;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39   uint32_t frame_id;
     40   uint32_t flags;
     41   struct timeval timestamp;
     42   uint32_t index;
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44   uint32_t reserved;
     45   enum msm_camera_buf_mngr_buf_type type;
     46   struct msm_camera_user_buf_cont_t user_buf;
     47 };
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 struct msm_buf_mngr_main_cont_info {
     50   uint32_t session_id;
     51   uint32_t stream_id;
     52   enum msm_camera_buf_mngr_cmd cmd;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54   uint32_t cnt;
     55   int32_t cont_fd;
     56 };
     57 struct v4l2_subdev * msm_buf_mngr_get_subdev(void);
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define VIDIOC_MSM_BUF_MNGR_GET_BUF _IOWR('V', BASE_VIDIOC_PRIVATE + 33, struct msm_buf_mngr_info)
     60 #define VIDIOC_MSM_BUF_MNGR_PUT_BUF _IOWR('V', BASE_VIDIOC_PRIVATE + 34, struct msm_buf_mngr_info)
     61 #define VIDIOC_MSM_BUF_MNGR_BUF_DONE _IOWR('V', BASE_VIDIOC_PRIVATE + 35, struct msm_buf_mngr_info)
     62 #define VIDIOC_MSM_BUF_MNGR_CONT_CMD _IOWR('V', BASE_VIDIOC_PRIVATE + 36, struct msm_buf_mngr_main_cont_info)
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define VIDIOC_MSM_BUF_MNGR_INIT _IOWR('V', BASE_VIDIOC_PRIVATE + 37, struct msm_buf_mngr_info)
     65 #define VIDIOC_MSM_BUF_MNGR_DEINIT _IOWR('V', BASE_VIDIOC_PRIVATE + 38, struct msm_buf_mngr_info)
     66 #endif
     67 
     68