VirtualBox

Ignore:
Timestamp:
Feb 25, 2022 4:13:44 PM (3 years ago)
Author:
vboxsync
Message:

Devices/USB: Eliminiate some callback ping-pong and streamline the device attach/detach logic, bugref:10196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/VUSBInternal.h

    r93939 r93955  
    320320
    321321
    322 /** Virtual method table for USB hub devices.
    323  * Hub and roothub drivers need to implement these functions in addition to the
    324  * vusb_dev_ops.
    325  */
    326 typedef struct VUSBHUBOPS
    327 {
    328     int     (*pfnAttach)(PVUSBHUB pHub, PVUSBDEV pDev);
    329     void    (*pfnDetach)(PVUSBHUB pHub, PVUSBDEV pDev);
    330 } VUSBHUBOPS;
    331 /** Pointer to a const HUB method table. */
    332 typedef const VUSBHUBOPS *PCVUSBHUBOPS;
    333 
    334322/** A VUSB Hub Device - Hub and roothub drivers need to use this struct
    335323 * @todo eliminate this (PDM  / roothubs only).
     
    338326{
    339327    VUSBDEV             Dev;
    340     PCVUSBHUBOPS        pOps;
    341328    PVUSBROOTHUB        pRootHub;
    342329    uint16_t            cPorts;
     
    345332    char               *pszName;
    346333} VUSBHUB;
    347 AssertCompileMemberAlignment(VUSBHUB, pOps, 8);
    348334AssertCompileSizeAlignment(VUSBHUB, 8);
    349335
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