VirtualBox

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


Ignore:
Timestamp:
Apr 3, 2009 1:26:35 PM (16 years ago)
Author:
vboxsync
Message:

pcnet: typos

File:
1 edited

Legend:

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

    r18645 r18690  
    15491549    {
    15501550        RMD        rmd;
    1551         RTGCPHYS32 addr = pcnetRdraAddr(pThis, i);
     1551        RTGCPHYS32 rdaddr = PHYSADDR(pThis, pcnetRdraAddr(pThis, i));
    15521552        /* At this time it is not guaranteed that the buffers are already initialized. */
    1553         if (pcnetRmdLoad(pThis, &rmd, PHYSADDR(pThis, addr), false))
     1553        if (pcnetRmdLoad(pThis, &rmd, rdaddr, false))
    15541554        {
    15551555            /* Hack: Make sure that all RX buffers are touched when the
     
    15631563            cbRxBuffers += cbBuf;
    15641564        }
    1565         PDMDevHlpPhysWrite(pDevIns, addr, (void*)&rmd, sizeof(rmd));
     1565        PDMDevHlpPhysWrite(pDevIns, rdaddr, (void*)&rmd, sizeof(rmd));
    15661566    }
    15671567
     
    15691569    {
    15701570        TMD        tmd;
    1571         RTGCPHYS32 addr = pcnetRdraAddr(pThis, i);
    1572         if (pcnetTmdLoad(pThis, &tmd, PHYSADDR(pThis, addr), false))
     1571        RTGCPHYS32 tdaddr = PHYSADDR(pThis, pcnetTdraAddr(pThis, i));
     1572        if (pcnetTmdLoad(pThis, &tmd, tdaddr, false))
    15731573        {
    15741574            /* Hack: Make sure that all TX buffers are touched when the
    1575              * device is initialized. */
     1575             * device is initialized. Of course it is unlikely that the
     1576             * TX buffers are already owned by the device right now. */
    15761577            static char aBuf[4096];
    15771578            uint32_t cbBuf = 4096U-tmd.tmd1.bcnt;
     
    15811582            PDMDevHlpPhysWrite(pDevIns, tbadr, aBuf, RT_MIN(sizeof(aBuf), cbBuf));
    15821583        }
    1583         PDMDevHlpPhysWrite(pDevIns, addr, (void*)&tmd, sizeof(tmd));
     1584        PDMDevHlpPhysWrite(pDevIns, tdaddr, (void*)&tmd, sizeof(tmd));
    15841585    }
    15851586
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