VirtualBox

Changeset 8539 in vbox for trunk/include


Ignore:
Timestamp:
May 2, 2008 5:02:10 PM (17 years ago)
Author:
vboxsync
Message:

Drop the USBDEVICE bits we don't currently need.

File:
1 edited

Legend:

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

    r8155 r8539  
    3434
    3535__BEGIN_DECLS
     36
     37#ifdef USBDEVICE_WITH_EVERYTHING
    3638
    3739/**
     
    124126typedef const USBCONFIG *PCUSBCONFIG;
    125127
     128#endif /* USBDEVICE_WITH_EVERYTHING */
     129
    126130
    127131/**
     
    173177typedef struct USBDEVICE
    174178{
     179    /** If linked, this is the pointer to the next device in the list. */
     180    struct USBDEVICE *pNext;
     181    /** If linked doubly, this is the pointer to the prev device in the list. */
     182    struct USBDEVICE *pPrev;
     183    /** Manufacturer string. */
     184    const char     *pszManufacturer;
     185    /** Product string. */
     186    const char     *pszProduct;
     187    /** Serial number string. */
     188    const char     *pszSerialNumber;
     189    /** The address of the device. */
     190    const char     *pszAddress;
     191
     192    /** Vendor ID. */
     193    uint16_t        idVendor;
     194    /** Product ID. */
     195    uint16_t        idProduct;
     196    /** Revision, integer part. */
     197    uint16_t        bcdDevice;
    175198    /** USB version number. */
    176199    uint16_t        bcdUSB;
     
    181204    /** Device protocol */
    182205    uint8_t         bDeviceProtocol;
    183     /** Vendor ID. */
    184     uint16_t        idVendor;
    185     /** Product ID. */
    186     uint16_t        idProduct;
    187     /** Revision, integer part. */
    188     uint16_t        bcdDevice;
    189     /** Manufacturer string. */
    190     const char     *pszManufacturer;
    191     /** Product string. */
    192     const char     *pszProduct;
    193     /** Serial number string. */
    194     const char     *pszSerialNumber;
    195     /** Serial hash. */
    196     uint64_t        u64SerialHash;
    197206    /** Number of configurations. */
    198207    uint8_t         bNumConfigurations;
    199     /** Pointer to an array of configurations. */
    200     PUSBCONFIG      paConfigurations;
    201208    /** The device state. */
    202209    USBDEVICESTATE  enmState;
    203210    /** The device speed. */
    204211    USBDEVICESPEED  enmSpeed;
    205     /** The address of the device. */
    206     const char     *pszAddress;
    207 
     212    /** Serial hash. */
     213    uint64_t        u64SerialHash;
    208214    /** The USB Bus number. */
    209215    uint8_t         bBus;
     216    /** The port number. */
     217    uint8_t         bPort;
     218#if defined(RT_OS_LINUX)
     219    /** Device number. */
     220    uint8_t         bDevNum;
     221#endif
     222#ifdef USBDEVICE_WITH_EVERYTHING
     223    /** Parent device number. */
     224    uint8_t         bDevNumParent;
    210225    /** The level in topologly for this bus. */
    211226    uint8_t         bLevel;
    212     /** Device number. */
    213     uint8_t         bDevNum;
    214     /** Parent device number. */
    215     uint8_t         bDevNumParent;
    216     /** The port number. */
    217     uint8_t         bPort;
    218227    /** Number of devices on this level. */
    219228    uint8_t         bNumDevices;
    220229    /** Maximum number of children. */
    221230    uint8_t         bMaxChildren;
    222 
    223     /** If linked, this is the pointer to the next device in the list. */
    224     struct USBDEVICE *pNext;
    225     /** If linked doubly, this is the pointer to the prev device in the list. */
    226     struct USBDEVICE *pPrev;
     231    /** Pointer to an array of configurations. */
     232    PUSBCONFIG      paConfigurations;
     233#endif
    227234} USBDEVICE;
    228235/** Pointer to a USB device. */
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