Commit 3964a449 authored by Kristian Høgsberg's avatar Kristian Høgsberg Committed by Stefan Richter

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: default avatarKristian Høgsberg <krh@redhat.com>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 66dea3e5
This diff is collapsed.
...@@ -103,7 +103,7 @@ struct fw_cdev_event_request { ...@@ -103,7 +103,7 @@ struct fw_cdev_event_request {
__u32 type; __u32 type;
__u32 tcode; __u32 tcode;
__u64 offset; __u64 offset;
__u32 serial; __u32 handle;
__u32 length; __u32 length;
__u32 data[0]; __u32 data[0];
}; };
...@@ -186,17 +186,18 @@ struct fw_cdev_send_response { ...@@ -186,17 +186,18 @@ struct fw_cdev_send_response {
__u32 rcode; __u32 rcode;
__u32 length; __u32 length;
__u64 data; __u64 data;
__u32 serial; __u32 handle;
}; };
struct fw_cdev_allocate { struct fw_cdev_allocate {
__u64 offset; __u64 offset;
__u64 closure; __u64 closure;
__u32 length; __u32 length;
__u32 handle;
}; };
struct fw_cdev_deallocate { struct fw_cdev_deallocate {
__u64 offset; __u32 handle;
}; };
#define FW_CDEV_LONG_RESET 0 #define FW_CDEV_LONG_RESET 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment