2019-09-16 23:09:00 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2017-12-19 04:15:53 +08:00
|
|
|
/*
|
|
|
|
* tm6000-buf.c - driver for TM5600/TM6000/TM6010 USB video capture devices
|
|
|
|
*
|
MAINTAINERS & files: Canonize the e-mails I use at files
From now on, I'll start using my @kernel.org as my development e-mail.
As such, let's remove the entries that point to the old
mchehab@s-opensource.com at MAINTAINERS file.
For the files written with a copyright with mchehab@s-opensource,
let's keep Samsung on their names, using mchehab+samsung@kernel.org,
in order to keep pointing to my employer, with sponsors the work.
For the files written before I join Samsung (on July, 4 2013),
let's just use mchehab@kernel.org.
For bug reports, we can simply point to just kernel.org, as
this will reach my mchehab+samsung inbox anyway.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Brian Warner <brian.warner@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-04-25 17:34:48 +08:00
|
|
|
* Copyright (c) 2006-2007 Mauro Carvalho Chehab <mchehab@kernel.org>
|
2017-12-19 04:15:53 +08:00
|
|
|
*/
|
2009-09-14 20:42:41 +08:00
|
|
|
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
|
2008-01-08 22:25:57 +08:00
|
|
|
#define TM6000_URB_MSG_LEN 180
|
|
|
|
|
2009-09-14 20:42:41 +08:00
|
|
|
struct usb_isoc_ctl {
|
|
|
|
/* max packet size of isoc transaction */
|
|
|
|
int max_pkt_size;
|
|
|
|
|
|
|
|
/* number of allocated urbs */
|
|
|
|
int num_bufs;
|
|
|
|
|
|
|
|
/* urb for isoc transfers */
|
|
|
|
struct urb **urb;
|
|
|
|
|
|
|
|
/* transfer buffers for isoc transfer */
|
|
|
|
char **transfer_buffer;
|
|
|
|
|
2008-04-09 19:07:20 +08:00
|
|
|
/* Last buffer command and region */
|
|
|
|
u8 cmd;
|
|
|
|
int pos, size, pktsize;
|
2009-09-14 20:42:41 +08:00
|
|
|
|
|
|
|
/* Last field: ODD or EVEN? */
|
2011-05-21 14:05:38 +08:00
|
|
|
int vfield, field;
|
2007-09-20 03:24:05 +08:00
|
|
|
|
2007-09-22 13:06:25 +08:00
|
|
|
/* Stores incomplete commands */
|
2008-04-09 19:07:20 +08:00
|
|
|
u32 tmp_buf;
|
|
|
|
int tmp_buf_len;
|
2007-09-22 13:06:25 +08:00
|
|
|
|
|
|
|
/* Stores already requested buffers */
|
2011-09-23 20:26:22 +08:00
|
|
|
struct tm6000_buffer *buf;
|
2009-09-14 20:42:41 +08:00
|
|
|
};
|