video1394.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * video1394.h - driver for OHCI 1394 boards
  3. * Copyright (C)1999,2000 Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au>
  4. * Peter Schlaile <udbz@rz.uni-karlsruhe.de>
  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; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19. */
  20. #ifndef _VIDEO_1394_H
  21. #define _VIDEO_1394_H
  22. #include "ieee1394-ioctl.h"
  23. #define VIDEO1394_DRIVER_NAME "video1394"
  24. #define VIDEO1394_MAX_SIZE 0x4000000
  25. enum {
  26. VIDEO1394_BUFFER_FREE = 0,
  27. VIDEO1394_BUFFER_QUEUED,
  28. VIDEO1394_BUFFER_READY
  29. };
  30. #define VIDEO1394_SYNC_FRAMES 0x00000001
  31. #define VIDEO1394_INCLUDE_ISO_HEADERS 0x00000002
  32. #define VIDEO1394_VARIABLE_PACKET_SIZE 0x00000004
  33. struct video1394_mmap {
  34. int channel; /* -1 to find an open channel in LISTEN/TALK */
  35. unsigned int sync_tag;
  36. unsigned int nb_buffers;
  37. unsigned int buf_size;
  38. unsigned int packet_size; /* For VARIABLE_PACKET_SIZE:
  39. Maximum packet size */
  40. unsigned int fps;
  41. unsigned int syt_offset;
  42. unsigned int flags;
  43. };
  44. /* For TALK_QUEUE_BUFFER with VIDEO1394_VARIABLE_PACKET_SIZE use */
  45. struct video1394_queue_variable {
  46. unsigned int channel;
  47. unsigned int buffer;
  48. unsigned int __user * packet_sizes; /* Buffer of size:
  49. buf_size / packet_size */
  50. };
  51. struct video1394_wait {
  52. unsigned int channel;
  53. unsigned int buffer;
  54. struct timeval filltime; /* time of buffer full */
  55. };
  56. #endif