Changeset 22555 in vbox
- Timestamp:
- Aug 28, 2009 4:14:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r22480 r22555 4306 4306 STATUS &= ~STATUS_LU; 4307 4307 Phy::setLinkStatus(&pState->phy, false); 4308 e1kRaiseInterrupt(pState, ICR_LSC);4308 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 4309 4309 /* Restore the link back in 5 second. */ 4310 4310 e1kArmTimer(pState, pState->pLUTimer, 5000000); … … 4315 4315 STATUS &= ~STATUS_LU; 4316 4316 Phy::setLinkStatus(&pState->phy, false); 4317 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 4317 4318 } 4318 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC);4319 4319 if (pState->pDrv) 4320 4320 pState->pDrv->pfnNotifyLinkChanged(pState->pDrv, enmState); … … 4515 4515 * @param pSSMHandle The handle to the saved state. 4516 4516 */ 4517 #if 04518 4517 static DECLCALLBACK(int) e1kLoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSMHandle) 4519 4518 { … … 4532 4531 STATUS &= ~STATUS_LU; 4533 4532 Phy::setLinkStatus(&pState->phy, false); 4534 e1kRaiseInterrupt(pState, ICR_LSC);4533 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 4535 4534 /* Restore the link back in half a second. */ 4536 e1kArmTimer(pState, pState->pLUTimer, 500000 );4535 e1kArmTimer(pState, pState->pLUTimer, 5000000); 4537 4536 } 4538 4537 e1kMutexRelease(pState); 4539 4538 return VINF_SUCCESS; 4540 4539 } 4541 #endif4542 4540 4543 4541 /** … … 4765 4763 NULL, NULL, NULL, 4766 4764 e1kSavePrep, e1kSaveExec, NULL, 4767 e1kLoadPrep, e1kLoadExec, NULL);4765 e1kLoadPrep, e1kLoadExec, e1kLoadDone); 4768 4766 if (RT_FAILURE(rc)) 4769 4767 return rc; … … 5126 5124 STATUS &= ~STATUS_LU; 5127 5125 Phy::setLinkStatus(&pState->phy, false); 5128 e1kRaiseInterrupt(pState, ICR_LSC);5126 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 5129 5127 /* Restore the link back in 5 second. */ 5130 5128 e1kArmTimer(pState, pState->pLUTimer, 5000000);
Note:
See TracChangeset
for help on using the changeset viewer.