VirtualBox

Changeset 6313 in vbox


Ignore:
Timestamp:
Jan 9, 2008 10:26:56 PM (17 years ago)
Author:
vboxsync
Message:

Integrate async drivers. Fix testcase

Location:
trunk/src/VBox/Devices
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Builtins.cpp

    r6291 r6313  
    246246#endif
    247247
     248#if defined(VBOX_WITH_PDM_ASYNC_COMPLETION)
     249    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvRawImageAsync);
     250    if (VBOX_FAILURE(rc))
     251        return rc;
     252
     253    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvTransportAsync);
     254    if (VBOX_FAILURE(rc))
     255        return rc;
     256#endif
     257
    248258    return VINF_SUCCESS;
    249259}
  • trunk/src/VBox/Devices/Builtins.h

    r6291 r6313  
    8787#endif
    8888
     89#ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
     90extern const PDMDRVREG g_DrvRawImageAsync;
     91extern const PDMDRVREG g_DrvTransportAsync;
     92#endif
     93
    8994__END_DECLS
    9095
  • trunk/src/VBox/Devices/Makefile.kmk

    r6291 r6313  
    119119 VBoxDD_DEFS           += VBOX_WITH_E1000
    120120 VBoxDD_DEFS           += VBOX_WITH_INIP
     121endif
     122ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
     123 VBoxDD_DEFS           += VBOX_WITH_PDM_ASYNC_COMPLETION
    121124endif
    122125VBoxDD_LIBS             = \
     
    652655 Drivers_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
    653656 Drivers_SOURCES.linux += \
    654         Storage/DrvBlockAsync.cpp \
    655657        Storage/DrvRawImageAsync.cpp \
    656658        Storage/DrvTransportAsync.cpp
    657659
    658660 Drivers_SOURCES.win += \
    659         Storage/DrvBlockAsync.cpp \
    660661        Storage/DrvRawImageAsync.cpp \
    661662        Storage/DrvTransportAsync.cpp
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp

    r6291 r6313  
    842842    GEN_CHECK_SIZE(AHCIPORTTASKSTATE);
    843843    GEN_CHECK_OFF(AHCIPORTTASKSTATE, pAhciPortHC);
    844     GEN_CHECK_OFF(AHCIPORTTASKSTATE, pAhciPortGC);
    845844    GEN_CHECK_OFF(AHCIPORTTASKSTATE, uTag);
    846845    GEN_CHECK_OFF(AHCIPORTTASKSTATE, fPending);
     
    882881    GEN_CHECK_OFF(AHCIPort, IBase);
    883882    GEN_CHECK_OFF(AHCIPort, IPort);
    884     GEN_CHECK_OFF(AHCIPort, cCHSCylinders);
    885     GEN_CHECK_OFF(AHCIPort, cCHSHeads);
    886     GEN_CHECK_OFF(AHCIPort, cCHSSectors);
     883    GEN_CHECK_OFF(AHCIPort, PCHSGeometry);
    887884    GEN_CHECK_OFF(AHCIPort, cTotalSectors);
    888885    GEN_CHECK_OFF(AHCIPort, cMultSectors);
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