Jignesh Mehta | 4f1b039 | 2012-12-28 02:38:10 -0800 | [diff] [blame] | 1 | #ifndef __MEDIA_MSMB_BUF_MNGR_H__ |
| 2 | #define __MEDIA_MSMB_BUF_MNGR_H__ |
| 3 | |
Jignesh Mehta | 4f1b039 | 2012-12-28 02:38:10 -0800 | [diff] [blame] | 4 | struct msm_buf_mngr_info { |
| 5 | uint32_t session_id; |
| 6 | uint32_t stream_id; |
Jignesh Mehta | 6efc358 | 2013-02-15 17:48:14 -0800 | [diff] [blame] | 7 | uint32_t frame_id; |
Jignesh Mehta | 2d2d2f8 | 2013-02-19 23:49:19 -0800 | [diff] [blame] | 8 | struct timeval timestamp; |
Jignesh Mehta | 4f1b039 | 2012-12-28 02:38:10 -0800 | [diff] [blame] | 9 | uint32_t index; |
| 10 | }; |
| 11 | |
Rajakumar Govindaram | 25e3c84 | 2013-03-20 04:59:00 -0700 | [diff] [blame] | 12 | struct v4l2_subdev *msm_buf_mngr_get_subdev(void); |
Jignesh Mehta | 6efc358 | 2013-02-15 17:48:14 -0800 | [diff] [blame] | 13 | |
| 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 Purushothaman | d64c6f0 | 2013-12-09 11:23:13 -0800 | [diff] [blame] | 23 | #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 Mehta | 4f1b039 | 2012-12-28 02:38:10 -0800 | [diff] [blame] | 29 | #endif |