00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CVD_KERNEL_VIDEO1394_H
00022 #define CVD_KERNEL_VIDEO1394_H
00023
00024
00025
00026
00027
00028
00029 #include <sys/ioctl.h>
00030 #include <sys/time.h>
00031
00032 #define SYNC_FRAMES 1
00033
00034 struct cvd_video1394_mmap
00035 {
00036 int channel_number;
00037 unsigned int syncronization_tag;
00038 unsigned int num_buffers;
00039 unsigned int buffer_size;
00040 unsigned int size_of_packet;
00041 unsigned int frames_per_second;
00042 unsigned int syt_time_offset;
00043 unsigned int capture_flags;
00044 };
00045
00046 struct cvd_video1394_wait
00047 {
00048 unsigned int channel_number;
00049 unsigned int buffer;
00050 struct timeval time;
00051 };
00052
00053
00054
00055
00056 #if CVD_KERNEL_MAJOR==2
00057 #if CVD_KERNEL_MINOR==6
00058 #define LISTEN_CHANNEL _IOWR('#', 0x10, struct cvd_video1394_mmap)
00059 #define UNLISTEN_CHANNEL _IOW ('#', 0x11, int)
00060 #define LISTEN_QUEUE_BUFFER _IOW ('#', 0x12, struct cvd_video1394_wait)
00061 #define LISTEN_WAIT_BUFFER _IOWR('#', 0x13, struct cvd_video1394_wait)
00062 #define LISTEN_POLL_BUFFER _IOWR('#', 0x18, struct cvd_video1394_wait)
00063 #elif CVD_KERNEL_MINOR==4
00064 #define LISTEN_CHANNEL 0
00065 #define UNLISTEN_CHANNEL 1
00066 #define LISTEN_QUEUE_BUFFER 2
00067 #define LISTEN_WAIT_BUFFER 3
00068 #define LISTEN_POLL_BUFFER 8
00069 #else
00070 #define UNKNOWN_KERNEL
00071 #endif
00072 #else
00073 #define UNKNOWN_KERNEL
00074 #endif
00075
00076 #endif