tm6000-usb-isoc.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * tm6000-buf.c - driver for TM5600/TM6000/TM6010 USB video capture devices
  3. *
  4. * Copyright (C) 2006-2007 Mauro Carvalho Chehab <mchehab@infradead.org>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation version 2
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19. #include <linux/videodev2.h>
  20. #define TM6000_URB_MSG_LEN 180
  21. struct usb_isoc_ctl {
  22. /* max packet size of isoc transaction */
  23. int max_pkt_size;
  24. /* number of allocated urbs */
  25. int num_bufs;
  26. /* urb for isoc transfers */
  27. struct urb **urb;
  28. /* transfer buffers for isoc transfer */
  29. char **transfer_buffer;
  30. /* Last buffer command and region */
  31. u8 cmd;
  32. int pos, size, pktsize;
  33. /* Last field: ODD or EVEN? */
  34. int vfield, field;
  35. /* Stores incomplete commands */
  36. u32 tmp_buf;
  37. int tmp_buf_len;
  38. /* Stores already requested buffers */
  39. struct tm6000_buffer *buf;
  40. };