Deleted Added
full compact
1c1
< /* $FreeBSD: head/lib/libusb20/libusb20_ugen20.c 185290 2008-11-25 08:04:40Z alfred $ */
---
> /* $FreeBSD: head/lib/libusb20/libusb20_ugen20.c 188622 2009-02-14 23:20:00Z thompsa $ */
60a61,62
> static libusb20_dev_get_iface_desc_t ugen20_dev_get_iface_desc;
> static libusb20_dev_get_info_t ugen20_dev_get_info;
956a959,986
> ugen20_dev_get_iface_desc(struct libusb20_device *pdev,
> uint8_t iface_index, char *buf, uint8_t len)
> {
> struct usb2_gen_descriptor ugd;
>
> memset(&ugd, 0, sizeof(ugd));
>
> ugd.ugd_data = buf;
> ugd.ugd_maxlen = len;
> ugd.ugd_iface_index = iface_index;
>
> if (ioctl(pdev->file, USB_GET_IFACE_DRIVER, &ugd)) {
> return (LIBUSB20_ERROR_INVALID_PARAM);
> }
> return (0);
> }
>
> static int
> ugen20_dev_get_info(struct libusb20_device *pdev,
> struct usb2_device_info *pinfo)
> {
> if (ioctl(pdev->file, USB_GET_DEVICEINFO, pinfo)) {
> return (LIBUSB20_ERROR_INVALID_PARAM);
> }
> return (0);
> }
>
> static int