- Timestamp:
- Nov 6, 2009 5:56:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet.cpp
r24191 r24470 760 760 rc = PDMDevHlpIOPortRegister(pPciDev->pDevIns, pState->addrIOPort, cb, 0, 761 761 vpciIOPortOut, vpciIOPortIn, NULL, NULL, "VirtioNet"); 762 #if 0762 #ifdef VNET_GC_SUPPORT 763 763 AssertRCReturn(rc, rc); 764 764 rc = PDMDevHlpIOPortRegisterR0(pPciDev->pDevIns, pState->addrIOPort, cb, 0, … … 1372 1372 vpciReset(&pState->VPCI); 1373 1373 // TODO: Implement reset 1374 if (pState->fCableConnected) 1375 STATUS = VNET_S_LINK_UP; 1376 else 1377 STATUS = 0; 1374 1378 } 1375 1379 … … 1456 1460 static int vnetCanReceive(VNETSTATE *pState) 1457 1461 { 1458 int rc = v pciCsEnter(&pState->VPCI, VERR_SEM_BUSY);1462 int rc = vnetCsEnter(pState, VERR_SEM_BUSY); 1459 1463 LogFlow(("%s vnetCanReceive\n", INSTANCE(pState))); 1460 1464 if (!(pState->VPCI.uStatus & VPCI_STATUS_DRV_OK)) … … 1474 1478 1475 1479 LogFlow(("%s vnetCanReceive -> %Vrc\n", INSTANCE(pState), rc)); 1476 v pciCsLeave(&pState->VPCI);1480 vnetCsLeave(pState); 1477 1481 return rc; 1478 1482 } … … 2135 2139 AssertLogRelReturnVoid(iLUN == 0); 2136 2140 2137 v pciCsEnter(&pState->VPCI, VERR_SEM_BUSY);2141 vnetCsEnter(pState, VERR_SEM_BUSY); 2138 2142 2139 2143 /* … … 2143 2147 pState->pDrv = NULL; 2144 2148 2145 v pciCsLeave(&pState->VPCI);2149 vnetCsLeave(pState); 2146 2150 } 2147 2151 … … 2166 2170 AssertLogRelReturn(iLUN == 0, VERR_PDM_NO_SUCH_LUN); 2167 2171 2168 v pciCsEnter(&pState->VPCI, VERR_SEM_BUSY);2172 vnetCsEnter(pState, VERR_SEM_BUSY); 2169 2173 2170 2174 /* … … 2203 2207 vnetTempLinkDown(pState); 2204 2208 2205 v pciCsLeave(&pState->VPCI);2209 vnetCsLeave(pState); 2206 2210 return rc; 2207 2211 … … 2239 2243 2240 2244 /* Flags, combination of the PDM_DEVREG_FLAGS_* \#defines. */ 2241 PDM_DEVREG_FLAGS_DEFAULT_BITS, // | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0, 2245 #ifdef VNET_GC_SUPPORT 2246 PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0, 2247 #else 2248 PDM_DEVREG_FLAGS_DEFAULT_BITS, 2249 #endif 2242 2250 /* Device class(es), combination of the PDM_DEVREG_CLASS_* \#defines. */ 2243 2251 PDM_DEVREG_CLASS_NETWORK,
Note:
See TracChangeset
for help on using the changeset viewer.