aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device-cdev.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-04-30 15:03:14 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-04-30 17:08:13 -0400
commitabaa5743e340c23922d92c9a5a6753ea3ae71e58 (patch)
treec90f0b63edbf99ea6f7bc63d6a15e2c8afe6ae9f /drivers/firewire/fw-device-cdev.h
parent4f2592232ea951e52b2faf1abf519e13856ac6f4 (diff)
firewire: Future proof the iso ioctls by adding a handle for the iso context.
Currently create context always returns 0 and the other iso ioctls will expect user space to pass that in for subsequent ioctls. Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-device-cdev.h')
-rw-r--r--drivers/firewire/fw-device-cdev.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/firewire/fw-device-cdev.h b/drivers/firewire/fw-device-cdev.h
index f2355e034eb4..026c768e3bf1 100644
--- a/drivers/firewire/fw-device-cdev.h
+++ b/drivers/firewire/fw-device-cdev.h
@@ -133,10 +133,10 @@ union fw_cdev_event {
133#define FW_CDEV_IOC_ADD_DESCRIPTOR _IOWR('#', 0x06, struct fw_cdev_add_descriptor) 133#define FW_CDEV_IOC_ADD_DESCRIPTOR _IOWR('#', 0x06, struct fw_cdev_add_descriptor)
134#define FW_CDEV_IOC_REMOVE_DESCRIPTOR _IOW('#', 0x07, struct fw_cdev_remove_descriptor) 134#define FW_CDEV_IOC_REMOVE_DESCRIPTOR _IOW('#', 0x07, struct fw_cdev_remove_descriptor)
135 135
136#define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IOW('#', 0x08, struct fw_cdev_create_iso_context) 136#define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IOWR('#', 0x08, struct fw_cdev_create_iso_context)
137#define FW_CDEV_IOC_QUEUE_ISO _IOWR('#', 0x09, struct fw_cdev_queue_iso) 137#define FW_CDEV_IOC_QUEUE_ISO _IOWR('#', 0x09, struct fw_cdev_queue_iso)
138#define FW_CDEV_IOC_START_ISO _IOW('#', 0x0a, struct fw_cdev_start_iso) 138#define FW_CDEV_IOC_START_ISO _IOW('#', 0x0a, struct fw_cdev_start_iso)
139#define FW_CDEV_IOC_STOP_ISO _IO('#', 0x0b) 139#define FW_CDEV_IOC_STOP_ISO _IOW('#', 0x0b, struct fw_cdev_stop_iso)
140 140
141/* FW_CDEV_VERSION History 141/* FW_CDEV_VERSION History
142 * 142 *
@@ -233,6 +233,8 @@ struct fw_cdev_create_iso_context {
233 __u32 header_size; 233 __u32 header_size;
234 __u32 channel; 234 __u32 channel;
235 __u32 speed; 235 __u32 speed;
236 __u64 closure;
237 __u32 handle;
236}; 238};
237 239
238struct fw_cdev_iso_packet { 240struct fw_cdev_iso_packet {
@@ -249,12 +251,18 @@ struct fw_cdev_queue_iso {
249 __u64 packets; 251 __u64 packets;
250 __u64 data; 252 __u64 data;
251 __u32 size; 253 __u32 size;
254 __u32 handle;
252}; 255};
253 256
254struct fw_cdev_start_iso { 257struct fw_cdev_start_iso {
255 __s32 cycle; 258 __s32 cycle;
256 __u32 sync; 259 __u32 sync;
257 __u32 tags; 260 __u32 tags;
261 __u32 handle;
262};
263
264struct fw_cdev_stop_iso {
265 __u32 handle;
258}; 266};
259 267
260#endif /* __fw_cdev_h */ 268#endif /* __fw_cdev_h */