diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-04-30 15:03:13 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-04-30 17:08:13 -0400 |
commit | 4f2592232ea951e52b2faf1abf519e13856ac6f4 (patch) | |
tree | 89553fc3f0f648cea71d7c4406b86a7658c30703 /drivers/firewire/fw-device-cdev.h | |
parent | 0b6aa3d0537104e86d80cde66192a0aa569e0bf4 (diff) |
firewire: Add read/write and size annotations to IOC numbers.
Also, with this change, refactor ioctl dispatch code to do the
copying from and to user space as indicated by the IOC annotations.
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 | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/firewire/fw-device-cdev.h b/drivers/firewire/fw-device-cdev.h index a6340bf306fb..f2355e034eb4 100644 --- a/drivers/firewire/fw-device-cdev.h +++ b/drivers/firewire/fw-device-cdev.h | |||
@@ -124,18 +124,18 @@ union fw_cdev_event { | |||
124 | struct fw_cdev_event_iso_interrupt iso_interrupt; | 124 | struct fw_cdev_event_iso_interrupt iso_interrupt; |
125 | }; | 125 | }; |
126 | 126 | ||
127 | #define FW_CDEV_IOC_GET_INFO _IO('#', 0x00) | 127 | #define FW_CDEV_IOC_GET_INFO _IOWR('#', 0x00, struct fw_cdev_get_info) |
128 | #define FW_CDEV_IOC_SEND_REQUEST _IO('#', 0x01) | 128 | #define FW_CDEV_IOC_SEND_REQUEST _IOW('#', 0x01, struct fw_cdev_send_request) |
129 | #define FW_CDEV_IOC_ALLOCATE _IO('#', 0x02) | 129 | #define FW_CDEV_IOC_ALLOCATE _IOWR('#', 0x02, struct fw_cdev_allocate) |
130 | #define FW_CDEV_IOC_DEALLOCATE _IO('#', 0x03) | 130 | #define FW_CDEV_IOC_DEALLOCATE _IOW('#', 0x03, struct fw_cdev_deallocate) |
131 | #define FW_CDEV_IOC_SEND_RESPONSE _IO('#', 0x04) | 131 | #define FW_CDEV_IOC_SEND_RESPONSE _IOW('#', 0x04, struct fw_cdev_send_response) |
132 | #define FW_CDEV_IOC_INITIATE_BUS_RESET _IO('#', 0x05) | 132 | #define FW_CDEV_IOC_INITIATE_BUS_RESET _IOW('#', 0x05, struct fw_cdev_initiate_bus_reset) |
133 | #define FW_CDEV_IOC_ADD_DESCRIPTOR _IO('#', 0x06) | 133 | #define FW_CDEV_IOC_ADD_DESCRIPTOR _IOWR('#', 0x06, struct fw_cdev_add_descriptor) |
134 | #define FW_CDEV_IOC_REMOVE_DESCRIPTOR _IO('#', 0x07) | 134 | #define FW_CDEV_IOC_REMOVE_DESCRIPTOR _IOW('#', 0x07, struct fw_cdev_remove_descriptor) |
135 | 135 | ||
136 | #define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IO('#', 0x08) | 136 | #define FW_CDEV_IOC_CREATE_ISO_CONTEXT _IOW('#', 0x08, struct fw_cdev_create_iso_context) |
137 | #define FW_CDEV_IOC_QUEUE_ISO _IO('#', 0x09) | 137 | #define FW_CDEV_IOC_QUEUE_ISO _IOWR('#', 0x09, struct fw_cdev_queue_iso) |
138 | #define FW_CDEV_IOC_START_ISO _IO('#', 0x0a) | 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 _IO('#', 0x0b) |
140 | 140 | ||
141 | /* FW_CDEV_VERSION History | 141 | /* FW_CDEV_VERSION History |