[PATCH] w1: Make w1 connector notifications depend on connector.
[linux-2.6/verdex.git] / drivers / ieee1394 / ieee1394-ioctl.h
blob156703986348cddade654814eaa4de4ce465bcdb
1 /* Base file for all ieee1394 ioctl's. Linux-1394 has allocated base '#'
2 * with a range of 0x00-0x3f. */
4 #ifndef __IEEE1394_IOCTL_H
5 #define __IEEE1394_IOCTL_H
7 #include <linux/ioctl.h>
8 #include <linux/types.h>
10 /* DV1394 Gets 10 */
12 /* Get the driver ready to transmit video. pass a struct dv1394_init* as
13 * the parameter (see below), or NULL to get default parameters */
14 #define DV1394_IOC_INIT _IOW('#', 0x06, struct dv1394_init)
16 /* Stop transmitting video and free the ringbuffer */
17 #define DV1394_IOC_SHUTDOWN _IO ('#', 0x07)
19 /* Submit N new frames to be transmitted, where the index of the first new
20 * frame is first_clear_buffer, and the index of the last new frame is
21 * (first_clear_buffer + N) % n_frames */
22 #define DV1394_IOC_SUBMIT_FRAMES _IO ('#', 0x08)
24 /* Block until N buffers are clear (pass N as the parameter) Because we
25 * re-transmit the last frame on underrun, there will at most be n_frames
26 * - 1 clear frames at any time */
27 #define DV1394_IOC_WAIT_FRAMES _IO ('#', 0x09)
29 /* Capture new frames that have been received, where the index of the
30 * first new frame is first_clear_buffer, and the index of the last new
31 * frame is (first_clear_buffer + N) % n_frames */
32 #define DV1394_IOC_RECEIVE_FRAMES _IO ('#', 0x0a)
34 /* Tell card to start receiving DMA */
35 #define DV1394_IOC_START_RECEIVE _IO ('#', 0x0b)
37 /* Pass a struct dv1394_status* as the parameter */
38 #define DV1394_IOC_GET_STATUS _IOR('#', 0x0c, struct dv1394_status)
41 /* Video1394 Gets 10 */
43 #define VIDEO1394_IOC_LISTEN_CHANNEL \
44 _IOWR('#', 0x10, struct video1394_mmap)
45 #define VIDEO1394_IOC_UNLISTEN_CHANNEL \
46 _IOW ('#', 0x11, int)
47 #define VIDEO1394_IOC_LISTEN_QUEUE_BUFFER \
48 _IOW ('#', 0x12, struct video1394_wait)
49 #define VIDEO1394_IOC_LISTEN_WAIT_BUFFER \
50 _IOWR('#', 0x13, struct video1394_wait)
51 #define VIDEO1394_IOC_TALK_CHANNEL \
52 _IOWR('#', 0x14, struct video1394_mmap)
53 #define VIDEO1394_IOC_UNTALK_CHANNEL \
54 _IOW ('#', 0x15, int)
56 * This one is broken: it really wanted
57 * "sizeof (struct video1394_wait) + sizeof (struct video1394_queue_variable)"
58 * but got just a "size_t"
60 #define VIDEO1394_IOC_TALK_QUEUE_BUFFER \
61 _IOW ('#', 0x16, size_t)
62 #define VIDEO1394_IOC_TALK_WAIT_BUFFER \
63 _IOW ('#', 0x17, struct video1394_wait)
64 #define VIDEO1394_IOC_LISTEN_POLL_BUFFER \
65 _IOWR('#', 0x18, struct video1394_wait)
68 /* Raw1394's ISO interface */
69 #define RAW1394_IOC_ISO_XMIT_INIT \
70 _IOW ('#', 0x1a, struct raw1394_iso_status)
71 #define RAW1394_IOC_ISO_RECV_INIT \
72 _IOWR('#', 0x1b, struct raw1394_iso_status)
73 #define RAW1394_IOC_ISO_RECV_START \
74 _IOC (_IOC_WRITE, '#', 0x1c, sizeof(int) * 3)
75 #define RAW1394_IOC_ISO_XMIT_START \
76 _IOC (_IOC_WRITE, '#', 0x1d, sizeof(int) * 2)
77 #define RAW1394_IOC_ISO_XMIT_RECV_STOP \
78 _IO ('#', 0x1e)
79 #define RAW1394_IOC_ISO_GET_STATUS \
80 _IOR ('#', 0x1f, struct raw1394_iso_status)
81 #define RAW1394_IOC_ISO_SHUTDOWN \
82 _IO ('#', 0x20)
83 #define RAW1394_IOC_ISO_QUEUE_ACTIVITY \
84 _IO ('#', 0x21)
85 #define RAW1394_IOC_ISO_RECV_LISTEN_CHANNEL \
86 _IOW ('#', 0x22, unsigned char)
87 #define RAW1394_IOC_ISO_RECV_UNLISTEN_CHANNEL \
88 _IOW ('#', 0x23, unsigned char)
89 #define RAW1394_IOC_ISO_RECV_SET_CHANNEL_MASK \
90 _IOW ('#', 0x24, __u64)
91 #define RAW1394_IOC_ISO_RECV_PACKETS \
92 _IOW ('#', 0x25, struct raw1394_iso_packets)
93 #define RAW1394_IOC_ISO_RECV_RELEASE_PACKETS \
94 _IOW ('#', 0x26, unsigned int)
95 #define RAW1394_IOC_ISO_XMIT_PACKETS \
96 _IOW ('#', 0x27, struct raw1394_iso_packets)
97 #define RAW1394_IOC_ISO_XMIT_SYNC \
98 _IO ('#', 0x28)
99 #define RAW1394_IOC_ISO_RECV_FLUSH \
100 _IO ('#', 0x29)
103 #endif /* __IEEE1394_IOCTL_H */