diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-03-07 12:12:41 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:03:08 -0500 |
commit | 97bd9efa5a4d8a70b3bafe0d1e3e1a814fdac5bc (patch) | |
tree | 7f405323e9b6ccd690b7673cc4495d35e5926a06 /drivers/firewire/fw-device-cdev.h | |
parent | 1da0c93b31bb8f374a22f4e20dab02fd79f6c7e6 (diff) |
firewire: Add a bus reset event type for fw-device-cdev.
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.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/firewire/fw-device-cdev.h b/drivers/firewire/fw-device-cdev.h index 739f54fe08cf..4f94471b8078 100644 --- a/drivers/firewire/fw-device-cdev.h +++ b/drivers/firewire/fw-device-cdev.h | |||
@@ -58,15 +58,26 @@ | |||
58 | #define SCODE_1600 0x4 | 58 | #define SCODE_1600 0x4 |
59 | #define SCODE_3200 0x5 | 59 | #define SCODE_3200 0x5 |
60 | 60 | ||
61 | #define FW_CDEV_EVENT_RESPONSE 0x00 | 61 | #define FW_CDEV_EVENT_BUS_RESET 0x00 |
62 | #define FW_CDEV_EVENT_REQUEST 0x01 | 62 | #define FW_CDEV_EVENT_RESPONSE 0x01 |
63 | #define FW_CDEV_EVENT_ISO_INTERRUPT 0x02 | 63 | #define FW_CDEV_EVENT_REQUEST 0x02 |
64 | #define FW_CDEV_EVENT_ISO_INTERRUPT 0x03 | ||
64 | 65 | ||
65 | /* The 'closure' fields are for user space to use. Data passed in the | 66 | /* The 'closure' fields are for user space to use. Data passed in the |
66 | * 'closure' field for a request will be returned in the corresponding | 67 | * 'closure' field for a request will be returned in the corresponding |
67 | * event. It's a 64-bit type so that it's a fixed size type big | 68 | * event. It's a 64-bit type so that it's a fixed size type big |
68 | * enough to hold a pointer on all platforms. */ | 69 | * enough to hold a pointer on all platforms. */ |
69 | 70 | ||
71 | struct fw_cdev_event_bus_reset { | ||
72 | __u32 type; | ||
73 | __u32 node_id; | ||
74 | __u32 local_node_id; | ||
75 | __u32 bm_node_id; | ||
76 | __u32 irm_node_id; | ||
77 | __u32 root_node_id; | ||
78 | __u32 generation; | ||
79 | }; | ||
80 | |||
70 | struct fw_cdev_event_response { | 81 | struct fw_cdev_event_response { |
71 | __u32 type; | 82 | __u32 type; |
72 | __u32 rcode; | 83 | __u32 rcode; |