• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 *
3 * SPDX-License-Identifier: GPL-2.0
4 *
5 * Copyright (C) 2011-2018 ARM or its affiliates
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 *
18 */
19 
20 #ifndef _ISP_VB2_H_
21 #define _ISP_VB2_H_
22 
23 #include <linux/videodev2.h>
24 #include <media/videobuf2-core.h>
25 
26 #include <linux/version.h>
27 #if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0))
28 #include <linux/meson_ion.h>
29 #endif
30 
31 #include "isp-v4l2-stream.h"
32 #include "isp-vb2-cmalloc.h"
33 
34 /* VB2 control interfaces */
35 int isp_vb2_queue_init( struct vb2_queue *q, struct mutex *mlock, isp_v4l2_stream_t *pstream, struct device *dev );
36 void isp_vb2_queue_release( struct vb2_queue *q, isp_v4l2_stream_t *pstream );
37 
38 #endif
39