tm6000-usb-isoc.h 808 字节
Newer Older
1 2 3 4 5 6
/*
 * SPDX-License-Identifier: GPL-2.0
 * tm6000-buf.c - driver for TM5600/TM6000/TM6010 USB video capture devices
 *
 * Copyright (c) 2006-2007 Mauro Carvalho Chehab <mchehab@infradead.org>
 */
7 8 9

#include <linux/videodev2.h>

10 11
#define TM6000_URB_MSG_LEN 180

12 13 14 15 16 17 18 19 20 21 22 23 24
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;

25 26 27
		/* Last buffer command and region */
	u8				cmd;
	int				pos, size, pktsize;
28 29

		/* Last field: ODD or EVEN? */
30
	int				vfield, field;
31

32
		/* Stores incomplete commands */
33 34
	u32				tmp_buf;
	int				tmp_buf_len;
35 36

		/* Stores already requested buffers */
37
	struct tm6000_buffer		*buf;
38
};