aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device-cdev.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-03-27 01:43:41 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-28 15:30:15 -0400
commit3964a4496eaa4cb84772e8dfc6c3a72ec4ddca7a (patch)
treeadf0102386cc1d55712b41c3df2aefa4bceaba65 /drivers/firewire/fw-device-cdev.h
parent66dea3e5f69abfdfa46b091ea117e497758351e7 (diff)
firewire: Generalize resource tracking for cdev implementation.
Generalize the way we keep track of the various resources and assign a unique handle to each resource. 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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/firewire/fw-device-cdev.h b/drivers/firewire/fw-device-cdev.h
index 62f5f66ca10..a6340bf306f 100644
--- a/drivers/firewire/fw-device-cdev.h
+++ b/drivers/firewire/fw-device-cdev.h
@@ -103,7 +103,7 @@ struct fw_cdev_event_request {
103 __u32 type; 103 __u32 type;
104 __u32 tcode; 104 __u32 tcode;
105 __u64 offset; 105 __u64 offset;
106 __u32 serial; 106 __u32 handle;
107 __u32 length; 107 __u32 length;
108 __u32 data[0]; 108 __u32 data[0];
109}; 109};
@@ -186,17 +186,18 @@ struct fw_cdev_send_response {
186 __u32 rcode; 186 __u32 rcode;
187 __u32 length; 187 __u32 length;
188 __u64 data; 188 __u64 data;
189 __u32 serial; 189 __u32 handle;
190}; 190};
191 191
192struct fw_cdev_allocate { 192struct fw_cdev_allocate {
193 __u64 offset; 193 __u64 offset;
194 __u64 closure; 194 __u64 closure;
195 __u32 length; 195 __u32 length;
196 __u32 handle;
196}; 197};
197 198
198struct fw_cdev_deallocate { 199struct fw_cdev_deallocate {
199 __u64 offset; 200 __u32 handle;
200}; 201};
201 202
202#define FW_CDEV_LONG_RESET 0 203#define FW_CDEV_LONG_RESET 0