Changeset 44569 in vbox
- Timestamp:
- Feb 6, 2013 2:00:43 PM (12 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r44567 r44569 1081 1081 bool fR0Enabled; 1082 1082 /** EMT: */ 1083 bool f GCEnabled;1083 bool fRCEnabled; 1084 1084 /** EMT: Compute Ethernet CRC for RX packets. */ 1085 1085 bool fEthernetCRC; … … 5964 5964 rc = PDMDevHlpIOPortRegisterR0(pPciDev->pDevIns, pThis->addrIOPort, cb, NIL_RTR0PTR /*pvUser*/, 5965 5965 "e1kIOPortOut", "e1kIOPortIn", NULL, NULL, "E1000"); 5966 if (pThis->f GCEnabled && RT_SUCCESS(rc))5966 if (pThis->fRCEnabled && RT_SUCCESS(rc)) 5967 5967 rc = PDMDevHlpIOPortRegisterRC(pPciDev->pDevIns, pThis->addrIOPort, cb, NIL_RTRCPTR /*pvUser*/, 5968 5968 "e1kIOPortOut", "e1kIOPortIn", NULL, NULL, "E1000"); … … 5984 5984 rc = PDMDevHlpMMIORegisterR0(pPciDev->pDevIns, GCPhysAddress, cb, NIL_RTR0PTR /*pvUser*/, 5985 5985 "e1kMMIOWrite", "e1kMMIORead"); 5986 if (pThis->f GCEnabled && RT_SUCCESS(rc))5986 if (pThis->fRCEnabled && RT_SUCCESS(rc)) 5987 5987 rc = PDMDevHlpMMIORegisterRC(pPciDev->pDevIns, GCPhysAddress, cb, NIL_RTRCPTR /*pvUser*/, 5988 5988 "e1kMMIOWrite", "e1kMMIORead"); … … 6892 6892 pDevIns->iInstance, pThis->addrIOPort, pThis->addrMMReg, 6893 6893 &pThis->macConfigured, g_Chips[pThis->eChip].pcszName, 6894 pThis->f GCEnabled ? " GC" : "", pThis->fR0Enabled ? " R0" : "");6894 pThis->fRCEnabled ? " GC" : "", pThis->fR0Enabled ? " R0" : ""); 6895 6895 6896 6896 e1kCsEnter(pThis, VERR_INTERNAL_ERROR); /* Not sure why but PCNet does it */ … … 7378 7378 7379 7379 pThis->fR0Enabled = true; 7380 pThis->f GCEnabled = true;7380 pThis->fRCEnabled = true; 7381 7381 pThis->fEthernetCRC = true; 7382 7382 pThis->fGSOEnabled = true; … … 7397 7397 N_("Configuration error: Failed to get the value of 'AdapterType'")); 7398 7398 Assert(pThis->eChip <= E1K_CHIP_82545EM); 7399 rc = CFGMR3QueryBoolDef(pCfg, " GCEnabled", &pThis->fGCEnabled, true);7399 rc = CFGMR3QueryBoolDef(pCfg, "RCEnabled", &pThis->fRCEnabled, true); 7400 7400 if (RT_FAILURE(rc)) 7401 7401 return PDMDEV_SET_ERROR(pDevIns, rc, -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r44533 r44569 1305 1305 GEN_CHECK_OFF(E1KSTATE, fCableConnected); 1306 1306 GEN_CHECK_OFF(E1KSTATE, fR0Enabled); 1307 GEN_CHECK_OFF(E1KSTATE, f GCEnabled);1307 GEN_CHECK_OFF(E1KSTATE, fRCEnabled); 1308 1308 GEN_CHECK_OFF(E1KSTATE, auRegs[E1K_NUM_OF_32BIT_REGS]); 1309 1309 GEN_CHECK_OFF(E1KSTATE, led);
Note:
See TracChangeset
for help on using the changeset viewer.