Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ieee1394-ioctl.h

Go to the documentation of this file.
00001 /* Base file for all ieee1394 ioctl's. Linux-1394 has allocated base '#'
00002  * with a range of 0x00-0x3f. */
00003 
00004 #ifndef __IEEE1394_IOCTL_H
00005 #define __IEEE1394_IOCTL_H
00006 
00007 #include <linux/ioctl.h>
00008 #include <linux/types.h>
00009 
00010 
00011 /* AMDTP Gets 6 */
00012 #define AMDTP_IOC_CHANNEL       _IOW('#', 0x00, struct amdtp_ioctl)
00013 #define AMDTP_IOC_PLUG          _IOW('#', 0x01, struct amdtp_ioctl)
00014 #define AMDTP_IOC_PING          _IOW('#', 0x02, struct amdtp_ioctl)
00015 #define AMDTP_IOC_ZAP           _IO ('#', 0x03)
00016 
00017 
00018 /* DV1394 Gets 10 */
00019 
00020 /* Get the driver ready to transmit video.  pass a struct dv1394_init* as
00021  * the parameter (see below), or NULL to get default parameters */
00022 #define DV1394_IOC_INIT                 _IOW('#', 0x06, struct dv1394_init)
00023 
00024 /* Stop transmitting video and free the ringbuffer */
00025 #define DV1394_IOC_SHUTDOWN             _IO ('#', 0x07)
00026 
00027 /* Submit N new frames to be transmitted, where the index of the first new
00028  * frame is first_clear_buffer, and the index of the last new frame is
00029  * (first_clear_buffer + N) % n_frames */
00030 #define DV1394_IOC_SUBMIT_FRAMES        _IO ('#', 0x08)
00031 
00032 /* Block until N buffers are clear (pass N as the parameter) Because we
00033  * re-transmit the last frame on underrun, there will at most be n_frames
00034  * - 1 clear frames at any time */
00035 #define DV1394_IOC_WAIT_FRAMES          _IO ('#', 0x09)
00036 
00037 /* Capture new frames that have been received, where the index of the
00038  * first new frame is first_clear_buffer, and the index of the last new
00039  * frame is (first_clear_buffer + N) % n_frames */
00040 #define DV1394_IOC_RECEIVE_FRAMES       _IO ('#', 0x0a)
00041 
00042 /* Tell card to start receiving DMA */
00043 #define DV1394_IOC_START_RECEIVE        _IO ('#', 0x0b)
00044 
00045 /* Pass a struct dv1394_status* as the parameter */
00046 #define DV1394_IOC_GET_STATUS           _IOR('#', 0x0c, struct dv1394_status)
00047 
00048 
00049 /* Video1394 Gets 10 */
00050 
00051 #define VIDEO1394_IOC_LISTEN_CHANNEL            \
00052         _IOWR('#', 0x10, struct video1394_mmap)
00053 #define VIDEO1394_IOC_UNLISTEN_CHANNEL          \
00054         _IOW ('#', 0x11, int)
00055 #define VIDEO1394_IOC_LISTEN_QUEUE_BUFFER       \
00056         _IOW ('#', 0x12, struct video1394_wait)
00057 #define VIDEO1394_IOC_LISTEN_WAIT_BUFFER        \
00058         _IOWR('#', 0x13, struct video1394_wait)
00059 #define VIDEO1394_IOC_TALK_CHANNEL              \
00060         _IOWR('#', 0x14, struct video1394_mmap)
00061 #define VIDEO1394_IOC_UNTALK_CHANNEL            \
00062         _IOW ('#', 0x15, int)
00063 /*
00064  * This one is broken: it really wanted
00065  * "sizeof (struct video1394_wait) + sizeof (struct video1394_queue_variable)"
00066  * but got just a "size_t"
00067  */
00068 #define VIDEO1394_IOC_TALK_QUEUE_BUFFER         \
00069         _IOW ('#', 0x16, size_t)
00070 #define VIDEO1394_IOC_TALK_WAIT_BUFFER          \
00071         _IOW ('#', 0x17, struct video1394_wait)
00072 #define VIDEO1394_IOC_LISTEN_POLL_BUFFER        \
00073         _IOWR('#', 0x18, struct video1394_wait)
00074 
00075 
00076 /* Raw1394's ISO interface */
00077 #define RAW1394_IOC_ISO_XMIT_INIT               \
00078         _IOW ('#', 0x1a, struct raw1394_iso_status)
00079 #define RAW1394_IOC_ISO_RECV_INIT               \
00080         _IOWR('#', 0x1b, struct raw1394_iso_status)
00081 #define RAW1394_IOC_ISO_RECV_START              \
00082         _IOC (_IOC_WRITE, '#', 0x1c, sizeof(int) * 3)
00083 #define RAW1394_IOC_ISO_XMIT_START              \
00084         _IOC (_IOC_WRITE, '#', 0x1d, sizeof(int) * 2)
00085 #define RAW1394_IOC_ISO_XMIT_RECV_STOP          \
00086         _IO  ('#', 0x1e)
00087 #define RAW1394_IOC_ISO_GET_STATUS              \
00088         _IOR ('#', 0x1f, struct raw1394_iso_status)
00089 #define RAW1394_IOC_ISO_SHUTDOWN                \
00090         _IO  ('#', 0x20)
00091 #define RAW1394_IOC_ISO_QUEUE_ACTIVITY          \
00092         _IO  ('#', 0x21)
00093 #define RAW1394_IOC_ISO_RECV_LISTEN_CHANNEL     \
00094         _IOW ('#', 0x22, unsigned char)
00095 #define RAW1394_IOC_ISO_RECV_UNLISTEN_CHANNEL   \
00096         _IOW ('#', 0x23, unsigned char)
00097 #define RAW1394_IOC_ISO_RECV_SET_CHANNEL_MASK   \
00098         _IOW ('#', 0x24, __u64)
00099 #define RAW1394_IOC_ISO_RECV_PACKETS            \
00100         _IOW ('#', 0x25, struct raw1394_iso_packets)
00101 #define RAW1394_IOC_ISO_RECV_RELEASE_PACKETS    \
00102         _IOW ('#', 0x26, unsigned int)
00103 #define RAW1394_IOC_ISO_XMIT_PACKETS            \
00104         _IOW ('#', 0x27, struct raw1394_iso_packets)
00105 #define RAW1394_IOC_ISO_XMIT_SYNC               \
00106         _IO  ('#', 0x28)
00107 #define RAW1394_IOC_ISO_RECV_FLUSH              \
00108         _IO  ('#', 0x29)
00109 
00110 
00111 #endif /* __IEEE1394_IOCTL_H */

Generated on Sun Jan 8 13:38:56 2006 for Cinelerra-svn by  doxygen 1.4.4