blob: 237380f9e048b101c15c0beaf6dc0760fe389422 [file] [log] [blame]
Jignesh Mehta4f1b0392012-12-28 02:38:10 -08001#ifndef __MEDIA_MSMB_BUF_MNGR_H__
2#define __MEDIA_MSMB_BUF_MNGR_H__
3
Jignesh Mehta4f1b0392012-12-28 02:38:10 -08004struct msm_buf_mngr_info {
5 uint32_t session_id;
6 uint32_t stream_id;
Jignesh Mehta6efc3582013-02-15 17:48:14 -08007 uint32_t frame_id;
Jignesh Mehta2d2d2f82013-02-19 23:49:19 -08008 struct timeval timestamp;
Jignesh Mehta4f1b0392012-12-28 02:38:10 -08009 uint32_t index;
10};
11
Rajakumar Govindaram25e3c842013-03-20 04:59:00 -070012struct v4l2_subdev *msm_buf_mngr_get_subdev(void);
Jignesh Mehta6efc3582013-02-15 17:48:14 -080013
14#define VIDIOC_MSM_BUF_MNGR_GET_BUF \
15 _IOWR('V', BASE_VIDIOC_PRIVATE + 33, struct msm_buf_mngr_info)
16
17#define VIDIOC_MSM_BUF_MNGR_PUT_BUF \
18 _IOWR('V', BASE_VIDIOC_PRIVATE + 34, struct msm_buf_mngr_info)
19
20#define VIDIOC_MSM_BUF_MNGR_BUF_DONE \
21 _IOWR('V', BASE_VIDIOC_PRIVATE + 35, struct msm_buf_mngr_info)
22
Hariram Purushothamand64c6f02013-12-09 11:23:13 -080023#define VIDIOC_MSM_BUF_MNGR_INIT \
24 _IOWR('V', BASE_VIDIOC_PRIVATE + 36, struct msm_buf_mngr_info)
25
26#define VIDIOC_MSM_BUF_MNGR_DEINIT \
27 _IOWR('V', BASE_VIDIOC_PRIVATE + 37, struct msm_buf_mngr_info)
28
Jignesh Mehta4f1b0392012-12-28 02:38:10 -080029#endif