VirtualBox

Changeset 56941 in vbox for trunk


Ignore:
Timestamp:
Jul 15, 2015 1:14:24 PM (9 years ago)
Author:
vboxsync
Message:

VBoxSVC/iokit.cpp: OS X 10.11 USB tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/iokit.cpp

    r52743 r56941  
    951951                pCur->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE;    /* just a default, we'll try harder in a bit. */
    952952
    953                 AssertBreak(darwinDictGetU8(PropsRef,  CFSTR(kUSBDeviceClass),           &pCur->bDeviceClass));
    954                 /* skip hubs */
     953                /* Skip hubs. On 10.11 beta 3, the root hub simulations does not have a USBDeviceClass property, so
     954                   simply ignore failures to retrieve it. */
     955                if (!darwinDictGetU8(PropsRef,         CFSTR(kUSBDeviceClass),          &pCur->bDeviceClass))
     956                {
     957#ifdef VBOX_STRICT
     958                    char szTmp[80];
     959                    Assert(   darwinDictGetString(PropsRef, CFSTR("IOClassNameOverride"), szTmp, sizeof(szTmp))
     960                           && strcmp(szTmp, "IOUSBRootHubDevice") == 0);
     961#endif
     962                    break;
     963                }
    955964                if (pCur->bDeviceClass == 0x09 /* hub, find a define! */)
    956965                    break;
     
    970979                AssertBreak(pCur->pszAddress);
    971980                pCur->bBus = u32LocationId >> 24;
    972                 AssertBreak(darwinDictGetU8(PropsRef,  CFSTR("PortNum"),                &pCur->bPort));
     981                darwinDictGetU8(PropsRef, CFSTR("PortNum"), &pCur->bPort); /* Not present in 10.11 beta 3, so ignore failure. (Is set to zero.) */
    973982                uint8_t bSpeed;
    974983                AssertBreak(darwinDictGetU8(PropsRef,  CFSTR(kUSBDevicePropertySpeed),  &bSpeed));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette