Changeset 7795 in vbox for trunk/src/VBox
- Timestamp:
- Apr 8, 2008 12:02:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r7772 r7795 1361 1361 } 1362 1362 1363 /** 1364 * Enable/disable the private guest interface. 1365 */ 1366 static void pcnetEnablePrivateIf(PCNetState *pData) 1367 { 1368 bool fPrivIfEnabled = pData->pSharedMMIOHC 1369 && !!(pData->CTXSUFF(pSharedMMIO)->fFlags & PCNET_GUEST_FLAGS_ADMIT_GUEST); 1370 if (fPrivIfEnabled != pData->fPrivIfEnabled) 1371 { 1372 pData->fPrivIfEnabled = fPrivIfEnabled; 1373 LogRel(("PCNet#%d: %s private interface\n", PCNET_INST_NR, fPrivIfEnabled ? "Enabling" : "Disabling")); 1374 } 1375 } 1376 1363 1377 #ifdef IN_RING3 1364 1378 #ifdef PCNET_NO_POLLING … … 1476 1490 } while (0) 1477 1491 1478 bool fPrivIfEnabled = pData->pSharedMMIOHC 1479 && !!(pData->pSharedMMIOHC->fFlags & PCNET_GUEST_FLAGS_ADMIT_GUEST); 1480 if (fPrivIfEnabled != pData->fPrivIfEnabled) 1481 { 1482 pData->fPrivIfEnabled = fPrivIfEnabled; 1483 LogRel(("PCNet#%d: %s private interface\n", PCNET_INST_NR, fPrivIfEnabled ? "Enabling" : "Disabling")); 1484 } 1492 pcnetEnablePrivateIf(pData); 1493 1485 1494 if (BCR_SSIZE32(pData)) 1486 1495 { … … 1535 1544 if (!CSR_DRX(pData)) 1536 1545 pData->aCSR[0] |= 0x0020; /* set RXON */ 1546 pcnetEnablePrivateIf(pData); 1537 1547 pData->aCSR[0] &= ~0x0004; /* clear STOP bit */ 1538 1548 pData->aCSR[0] |= 0x0002; /* STRT */ … … 1549 1559 pData->aCSR[4] &= ~0x02c2; 1550 1560 pData->aCSR[5] &= ~0x0011; 1561 pcnetEnablePrivateIf(pData); 1551 1562 pcnetPollTimer(pData); 1552 1563 } … … 1561 1572 } 1562 1573 #endif 1574 1563 1575 1564 1576 /** … … 4411 4423 pData->pXmitQueueGC = PDMQueueGCPtr(pData->pXmitQueueHC); 4412 4424 pData->pCanRxQueueGC = PDMQueueGCPtr(pData->pCanRxQueueHC); 4413 pData->pSharedMMIOGC += offDelta; 4425 if (pData->pSharedMMIOHC) 4426 pData->pSharedMMIOGC += offDelta; 4414 4427 #ifdef PCNET_NO_POLLING 4415 4428 *(RTHCUINTPTR *)&pData->pfnEMInterpretInstructionGC += offDelta;
Note:
See TracChangeset
for help on using the changeset viewer.