Changeset 27002 in vbox for trunk/src/VBox
- Timestamp:
- Mar 3, 2010 6:34:42 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r26574 r27002 863 863 PTMTIMERR3 pTADTimerR3; /**< Tranmsit Absolute Delay Timer - R3. */ 864 864 PTMTIMERR3 pIntTimerR3; /**< Late Interrupt Timer - R3. */ 865 PTMTIMERR3 pLUTimerR3; /**< Link Up(/Restore) Timer. */ 865 866 866 867 PPDMDEVINSR0 pDevInsR0; /**< Device instance - R0. */ … … 872 873 PTMTIMERR0 pTADTimerR0; /**< Tranmsit Absolute Delay Timer - R0. */ 873 874 PTMTIMERR0 pIntTimerR0; /**< Late Interrupt Timer - R0. */ 875 PTMTIMERR0 pLUTimerR0; /**< Link Up(/Restore) Timer - R0. */ 874 876 875 877 PPDMDEVINSRC pDevInsRC; /**< Device instance - RC. */ … … 881 883 PTMTIMERRC pTADTimerRC; /**< Tranmsit Absolute Delay Timer - RC. */ 882 884 PTMTIMERRC pIntTimerRC; /**< Late Interrupt Timer - RC. */ 883 884 PTMTIMERR3 pLUTimer; /**< Link Up(/Restore) Timer. */ 885 PTMTIMERRC pLUTimerRC; /**< Link Up(/Restore) Timer - RC. */ 886 887 #if HC_ARCH_BITS != 32 888 uint32_t u32Padding2; 889 #endif 890 885 891 PPDMTHREAD pTxThread; /**< Transmit thread. */ 886 892 PDMCRITSECT cs; /**< Critical section - what is it protecting? */ … … 2108 2114 { 2109 2115 /* The driver indicates that we should bring up the link */ 2110 STATUS |= STATUS_LU; 2111 #ifdef E1K_LSC_ON_SLU 2112 Phy::setLinkStatus(&pState->phy, true); 2113 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 2114 #endif /* E1K_LSC_ON_SLU */ 2116 /* Do so in 5 seconds. */ 2117 e1kArmTimer(pState, pState->CTX_SUFF(pLUTimer), 5000000); 2115 2118 } 2116 2119 if (value & CTRL_VME) … … 4459 4462 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 4460 4463 /* Restore the link back in 5 second. */ 4461 e1kArmTimer(pState, pState->pLUTimer , 5000000);4464 e1kArmTimer(pState, pState->pLUTimerR3, 5000000); 4462 4465 } 4463 4466 else … … 4734 4737 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 4735 4738 /* Restore the link back in five seconds. */ 4736 e1kArmTimer(pState, pState->pLUTimer , 5000000);4739 e1kArmTimer(pState, pState->pLUTimerR3, 5000000); 4737 4740 } 4738 4741 e1kMutexRelease(pState); … … 4832 4835 e1kRaiseInterrupt(pState, VERR_SEM_BUSY, ICR_LSC); 4833 4836 /* Restore the link back in 5 second. */ 4834 e1kArmTimer(pState, pState->pLUTimer , 5000000);4837 e1kArmTimer(pState, pState->pLUTimerR3, 5000000); 4835 4838 } 4836 4839 … … 4893 4896 #endif /* E1K_USE_TX_TIMERS */ 4894 4897 pState->pIntTimerRC = TMTimerRCPtr(pState->pIntTimerR3); 4898 pState->pLUTimerRC = TMTimerRCPtr(pState->pLUTimerR3); 4895 4899 } 4896 4900 … … 5249 5253 rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL, e1kLinkUpTimer, pState, 5250 5254 TMTIMER_FLAGS_DEFAULT_CRIT_SECT, /** @todo check locking here. */ 5251 "E1000 Link Up Timer", &pState->pLUTimer );5255 "E1000 Link Up Timer", &pState->pLUTimerR3); 5252 5256 if (RT_FAILURE(rc)) 5253 5257 return rc; 5258 pState->pLUTimerR0 = TMTimerR0Ptr(pState->pLUTimerR3); 5259 pState->pLUTimerRC = TMTimerRCPtr(pState->pLUTimerR3); 5254 5260 5255 5261 /* Status driver */ -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r26594 r27002 1297 1297 GEN_CHECK_OFF(E1KSTATE, pIntTimerR0); 1298 1298 GEN_CHECK_OFF(E1KSTATE, pIntTimerRC); 1299 GEN_CHECK_OFF(E1KSTATE, pLUTimer); 1299 GEN_CHECK_OFF(E1KSTATE, pLUTimerR3); 1300 GEN_CHECK_OFF(E1KSTATE, pLUTimerR0); 1301 GEN_CHECK_OFF(E1KSTATE, pLUTimerRC); 1300 1302 GEN_CHECK_OFF(E1KSTATE, pTxThread); 1301 1303 GEN_CHECK_OFF(E1KSTATE, cs);
Note:
See TracChangeset
for help on using the changeset viewer.