Linux 4.16.11
[linux/fpc-iii.git] / drivers / media / usb / tm6000 / tm6000-usb-isoc.h
blob5c615b0a7a468e9cd60bfc0aec60b32db8b21b4c
1 /*
2 * SPDX-License-Identifier: GPL-2.0
3 * tm6000-buf.c - driver for TM5600/TM6000/TM6010 USB video capture devices
5 * Copyright (c) 2006-2007 Mauro Carvalho Chehab <mchehab@infradead.org>
6 */
8 #include <linux/videodev2.h>
10 #define TM6000_URB_MSG_LEN 180
12 struct usb_isoc_ctl {
13 /* max packet size of isoc transaction */
14 int max_pkt_size;
16 /* number of allocated urbs */
17 int num_bufs;
19 /* urb for isoc transfers */
20 struct urb **urb;
22 /* transfer buffers for isoc transfer */
23 char **transfer_buffer;
25 /* Last buffer command and region */
26 u8 cmd;
27 int pos, size, pktsize;
29 /* Last field: ODD or EVEN? */
30 int vfield, field;
32 /* Stores incomplete commands */
33 u32 tmp_buf;
34 int tmp_buf_len;
36 /* Stores already requested buffers */
37 struct tm6000_buffer *buf;