mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 06:55:07 +07:00
75d1e3ef9f
As we're now using SPDX identifiers, on several media drivers I wrote, add the proper SPDX, identifying the license I meant. As we're now using the short license, it doesn't make sense to keep the original license text. Also, fix MODULE_LICENSE to properly identify GPL v2. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
37 lines
801 B
C
37 lines
801 B
C
// 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>
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
#define TM6000_URB_MSG_LEN 180
|
|
|
|
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;
|
|
|
|
/* Last buffer command and region */
|
|
u8 cmd;
|
|
int pos, size, pktsize;
|
|
|
|
/* Last field: ODD or EVEN? */
|
|
int vfield, field;
|
|
|
|
/* Stores incomplete commands */
|
|
u32 tmp_buf;
|
|
int tmp_buf_len;
|
|
|
|
/* Stores already requested buffers */
|
|
struct tm6000_buffer *buf;
|
|
};
|