2009-09-14 12:42:41 +00:00
|
|
|
/*
|
2010-10-20 09:35:54 +00:00
|
|
|
* tm6000-buf.c - driver for TM5600/TM6000/TM6010 USB video capture devices
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006-2007 Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation version 2
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2009-09-14 12:42:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
|
2008-01-08 14:25:57 +00:00
|
|
|
#define TM6000_URB_MSG_LEN 180
|
|
|
|
|
2009-09-14 12:42:41 +00: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 11:07:20 +00:00
|
|
|
/* Last buffer command and region */
|
|
|
|
u8 cmd;
|
|
|
|
int pos, size, pktsize;
|
2009-09-14 12:42:41 +00:00
|
|
|
|
|
|
|
/* Last field: ODD or EVEN? */
|
2011-05-21 06:05:38 +00:00
|
|
|
int vfield, field;
|
2007-09-19 19:24:05 +00:00
|
|
|
|
2007-09-22 05:06:25 +00:00
|
|
|
/* Stores incomplete commands */
|
2008-04-09 11:07:20 +00:00
|
|
|
u32 tmp_buf;
|
|
|
|
int tmp_buf_len;
|
2007-09-22 05:06:25 +00:00
|
|
|
|
|
|
|
/* Stores already requested buffers */
|
2011-09-23 12:26:22 +00:00
|
|
|
struct tm6000_buffer *buf;
|
2009-09-14 12:42:41 +00:00
|
|
|
};
|