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