diff options
Diffstat (limited to 'include/linux/usbdevice_fs.h')
-rw-r--r-- | include/linux/usbdevice_fs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/usbdevice_fs.h b/include/linux/usbdevice_fs.h index 3b74666be027..4abe28e41cbc 100644 --- a/include/linux/usbdevice_fs.h +++ b/include/linux/usbdevice_fs.h | |||
@@ -131,6 +131,19 @@ struct usbdevfs_hub_portinfo { | |||
131 | #define USBDEVFS_CAP_NO_PACKET_SIZE_LIM 0x04 | 131 | #define USBDEVFS_CAP_NO_PACKET_SIZE_LIM 0x04 |
132 | #define USBDEVFS_CAP_BULK_SCATTER_GATHER 0x08 | 132 | #define USBDEVFS_CAP_BULK_SCATTER_GATHER 0x08 |
133 | 133 | ||
134 | /* USBDEVFS_DISCONNECT_CLAIM flags & struct */ | ||
135 | |||
136 | /* disconnect-and-claim if the driver matches the driver field */ | ||
137 | #define USBDEVFS_DISCONNECT_CLAIM_IF_DRIVER 0x01 | ||
138 | /* disconnect-and-claim except when the driver matches the driver field */ | ||
139 | #define USBDEVFS_DISCONNECT_CLAIM_EXCEPT_DRIVER 0x02 | ||
140 | |||
141 | struct usbdevfs_disconnect_claim { | ||
142 | unsigned int interface; | ||
143 | unsigned int flags; | ||
144 | char driver[USBDEVFS_MAXDRIVERNAME + 1]; | ||
145 | }; | ||
146 | |||
134 | #ifdef __KERNEL__ | 147 | #ifdef __KERNEL__ |
135 | #ifdef CONFIG_COMPAT | 148 | #ifdef CONFIG_COMPAT |
136 | #include <linux/compat.h> | 149 | #include <linux/compat.h> |
@@ -211,5 +224,6 @@ struct usbdevfs_ioctl32 { | |||
211 | #define USBDEVFS_CLAIM_PORT _IOR('U', 24, unsigned int) | 224 | #define USBDEVFS_CLAIM_PORT _IOR('U', 24, unsigned int) |
212 | #define USBDEVFS_RELEASE_PORT _IOR('U', 25, unsigned int) | 225 | #define USBDEVFS_RELEASE_PORT _IOR('U', 25, unsigned int) |
213 | #define USBDEVFS_GET_CAPABILITIES _IOR('U', 26, __u32) | 226 | #define USBDEVFS_GET_CAPABILITIES _IOR('U', 26, __u32) |
227 | #define USBDEVFS_DISCONNECT_CLAIM _IOR('U', 27, struct usbdevfs_disconnect_claim) | ||
214 | 228 | ||
215 | #endif /* _LINUX_USBDEVICE_FS_H */ | 229 | #endif /* _LINUX_USBDEVICE_FS_H */ |