Changeset 22480 in vbox for trunk/src/VBox/Devices/Network/DevPCNet.cpp
- Timestamp:
- Aug 26, 2009 5:14:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r22369 r22480 4330 4330 * @param pDevIns The device instance. 4331 4331 * @param pSSMHandle The handle to the saved state. 4332 * @param u32Version The data unit version number. 4333 */ 4334 static DECLCALLBACK(int) pcnetLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t u32Version) 4332 * @param uVersion The data unit version number. 4333 * @param uPhase The data phase. 4334 */ 4335 static DECLCALLBACK(int) pcnetLoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle, uint32_t uVersion, uint32_t uPhase) 4335 4336 { 4336 4337 PCNetState *pThis = PDMINS_2_DATA(pDevIns, PCNetState *); 4337 4338 RTMAC Mac; 4338 if ( SSM_VERSION_MAJOR_CHANGED(u 32Version, PCNET_SAVEDSTATE_VERSION)4339 || SSM_VERSION_MINOR(u 32Version) < 7)4339 if ( SSM_VERSION_MAJOR_CHANGED(uVersion, PCNET_SAVEDSTATE_VERSION) 4340 || SSM_VERSION_MINOR(uVersion) < 7) 4340 4341 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; 4342 Assert(uPhase == SSM_PHASE_FINAL); NOREF(uPhase); 4341 4343 4342 4344 /* restore data */ … … 4345 4347 SSMR3GetS32(pSSMHandle, &pThis->iISR); 4346 4348 SSMR3GetU32(pSSMHandle, &pThis->u32Lnkst); 4347 if ( SSM_VERSION_MAJOR(u 32Version) > 04348 || SSM_VERSION_MINOR(u 32Version) >= 9)4349 if ( SSM_VERSION_MAJOR(uVersion) > 0 4350 || SSM_VERSION_MINOR(uVersion) >= 9) 4349 4351 { 4350 4352 SSMR3GetBool(pSSMHandle, &pThis->fPrivIfEnabled); … … 4352 4354 LogRel(("PCNet#%d: Enabling private interface\n", PCNET_INST_NR)); 4353 4355 } 4354 if ( SSM_VERSION_MAJOR(u 32Version) > 04355 || SSM_VERSION_MINOR(u 32Version) >= 10)4356 if ( SSM_VERSION_MAJOR(uVersion) > 0 4357 || SSM_VERSION_MINOR(uVersion) >= 10) 4356 4358 { 4357 4359 SSMR3GetBool(pSSMHandle, &pThis->fSignalRxMiss); … … 4375 4377 if (pThis->fAm79C973) 4376 4378 { 4377 if ( SSM_VERSION_MAJOR(u 32Version) > 04378 || SSM_VERSION_MINOR(u 32Version) >= 8)4379 if ( SSM_VERSION_MAJOR(uVersion) > 0 4380 || SSM_VERSION_MINOR(uVersion) >= 8) 4379 4381 TMR3TimerLoad(pThis->CTX_SUFF(pTimerSoftInt), pSSMHandle); 4380 4382 } … … 5087 5089 return rc; 5088 5090 5089 rc = PDMDevHlpSSMRegister (pDevIns, pDevIns->pDevReg->szDeviceName, iInstance,5090 PCNET_SAVEDSTATE_VERSION, sizeof(*pThis),5091 pcnetSavePrep, pcnetSaveExec, NULL,5092 pcnetLoadPrep, pcnetLoadExec, NULL);5091 rc = PDMDevHlpSSMRegisterEx(pDevIns, PCNET_SAVEDSTATE_VERSION, sizeof(*pThis), NULL, 5092 NULL, NULL, NULL, 5093 pcnetSavePrep, pcnetSaveExec, NULL, 5094 pcnetLoadPrep, pcnetLoadExec, NULL); 5093 5095 if (RT_FAILURE(rc)) 5094 5096 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.