VirtualBox

Changeset 7745 in vbox


Ignore:
Timestamp:
Apr 4, 2008 2:34:57 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29288
Message:

Added enmSpeed to USBDEVICE, needed to figure out where to attach a device.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/usb.h

    r5999 r7745  
    144144
    145145/**
     146 * The USB device speed.
     147 */
     148typedef enum USBDEVICESPEED
     149{
     150    /** Unknown. */
     151    USBDEVICESPEED_UNKNOWN = 0,
     152    /** Low speed (1.5 Mbit/s). */
     153    USBDEVICESPEED_LOW,
     154    /** Full speed (12 Mbit/s). */
     155    USBDEVICESPEED_FULL,
     156    /** High speed (480 Mbit/s). */
     157    USBDEVICESPEED_HIGH,
     158    /** Variable speed - USB 2.5 / wireless. */
     159    USBDEVICESPEED_VARIABLE,
     160    /** The usual 32-bit hack. */
     161    USBDEVICESPEED_32BIT_HACK = 0x7fffffff
     162} USBDEVICESPEED;
     163
     164
     165/**
    146166 * USB host device description.
    147167 * Used for enumeration of USB devices.
     
    177197    /** The device state. */
    178198    USBDEVICESTATE  enmState;
     199    /** The device speed. */
     200    USBDEVICESPEED  enmSpeed;
    179201    /** The address of the device. */
    180202    const char     *pszAddress;
     
    236258# define USB_DT_PHYSICAL            0x23
    237259# define USB_DT_HUB                 0x29
    238 #endif 
     260#endif
    239261/** @} */
    240262
  • trunk/src/VBox/Main/darwin/iokit.cpp

    r5999 r7745  
    845845                 * There are some nameless device in the iMac, apply names to them.
    846846                 */
     847                /** @todo Device Speed -> enmSpeed; (2 == high speed). */
    847848                darwinDictGetString(PropsRef, CFSTR("USB Vendor Name"),     (char **)&pCur->pszManufacturer);
    848849                if (    !pCur->pszManufacturer
Note: See TracChangeset for help on using the changeset viewer.

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