Diff for /qemu/usb-bsd.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 18:33:47 version 1.1.1.5, 2018/04/24 18:56:04
Line 39 Line 39
 #else  #else
 #include <bus/usb/usb.h>  #include <bus/usb/usb.h>
 #endif  #endif
 #include <signal.h>  
   
 /* This value has maximum potential at 16.  /* This value has maximum potential at 16.
  * You should also set hw.usb.debug to gain   * You should also set hw.usb.debug to gain
Line 126  static void usb_host_handle_reset(USBDev Line 125  static void usb_host_handle_reset(USBDev
  *  and return appropriate response   *  and return appropriate response
  */   */
 static int usb_host_handle_control(USBDevice *dev,  static int usb_host_handle_control(USBDevice *dev,
                                      USBPacket *p,
                                    int request,                                     int request,
                                    int value,                                     int value,
                                    int index,                                     int index,
Line 367  USBDevice *usb_host_device_open(const ch Line 367  USBDevice *usb_host_device_open(const ch
   
     if (dev_info.udi_speed == 1) {      if (dev_info.udi_speed == 1) {
         dev->dev.speed = USB_SPEED_LOW - 1;          dev->dev.speed = USB_SPEED_LOW - 1;
           dev->dev.speedmask = USB_SPEED_MASK_LOW;
     } else {      } else {
         dev->dev.speed = USB_SPEED_FULL - 1;          dev->dev.speed = USB_SPEED_FULL - 1;
           dev->dev.speedmask = USB_SPEED_MASK_FULL;
     }      }
   
     if (strncmp(dev_info.udi_product, "product", 7) != 0) {      if (strncmp(dev_info.udi_product, "product", 7) != 0) {
Line 464  static int usb_host_scan(void *opaque, U Line 466  static int usb_host_scan(void *opaque, U
                 printf("usb_host_scan: couldn't get device information for %s - %s\n",                  printf("usb_host_scan: couldn't get device information for %s - %s\n",
                        devbuf, strerror(errno));                         devbuf, strerror(errno));
   
             // XXX: might need to fixup endianess of word values before copying over              /* XXX: might need to fixup endianness of word values before copying over */
   
             vendor_id = dev_info.udi_vendorNo;              vendor_id = dev_info.udi_vendorNo;
             product_id = dev_info.udi_productNo;              product_id = dev_info.udi_productNo;

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


unix.superglobalmegacorp.com