VirtualBox

Changeset 26408 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Feb 10, 2010 1:49:52 PM (15 years ago)
Author:
vboxsync
Message:

e1000: Improved Ethernet address and link status reporting.

File:
1 edited

Legend:

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

    r26307 r26408  
    3838
    3939/* Options */
     40#define E1K_INIT_RA0
     41#define E1K_LSC_ON_SLU
    4042#define E1K_ITR_ENABLED
    4143//#define E1K_GLOBAL_MUTEX
     
    16201622    memset(pState->auRegs,        0, sizeof(pState->auRegs));
    16211623    memset(pState->aRecAddr.au32, 0, sizeof(pState->aRecAddr.au32));
     1624#ifdef E1K_INIT_RA0
     1625    memcpy(pState->aRecAddr.au32, pState->macConfigured.au8,
     1626           sizeof(pState->macConfigured.au8));
     1627    pState->aRecAddr.array[0].ctl |= RA_CTL_AV;
     1628#endif /* E1K_INIT_RA0 */
    16221629    STATUS = 0x0081;    /* SPEED=10b (1000 Mb/s), FD=1b (Full Duplex) */
    16231630    EECD   = 0x0100;    /* EE_PRES=1b (EEPROM present) */
     
    20972104    {
    20982105        if (   (value & CTRL_SLU)
    2099             && pState->fCableConnected)
     2106            && pState->fCableConnected
     2107            && !(STATUS & STATUS_LU))
    21002108        {
    21012109            /* The driver indicates that we should bring up the link */
    21022110            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 */
    21032115        }
    21042116        if (value & CTRL_VME)
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