VirtualBox

Changeset 34483 in vbox for trunk/src


Ignore:
Timestamp:
Nov 29, 2010 5:43:40 PM (14 years ago)
Author:
vboxsync
Message:

e1000: VM reset handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r33595 r34483  
    54205420
    54215421/**
     5422 * @copydoc FNPDMDEVRESET
     5423 */
     5424static DECLCALLBACK(void) e1kReset(PPDMDEVINS pDevIns)
     5425{
     5426    E1KSTATE *pState = PDMINS_2_DATA(pDevIns, E1KSTATE*);
     5427    e1kCancelTimer(pState, pState->CTX_SUFF(pIntTimer));
     5428    e1kCancelTimer(pState, pState->CTX_SUFF(pLUTimer));
     5429    e1kXmitFreeBuf(pState);
     5430    pState->u16TxPktLen  = 0;
     5431    pState->fIPcsum      = false;
     5432    pState->fTCPcsum     = false;
     5433    pState->fIntMaskUsed = false;
     5434    pState->fDelayInts   = false;
     5435    pState->fLocked      = false;
     5436    pState->u64AckedAt   = 0;
     5437    e1kHardReset(pState);
     5438}
     5439
     5440/**
    54225441 * @copydoc FNPDMDEVSUSPEND
    54235442 */
     
    59635982    NULL,
    59645983    /* Reset notification - optional. */
    5965     NULL,
     5984    e1kReset,
    59665985    /* Suspend notification  - optional. */
    59675986    e1kSuspend,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette