Changeset 92996 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 17, 2021 8:18:43 AM (3 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r92969 r92996 523 523 VBoxDD_DEFS += VBOX_WITH_VIRTIO 524 524 VBoxDD_SOURCES += \ 525 VirtIO/Virtio.cpp \526 525 VirtIO/VirtioCore.cpp \ 527 Network/DevVirtioNet.cpp 528 endif 529 530 if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0) 531 VBoxDD_DEFS += VBOX_WITH_VIRTIO_NET_1_0 532 VBoxDD_SOURCES += \ 533 Network/DevVirtioNet_1_0.cpp 534 endif 526 Network/DevVirtioNet_1_0.cpp 527 endif 528 535 529 536 530 ifdef VBOX_WITH_UDPTUNNEL … … 1064 1058 VBoxDDRC_DEFS += VBOX_WITH_VIRTIO 1065 1059 VBoxDDRC_SOURCES += \ 1066 VirtIO/Virtio.cpp \1067 1060 VirtIO/VirtioCore.cpp \ 1068 Network/DevVirtioNet.cpp 1069 endif 1070 1071 ifdef defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0) 1072 VBoxDDRC_DEFS += VBOX_WITH_VIRTIO_NET_1_0 1073 VBoxDDRC_SOURCES += \ 1074 Network/DevVirtioNet_1_0.cpp 1061 Network/DevVirtioNet_1_0.cpp 1075 1062 endif 1076 1063 … … 1288 1275 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO 1289 1276 VBoxDDR0_SOURCES += \ 1290 VirtIO/Virtio.cpp \1291 1277 VirtIO/VirtioCore.cpp \ 1292 Network/DevVirtioNet.cpp1293 endif1294 1295 if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0)1296 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_NET_1_01297 VBoxDDR0_SOURCES += \1298 1278 Network/DevVirtioNet_1_0.cpp 1299 1279 endif -
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r92995 r92996 3587 3587 * The device registration structure. 3588 3588 */ 3589 const PDMDEVREG g_DeviceVirtioNet _1_0=3589 const PDMDEVREG g_DeviceVirtioNet = 3590 3590 { 3591 3591 /* .uVersion = */ PDM_DEVREG_VERSION, 3592 3592 /* .uReserved0 = */ 0, 3593 /* .szName = */ "virtio-net -1-dot-0",3593 /* .szName = */ "virtio-net", 3594 3594 /* .fFlags = */ PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_NEW_STYLE | PDM_DEVREG_FLAGS_RZ, 3595 3595 /* .fClass = */ PDM_DEVREG_CLASS_NETWORK, -
trunk/src/VBox/Devices/build/VBoxDD.cpp
r91416 r92996 117 117 return rc; 118 118 #endif 119 #ifdef VBOX_WITH_VIRTIO_NET_1_0120 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceVirtioNet_1_0);121 if (RT_FAILURE(rc))122 return rc;123 #endif124 119 #ifdef VBOX_WITH_INIP 125 120 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceINIP); -
trunk/src/VBox/Devices/build/VBoxDD.h
r91416 r92996 57 57 extern const PDMDEVREG g_DeviceVirtioNet; 58 58 #endif 59 #ifdef VBOX_WITH_VIRTIO_NET_1_060 extern const PDMDEVREG g_DeviceVirtioNet_1_0;61 #endif62 59 #ifdef VBOX_WITH_INIP 63 60 extern const PDMDEVREG g_DeviceINIP; -
trunk/src/VBox/Devices/build/VBoxDDR0.cpp
r91214 r92996 60 60 #ifdef VBOX_WITH_VIRTIO 61 61 &g_DeviceVirtioNet, 62 #endif63 #ifdef VBOX_WITH_VIRTIO_NET_1_064 &g_DeviceVirtioNet_1_0,65 62 #endif 66 63 &g_DeviceICHAC97, -
trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
r89590 r92996 65 65 #undef LOG_GROUP 66 66 #include "../Network/DevPCNet.cpp" 67 #ifdef VBOX_WITH_VIRTIO68 # undef LOG_GROUP69 # include "../Network/DevVirtioNet.cpp"70 #endif71 67 #undef LOG_GROUP 72 68 #include "../PC/DevACPI.cpp" … … 347 343 CHECK_MEMBER_ALIGNMENT(E1KSTATE, StatReceiveBytes, 8); 348 344 #endif 349 #ifdef VBOX_WITH_VIRTIO350 CHECK_MEMBER_ALIGNMENT(VNETSTATE, StatReceiveBytes, 8);351 #endif352 345 //CHECK_MEMBER_ALIGNMENT(E1KSTATE, csTx, 8); 353 346 #ifdef VBOX_WITH_USB … … 407 400 CHECK_MEMBER_ALIGNMENT(VGASTATE, CritSectIRQ, 8); 408 401 CHECK_MEMBER_ALIGNMENT(VMMDEV, CritSect, 8); 409 #ifdef VBOX_WITH_VIRTIO410 CHECK_MEMBER_ALIGNMENT(VPCISTATE, cs, 8);411 CHECK_MEMBER_ALIGNMENT(VPCISTATE, led, 4);412 CHECK_MEMBER_ALIGNMENT(VPCISTATE, Queues, 8);413 #endif414 402 #ifdef VBOX_WITH_PCI_PASSTHROUGH_IMPL 415 403 CHECK_MEMBER_ALIGNMENT(PCIRAWSENDREQ, u.aGetRegionInfo.u64RegionSize, 8); -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r89590 r92996 121 121 # undef LOG_GROUP 122 122 # include "../Network/DevE1000.cpp" 123 #endif124 #ifdef VBOX_WITH_VIRTIO125 # undef LOG_GROUP126 # include "../Network/DevVirtioNet.cpp"127 123 #endif 128 124 #ifdef VBOX_WITH_BUSLOGIC … … 1562 1558 #endif /* VBOX_WITH_E1000 */ 1563 1559 1564 #ifdef VBOX_WITH_VIRTIO1565 GEN_CHECK_OFF(VPCISTATE, cs);1566 GEN_CHECK_OFF(VPCISTATE, szInstance);1567 GEN_CHECK_OFF(VPCISTATE, IBase);1568 GEN_CHECK_OFF(VPCISTATE, ILeds);1569 GEN_CHECK_OFF(VPCISTATE, pLedsConnector);1570 GEN_CHECK_OFF(VPCISTATE, pDevInsR3);1571 GEN_CHECK_OFF(VPCISTATE, pDevInsR0);1572 GEN_CHECK_OFF(VPCISTATE, pDevInsRC);1573 GEN_CHECK_OFF(VPCISTATE, pciDevice);1574 GEN_CHECK_OFF(VPCISTATE, IOPortBase);1575 GEN_CHECK_OFF(VPCISTATE, led);1576 GEN_CHECK_OFF(VPCISTATE, uGuestFeatures);1577 GEN_CHECK_OFF(VPCISTATE, uQueueSelector);1578 GEN_CHECK_OFF(VPCISTATE, uStatus);1579 GEN_CHECK_OFF(VPCISTATE, uISR);1580 GEN_CHECK_OFF(VPCISTATE, Queues);1581 GEN_CHECK_OFF(VPCISTATE, Queues[VIRTIO_MAX_NQUEUES]);1582 GEN_CHECK_OFF(VNETSTATE, VPCI);1583 GEN_CHECK_OFF(VNETSTATE, INetworkDown);1584 GEN_CHECK_OFF(VNETSTATE, INetworkConfig);1585 GEN_CHECK_OFF(VNETSTATE, pDrvBase);1586 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueR3);1587 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueR0);1588 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueRC);1589 GEN_CHECK_OFF(VNETSTATE, pLinkUpTimer);1590 # ifdef VNET_TX_DELAY1591 GEN_CHECK_OFF(VNETSTATE, pTxTimerR3);1592 GEN_CHECK_OFF(VNETSTATE, pTxTimerR0);1593 GEN_CHECK_OFF(VNETSTATE, pTxTimerRC);1594 # endif /* VNET_TX_DELAY */1595 GEN_CHECK_OFF(VNETSTATE, config);1596 GEN_CHECK_OFF(VNETSTATE, macConfigured);1597 GEN_CHECK_OFF(VNETSTATE, fCableConnected);1598 GEN_CHECK_OFF(VNETSTATE, u32PktNo);1599 GEN_CHECK_OFF(VNETSTATE, fPromiscuous);1600 GEN_CHECK_OFF(VNETSTATE, fAllMulti);1601 GEN_CHECK_OFF(VNETSTATE, pRxQueue);1602 GEN_CHECK_OFF(VNETSTATE, pTxQueue);1603 GEN_CHECK_OFF(VNETSTATE, pCtlQueue);1604 GEN_CHECK_OFF(VNETSTATE, fMaybeOutOfSpace);1605 GEN_CHECK_OFF(VNETSTATE, hEventMoreRxDescAvail);1606 #endif /* VBOX_WITH_VIRTIO */1607 1608 1560 /* VMMDev*.cpp/h */ 1609 1561 GEN_CHECK_SIZE(VMMDEV);
Note:
See TracChangeset
for help on using the changeset viewer.