VirtualBox

Changeset 49092 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Oct 14, 2013 10:01:16 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89923
Message:

VUSB,EHCI,OHCI: Add a method to query whether a device is emulated or not. Required for working saved states when using the MSD device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmusb.h

    r48980 r49092  
    118118/** A high-speed capable USB 2.0 device (also required to support full-speed). */
    119119#define PDM_USBREG_HIGHSPEED_CAPABLE        RT_BIT(0)
     120/** Indicates that the device is fully emulated and is not used to pass through
     121 * a host device. */
     122#define PDM_USBREG_EMULATED_DEVICE          RT_BIT(1)
    120123/** @} */
    121124
     
    991994}
    992995
     996/**
     997 * @copydoc PDMUSBHLP::pfnSSMRegister
     998 */
     999DECLINLINE(int) PDMUsbHlpSSMRegister(PPDMUSBINS pUsbIns, uint32_t uVersion, size_t cbGuess,
     1000                                     PFNSSMUSBLIVEPREP pfnLivePrep, PFNSSMUSBLIVEEXEC pfnLiveExec, PFNSSMUSBLIVEVOTE pfnLiveVote,
     1001                                     PFNSSMUSBSAVEPREP pfnSavePrep, PFNSSMUSBSAVEEXEC pfnSaveExec, PFNSSMUSBSAVEDONE pfnSaveDone,
     1002                                     PFNSSMUSBLOADPREP pfnLoadPrep, PFNSSMUSBLOADEXEC pfnLoadExec, PFNSSMUSBLOADDONE pfnLoadDone)
     1003{
     1004    return pUsbIns->pHlpR3->pfnSSMRegister(pUsbIns, uVersion, cbGuess,
     1005                                           pfnLivePrep, pfnLiveExec, pfnLiveVote,
     1006                                           pfnSavePrep, pfnSaveExec, pfnSaveDone,
     1007                                           pfnLoadPrep, pfnLoadExec, pfnLoadDone);
     1008}
     1009
    9931010#endif /* IN_RING3 */
    9941011
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