diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-02-14 23:20:00 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-02-14 23:20:00 +0000 |
commit | 8152f4da8d3bb0ffd81ff4e53b21016c0d9ba8f8 (patch) | |
tree | 622b53531275e080bd1746cbafae09eed6be649e /sys/dev/usb2/include/usb2_ioctl.h | |
parent | f35949f29ca00a8a25a5ff0a6ad875c3967085e2 (diff) | |
download | FreeBSD-src-8152f4da8d3bb0ffd81ff4e53b21016c0d9ba8f8.zip FreeBSD-src-8152f4da8d3bb0ffd81ff4e53b21016c0d9ba8f8.tar.gz |
MFp4 //depot/projects/usb@157699
Add two new functions to the libusb20 API and required kernel ioctls.
- libusb20_dev_get_iface_desc
- libusb20_dev_get_info
New command to usbconfig, "show_ifdrv", which will print out the kernel driver
attached to the given USB device aswell.
See "man libusb20" for a detailed description.
Some minor style corrections long-line wrapping.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb2/include/usb2_ioctl.h')
-rw-r--r-- | sys/dev/usb2/include/usb2_ioctl.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/usb2/include/usb2_ioctl.h b/sys/dev/usb2/include/usb2_ioctl.h index eeafd27..58c392a 100644 --- a/sys/dev/usb2/include/usb2_ioctl.h +++ b/sys/dev/usb2/include/usb2_ioctl.h @@ -77,13 +77,6 @@ struct usb2_gen_descriptor { uint8_t reserved[8]; }; -struct usb2_device_names { - char *udn_devnames_ptr; /* userland pointer to comma separated - * list of device names */ - uint16_t udn_devnames_len; /* maximum string length including - * terminating zero */ -}; - struct usb2_device_info { uint16_t udi_productNo; uint16_t udi_vendorNo; @@ -249,7 +242,7 @@ struct usb2_gen_quirk { #define USB_SET_RX_BUFFER_SIZE _IOW ('U', 118, int) #define USB_SET_RX_STALL_FLAG _IOW ('U', 119, int) #define USB_SET_TX_STALL_FLAG _IOW ('U', 120, int) -#define USB_GET_DEVICENAMES _IOW ('U', 121, struct usb2_device_names) +#define USB_GET_IFACE_DRIVER _IOWR('U', 121, struct usb2_gen_descriptor) #define USB_CLAIM_INTERFACE _IOW ('U', 122, int) #define USB_RELEASE_INTERFACE _IOW ('U', 123, int) #define USB_IFACE_DRIVER_ACTIVE _IOW ('U', 124, int) |