1 /*
2 * video1394.h - driver for OHCI 1394 boards
3 * Copyright (C)1999,2000 Sebastien Rougeaux <sebastien.rougeaux@anu.edu.au>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
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 Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 #ifndef _VIDEO_1394_H
21 #define _VIDEO_1394_H
22
23 #define VIDEO1394_DRIVER_NAME "video1394"
24
25 #define VIDEO1394_MAX_SIZE 0x4000000
26
27 enum {
28 VIDEO1394_BUFFER_FREE = 0,
29 VIDEO1394_BUFFER_QUEUED,
30 VIDEO1394_BUFFER_READY
31 };
32
33 enum {
34 VIDEO1394_LISTEN_CHANNEL = 0,
35 VIDEO1394_UNLISTEN_CHANNEL,
36 VIDEO1394_LISTEN_QUEUE_BUFFER,
37 VIDEO1394_LISTEN_WAIT_BUFFER,
38 VIDEO1394_TALK_CHANNEL,
39 VIDEO1394_UNTALK_CHANNEL,
40 VIDEO1394_TALK_QUEUE_BUFFER,
41 VIDEO1394_TALK_WAIT_BUFFER
42 };
43
44 #define VIDEO1394_SYNC_FRAMES 0x00000001
45 #define VIDEO1394_INCLUDE_ISO_HEADERS 0x00000002
46
47 struct video1394_mmap {
48 int channel;
49 int sync_tag;
50 int nb_buffers;
51 int buf_size;
52 int packet_size;
53 int fps;
54 int flags;
55 };
56
57 struct video1394_wait {
58 int channel;
59 int buffer;
60 };
61
62
63 #endif
64
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.