- Timestamp:
- Oct 8, 2020 7:35:08 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r85146 r86486 1913 1913 return 0; 1914 1914 E1KRXDESC* pFirstEmptyDesc = &pThis->aRxDescriptors[pThis->nRxDFetched]; 1915 PDMDevHlpP hysRead(pDevIns,1916 ((uint64_t)RDBAH << 32) + RDBAL + nFirstNotLoaded * sizeof(E1KRXDESC),1917 pFirstEmptyDesc, nDescsInSingleRead * sizeof(E1KRXDESC));1915 PDMDevHlpPCIPhysRead(pDevIns, 1916 ((uint64_t)RDBAH << 32) + RDBAL + nFirstNotLoaded * sizeof(E1KRXDESC), 1917 pFirstEmptyDesc, nDescsInSingleRead * sizeof(E1KRXDESC)); 1918 1918 // uint64_t addrBase = ((uint64_t)RDBAH << 32) + RDBAL; 1919 1919 // unsigned i, j; … … 1929 1929 if (nDescsToFetch > nDescsInSingleRead) 1930 1930 { 1931 PDMDevHlpP hysRead(pDevIns,1932 ((uint64_t)RDBAH << 32) + RDBAL,1933 pFirstEmptyDesc + nDescsInSingleRead,1934 (nDescsToFetch - nDescsInSingleRead) * sizeof(E1KRXDESC));1931 PDMDevHlpPCIPhysRead(pDevIns, 1932 ((uint64_t)RDBAH << 32) + RDBAL, 1933 pFirstEmptyDesc + nDescsInSingleRead, 1934 (nDescsToFetch - nDescsInSingleRead) * sizeof(E1KRXDESC)); 1935 1935 // Assert(i == pThis->nRxDFetched + nDescsInSingleRead); 1936 1936 // for (j = 0; i < pThis->nRxDFetched + nDescsToFetch; ++i, ++j) … … 2553 2553 /* Load the descriptor pointed by head */ 2554 2554 E1KRXDESC desc, *pDesc = &desc; 2555 PDMDevHlpP hysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, RDH), &desc, sizeof(desc));2555 PDMDevHlpPCIPhysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, RDH), &desc, sizeof(desc)); 2556 2556 # endif /* !E1K_WITH_RXD_CACHE */ 2557 2557 if (pDesc->u64BufAddr) … … 3925 3925 DECLINLINE(void) e1kLoadDesc(PPDMDEVINS pDevIns, E1KTXDESC *pDesc, RTGCPHYS addr) 3926 3926 { 3927 PDMDevHlpP hysRead(pDevIns, addr, pDesc, sizeof(E1KTXDESC));3927 PDMDevHlpPCIPhysRead(pDevIns, addr, pDesc, sizeof(E1KTXDESC)); 3928 3928 } 3929 3929 #else /* E1K_WITH_TXD_CACHE */ … … 3956 3956 return 0; 3957 3957 E1KTXDESC* pFirstEmptyDesc = &pThis->aTxDescriptors[pThis->nTxDFetched]; 3958 PDMDevHlpP hysRead(pDevIns,3959 ((uint64_t)TDBAH << 32) + TDBAL + nFirstNotLoaded * sizeof(E1KTXDESC),3960 pFirstEmptyDesc, nDescsInSingleRead * sizeof(E1KTXDESC));3958 PDMDevHlpPCIPhysRead(pDevIns, 3959 ((uint64_t)TDBAH << 32) + TDBAL + nFirstNotLoaded * sizeof(E1KTXDESC), 3960 pFirstEmptyDesc, nDescsInSingleRead * sizeof(E1KTXDESC)); 3961 3961 E1kLog3(("%s Fetched %u TX descriptors at %08x%08x(0x%x), TDLEN=%08x, TDH=%08x, TDT=%08x\n", 3962 3962 pThis->szPrf, nDescsInSingleRead, … … 3965 3965 if (nDescsToFetch > nDescsInSingleRead) 3966 3966 { 3967 PDMDevHlpP hysRead(pDevIns,3968 ((uint64_t)TDBAH << 32) + TDBAL,3969 pFirstEmptyDesc + nDescsInSingleRead,3970 (nDescsToFetch - nDescsInSingleRead) * sizeof(E1KTXDESC));3967 PDMDevHlpPCIPhysRead(pDevIns, 3968 ((uint64_t)TDBAH << 32) + TDBAL, 3969 pFirstEmptyDesc + nDescsInSingleRead, 3970 (nDescsToFetch - nDescsInSingleRead) * sizeof(E1KTXDESC)); 3971 3971 E1kLog3(("%s Fetched %u TX descriptors at %08x%08x\n", 3972 3972 pThis->szPrf, nDescsToFetch - nDescsInSingleRead, … … 4217 4217 Assert(pThis->u32PayRemain + pThis->u16HdrRemain > 0); 4218 4218 4219 PDMDevHlpP hysRead(pDevIns, PhysAddr, pThis->aTxPacketFallback + pThis->u16TxPktLen, u16Len);4219 PDMDevHlpPCIPhysRead(pDevIns, PhysAddr, pThis->aTxPacketFallback + pThis->u16TxPktLen, u16Len); 4220 4220 E1kLog3(("%s Dump of the segment:\n" 4221 4221 "%.*Rhxd\n" … … 4327 4327 4328 4328 if (pThis->u16TxPktLen + u16Len <= sizeof(pThis->aTxPacketFallback)) 4329 PDMDevHlpP hysRead(pDevIns, PhysAddr, pThis->aTxPacketFallback + pThis->u16TxPktLen, u16Len);4329 PDMDevHlpPCIPhysRead(pDevIns, PhysAddr, pThis->aTxPacketFallback + pThis->u16TxPktLen, u16Len); 4330 4330 else 4331 4331 E1kLog(("%s e1kFallbackAddSegment: writing beyond aTxPacketFallback, u16TxPktLen=%d(0x%x) + u16Len=%d(0x%x) > %d\n", … … 4639 4639 pThis->szPrf, pTxSg->cbUsed, pTxSg->cbUsed, pThis->u16TxPktLen, pThis->u16TxPktLen)); 4640 4640 4641 PDMDevHlpP hysRead(pDevIns, PhysAddr, (uint8_t *)pTxSg->aSegs[0].pvSeg + pThis->u16TxPktLen, cbFragment);4641 PDMDevHlpPCIPhysRead(pDevIns, PhysAddr, (uint8_t *)pTxSg->aSegs[0].pvSeg + pThis->u16TxPktLen, cbFragment); 4642 4642 4643 4643 pTxSg->cbUsed = cbNewPkt; … … 5448 5448 { 5449 5449 E1KTXDESC desc; 5450 PDMDevHlpP hysRead(pDevIns , e1kDescAddr(TDBAH, TDBAL, i), &desc, sizeof(desc));5450 PDMDevHlpPCIPhysRead(pDevIns , e1kDescAddr(TDBAH, TDBAL, i), &desc, sizeof(desc)); 5451 5451 if (i == tdh) 5452 5452 LogRel(("E1000: >>> ")); … … 6407 6407 { 6408 6408 E1KRXDESC desc; 6409 PDMDevHlpP hysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, RDH), &desc, sizeof(desc));6409 PDMDevHlpPCIPhysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, RDH), &desc, sizeof(desc)); 6410 6410 if (desc.status.fDD) 6411 6411 cb = 0; … … 6436 6436 { 6437 6437 E1KRXDESC desc; 6438 PDMDevHlpP hysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, RDH), &desc, sizeof(desc));6438 PDMDevHlpPCIPhysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, RDH), &desc, sizeof(desc)); 6439 6439 if (desc.status.fDD) 6440 6440 rc = VERR_NET_NO_BUFFER_SPACE; … … 7328 7328 { 7329 7329 E1KRXDESC desc; 7330 PDMDevHlpP hysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, i),7331 &desc, sizeof(desc));7330 PDMDevHlpPCIPhysRead(pDevIns, e1kDescAddr(RDBAH, RDBAL, i), 7331 &desc, sizeof(desc)); 7332 7332 if (i == rdh) 7333 7333 pHlp->pfnPrintf(pHlp, ">>> "); … … 7357 7357 { 7358 7358 E1KTXDESC desc; 7359 PDMDevHlpP hysRead(pDevIns, e1kDescAddr(TDBAH, TDBAL, i),7360 &desc, sizeof(desc));7359 PDMDevHlpPCIPhysRead(pDevIns, e1kDescAddr(TDBAH, TDBAL, i), 7360 &desc, sizeof(desc)); 7361 7361 if (i == tdh) 7362 7362 pHlp->pfnPrintf(pHlp, ">>> ");
Note:
See TracChangeset
for help on using the changeset viewer.