Debian Codegraph @

cvd_src/Linux/kernel-video1394.h

raw symbols SCIP
1 #ifndef CVD_KERNEL_VIDEO1394_H
2 #define CVD_KERNEL_VIDEO1394_H
3
4 //Header file which contains stuff which is 100% compatible with
5 //drivers/ieee1394/video1394.h
6 //without including any GPL code.
7
8 #include <sys/ioctl.h>
9 #include <sys/time.h>
10
11 #define SYNC_FRAMES 1
12
13 struct cvd_video1394_mmap
14 {
15 int channel_number;
16 unsigned int syncronization_tag;
17 unsigned int num_buffers;
18 unsigned int buffer_size;
19 unsigned int size_of_packet;
20 unsigned int frames_per_second;
21 unsigned int syt_time_offset;
22 unsigned int capture_flags;
23 };
24
25 struct cvd_video1394_wait
26 {
27 unsigned int channel_number;
28 unsigned int buffer;
29 struct timeval time; //Buffer filled up at this time
30 };
31
32 //Define the ioctls
33
34 #if(((CVD_KERNEL_MAJOR == 2) && (CVD_KERNEL_MINOR == 6)) || (CVD_KERNEL_MAJOR >= 3))
35 #define LISTEN_CHANNEL _IOWR('#', 0x10, struct cvd_video1394_mmap)
36 #define UNLISTEN_CHANNEL _IOW('#', 0x11, int)
37 #define LISTEN_QUEUE_BUFFER _IOW('#', 0x12, struct cvd_video1394_wait)
38 #define LISTEN_WAIT_BUFFER _IOWR('#', 0x13, struct cvd_video1394_wait)
39 #define LISTEN_POLL_BUFFER _IOWR('#', 0x18, struct cvd_video1394_wait)
40 #elif((CVD_KERNEL_MAJOR == 2) && (CVD_KERNEL_MINOR == 4))
41 #define LISTEN_CHANNEL 0
42 #define UNLISTEN_CHANNEL 1
43 #define LISTEN_QUEUE_BUFFER 2
44 #define LISTEN_WAIT_BUFFER 3
45 #define LISTEN_POLL_BUFFER 8
46 #else
47 #define UNKNOWN_KERNEL
48 #endif
49
50 #endif