VirtualBox

Changeset 57521 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 25, 2015 9:50:45 AM (9 years ago)
Author:
vboxsync
Message:

NVMe: Changes required for building it and integrating into the PUEL extension pack (not build by default, use VBOX_WITH_NVME_IMPL to enable)

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r57446 r57521  
    479479 endif
    480480
     481  if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
     482   VBoxDD_DEFS          += VBOX_WITH_NVME_IMPL
     483   VBoxDD_SOURCES       += \
     484        Storage/DevNVMe.cpp
     485  endif
     486
    481487 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
    482488  VBoxDD_DEFS           += VBOX_WITH_PDM_ASYNC_COMPLETION
     
    966972  VBoxDDRC_SOURCES      += \
    967973        Storage/DevLsiLogicSCSI.cpp
     974  endif
     975
     976  if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
     977   VBoxDDGC_DEFS       += VBOX_WITH_NVME_IMPL
     978   VBoxDDGC_SOURCES    += \
     979        Storage/DevNVMe.cpp
    968980  endif
    969981
     
    11401152 endif
    11411153
     1154 if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
     1155  VBoxDDR0_DEFS       += VBOX_WITH_NVME_IMPL
     1156  VBoxDDR0_SOURCES    += \
     1157        Storage/DevNVMe.cpp
     1158 endif
     1159
    11421160 ifdef VBOX_WITH_NEW_PS2M
    11431161  VBoxDDR0_DEFS         += VBOX_WITH_NEW_PS2M
     
    13351353
    13361354  Bus/DevPciRaw.cpp_INCS    = Bus
     1355 endif
     1356
     1357 #
     1358 # The NVMe Extension Pack Modules.
     1359 #
     1360 if defined(VBOX_WITH_NVME_IMPL)
     1361  DLLS += VBoxNvmeR3
     1362  VBoxNvmeR3_TEMPLATE = VBoxR3ExtPackPuel
     1363  VBoxNvmeR3_SOURCES  = \
     1364        Storage/DevNVMe.cpp
     1365  VBoxNvmeR3_SOURCES.win = \
     1366        build/VBoxNvmeR3.rc
     1367
     1368  SYSMODS += VBoxNvmeR0
     1369  VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
     1370  VBoxNvmeR0_SOURCES  = \
     1371        Storage/DevNVMe.cpp
     1372
     1373  ifdef VBOX_WITH_RAW_MODE
     1374   SYSMODS += VBoxNvmeRC
     1375   VBoxNvmeRC_TEMPLATE = VBoxRcExtPackPuel
     1376   VBoxNvmeRC_SOURCES  = \
     1377        Storage/DevNVMe.cpp
     1378  endif
     1379
     1380  # Hacky but MSI support *must* be enabled
     1381  ifdef VBOX_WITH_MSI_DEVICES
     1382   VBoxNvmeR3_DEFS += VBOX_WITH_MSI_DEVICES
     1383   VBoxNvmeR0_DEFS += VBOX_WITH_MSI_DEVICES
     1384   VBoxNvmeRC_DEFS += VBOX_WITH_MSI_DEVICES
     1385  endif
     1386
    13371387 endif
    13381388
  • trunk/src/VBox/Devices/build/VBoxDD.cpp

    r57358 r57521  
    181181        return rc;
    182182#endif
     183#ifdef VBOX_WITH_NVME_IMPL
     184    rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceNVMe);
     185    if (RT_FAILURE(rc))
     186        return rc;
     187#endif
    183188#ifdef VBOX_WITH_PCI_PASSTHROUGH_IMPL
    184189    rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePciRaw);
  • trunk/src/VBox/Devices/build/VBoxDD.h

    r56085 r57521  
    7575extern const PDMDEVREG g_DeviceLsiLogicSCSI;
    7676extern const PDMDEVREG g_DeviceLsiLogicSAS;
     77#endif
     78#ifdef VBOX_WITH_NVME_IMPL
     79extern const PDMDEVREG g_DeviceNVMe;
    7780#endif
    7881#ifdef VBOX_WITH_EFI
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