• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * tm6000-buf.c - driver for TM5600/TM6000/TM6010 USB video capture devices
4  *
5  * Copyright (c) 2006-2007 Mauro Carvalho Chehab <mchehab@kernel.org>
6  */
7 
8 #include <linux/videodev2.h>
9 
10 #define TM6000_URB_MSG_LEN 180
11 
12 struct usb_isoc_ctl {
13 		/* max packet size of isoc transaction */
14 	int				max_pkt_size;
15 
16 		/* number of allocated urbs */
17 	int				num_bufs;
18 
19 		/* urb for isoc transfers */
20 	struct urb			**urb;
21 
22 		/* transfer buffers for isoc transfer */
23 	char				**transfer_buffer;
24 
25 		/* Last buffer command and region */
26 	u8				cmd;
27 	int				pos, size, pktsize;
28 
29 		/* Last field: ODD or EVEN? */
30 	int				vfield, field;
31 
32 		/* Stores incomplete commands */
33 	u32				tmp_buf;
34 	int				tmp_buf_len;
35 
36 		/* Stores already requested buffers */
37 	struct tm6000_buffer		*buf;
38 };
39