summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2013-12-20 20:37:32 +0100
committerPete Batard <pete@akeo.ie>2014-02-19 00:31:43 +0000
commit886decee7a33270cc55db11f3a1c22dc45270168 (patch)
tree6c2df90e37a554d63328e449c4c966bcd91b3ca8
parent93de199d8d60822fc42b1cbf8b920132cd8bbbc6 (diff)
downloadlibusb-886decee7a33270cc55db11f3a1c22dc45270168.tar.gz
Windows: Add support for AMD USB 3.0 root hubs
* The driver has to be updated to version 1.0.0.66 (2011-10-25) or later * Older versions can fail with the following warning: could not get node connection information for device [..]: [87] The parameter is incorrect. * Also Remove duplicated "API" string in debug output * Closes #1
-rw-r--r--libusb/os/windows_usb.c4
-rw-r--r--libusb/version_nano.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index 0e83c32..e130bc9 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -1246,7 +1246,7 @@ static void get_api_type(struct libusb_context *ctx, HDEVINFO *dev_info,
for (k=0; k<3; k++) {
j = get_sub_api(lookup[k].list, i);
if (j >= 0) {
- usbi_dbg("matched %s name against %s API",
+ usbi_dbg("matched %s name against %s",
lookup[k].designation, (i!=USB_API_WINUSBX)?usb_api_backend[i].designation:sub_api_name[j]);
*api = i;
*sub_api = j;
@@ -2395,7 +2395,7 @@ static int common_configure_endpoints(int sub_api, struct libusb_device_handle *
return LIBUSB_SUCCESS;
}
// These names must be uppercase
-const char* hub_driver_names[] = {"USBHUB", "USBHUB3", "USB3HUB", "NUSB3HUB", "RUSB3HUB", "FLXHCIH", "TIHUB3", "ETRONHUB3", "VIAHUB3", "ASMTHUB3", "IUSB3HUB", "VUSB3HUB"};
+const char* hub_driver_names[] = {"USBHUB", "USBHUB3", "USB3HUB", "NUSB3HUB", "RUSB3HUB", "FLXHCIH", "TIHUB3", "ETRONHUB3", "VIAHUB3", "ASMTHUB3", "IUSB3HUB", "VUSB3HUB", "AMDHUB30"};
const char* composite_driver_names[] = {"USBCCGP"};
const char* winusbx_driver_names[] = WINUSBX_DRV_NAMES;
const char* hid_driver_names[] = {"HIDUSB", "MOUHID", "KBDHID"};
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 2132f37..227e258 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 10868
+#define LIBUSB_NANO 10869