- Timestamp:
- May 25, 2020 10:25:46 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r82968 r84489 2741 2741 /* Post the FIS into memory. */ 2742 2742 ahciLog(("%s: PDMDevHlpPCIPhysWrite GCPhysAddrRecFis=%RGp cbFis=%u\n", __FUNCTION__, GCPhysAddrRecFis, cbFis)); 2743 PDMDevHlpPCIPhysWrite (pDevIns, GCPhysAddrRecFis, pCmdFis, cbFis);2743 PDMDevHlpPCIPhysWriteMeta(pDevIns, GCPhysAddrRecFis, pCmdFis, cbFis); 2744 2744 } 2745 2745 … … 3303 3303 3304 3304 AssertPtr(pvSeg); 3305 PDMDevHlpPCIPhysWrite (pDevIns, GCPhys, pvSeg, cbSeg);3305 PDMDevHlpPCIPhysWriteUser(pDevIns, GCPhys, pvSeg, cbSeg); 3306 3306 GCPhys += cbSeg; 3307 3307 cbCopy -= cbSeg; … … 3343 3343 : RT_ELEMENTS(aPrdtlEntries); 3344 3344 3345 PDMDevHlpPhysRead (pDevIns, GCPhysPrdtl, &aPrdtlEntries[0],3346 cPrdtlEntriesRead * sizeof(SGLEntry));3345 PDMDevHlpPhysReadMeta(pDevIns, GCPhysPrdtl, &aPrdtlEntries[0], 3346 cPrdtlEntriesRead * sizeof(SGLEntry)); 3347 3347 3348 3348 for (uint32_t i = 0; (i < cPrdtlEntriesRead) && cbCopy; i++) … … 3439 3439 uint32_t const cPrdtlEntriesRead = RT_MIN(cPrdtlEntries, RT_ELEMENTS(aPrdtlEntries)); 3440 3440 3441 PDMDevHlpPhysRead (pDevIns, GCPhysPrdtl, &aPrdtlEntries[0], cPrdtlEntriesRead * sizeof(SGLEntry));3441 PDMDevHlpPhysReadMeta(pDevIns, GCPhysPrdtl, &aPrdtlEntries[0], cPrdtlEntriesRead * sizeof(SGLEntry)); 3442 3442 3443 3443 for (uint32_t i = 0; i < cPrdtlEntriesRead; i++) … … 3504 3504 3505 3505 rc = VINF_SUCCESS; 3506 PDMDevHlpPhysRead (pDevIns, GCPhysPrdtl, &aPrdtlEntries[0], cPrdtlEntriesRead * sizeof(SGLEntry));3506 PDMDevHlpPhysReadMeta(pDevIns, GCPhysPrdtl, &aPrdtlEntries[0], cPrdtlEntriesRead * sizeof(SGLEntry)); 3507 3507 3508 3508 for (uint32_t i = 0; i < cPrdtlEntriesRead && idxRange < cRanges; i++) … … 3514 3514 3515 3515 /* Copy into buffer. */ 3516 PDMDevHlpPhysRead (pDevIns, GCPhysAddrDataBase, aRanges, cbThisCopy);3516 PDMDevHlpPhysReadMeta(pDevIns, GCPhysAddrDataBase, aRanges, cbThisCopy); 3517 3517 3518 3518 for (unsigned idxRangeSrc = 0; idxRangeSrc < RT_ELEMENTS(aRanges) && idxRange < cRanges; idxRangeSrc++) … … 3695 3695 u32PRDBC = (uint32_t)pAhciReq->cbTransfer; 3696 3696 3697 PDMDevHlpPCIPhysWrite (pDevIns, pAhciReq->GCPhysCmdHdrAddr + RT_UOFFSETOF(CmdHdr, u32PRDBC),3698 &u32PRDBC, sizeof(u32PRDBC));3697 PDMDevHlpPCIPhysWriteMeta(pDevIns, pAhciReq->GCPhysCmdHdrAddr + RT_UOFFSETOF(CmdHdr, u32PRDBC), 3698 &u32PRDBC, sizeof(u32PRDBC)); 3699 3699 3700 3700 if (pAhciReq->fFlags & AHCI_REQ_OVERFLOW) … … 3851 3851 SGLEntry PrdtEntry; 3852 3852 3853 PDMDevHlpPhysRead (pDevIns, GCPhysPrdt, &PrdtEntry, sizeof(SGLEntry));3853 PDMDevHlpPhysReadMeta(pDevIns, GCPhysPrdt, &PrdtEntry, sizeof(SGLEntry)); 3854 3854 3855 3855 RTGCPHYS GCPhysAddrDataBase = AHCI_RTGCPHYS_FROM_U32(PrdtEntry.u32DBAUp, PrdtEntry.u32DBA); … … 4270 4270 LogFlow(("%s: PDMDevHlpPhysRead GCPhysAddrCmdLst=%RGp cbCmdHdr=%u\n", __FUNCTION__, 4271 4271 pAhciReq->GCPhysCmdHdrAddr, sizeof(CmdHdr))); 4272 PDMDevHlpPhysRead (pDevIns, pAhciReq->GCPhysCmdHdrAddr, &cmdHdr, sizeof(CmdHdr));4272 PDMDevHlpPhysReadMeta(pDevIns, pAhciReq->GCPhysCmdHdrAddr, &cmdHdr, sizeof(CmdHdr)); 4273 4273 4274 4274 #ifdef LOG_ENABLED … … 4285 4285 /* Read the command Fis. */ 4286 4286 LogFlow(("%s: PDMDevHlpPhysRead GCPhysAddrCmdTbl=%RGp cbCmdFis=%u\n", __FUNCTION__, GCPhysAddrCmdTbl, AHCI_CMDFIS_TYPE_H2D_SIZE)); 4287 PDMDevHlpPhysRead (pDevIns, GCPhysAddrCmdTbl, &pAhciReq->cmdFis[0], AHCI_CMDFIS_TYPE_H2D_SIZE);4287 PDMDevHlpPhysReadMeta(pDevIns, GCPhysAddrCmdTbl, &pAhciReq->cmdFis[0], AHCI_CMDFIS_TYPE_H2D_SIZE); 4288 4288 4289 4289 AssertMsgReturn(pAhciReq->cmdFis[AHCI_CMDFIS_TYPE] == AHCI_CMDFIS_TYPE_H2D, … … 4298 4298 { 4299 4299 GCPhysAddrCmdTbl += AHCI_CMDHDR_ACMD_OFFSET; 4300 PDMDevHlpPhysRead (pDevIns, GCPhysAddrCmdTbl, &pAhciReq->aATAPICmd[0], ATAPI_PACKET_SIZE);4300 PDMDevHlpPhysReadMeta(pDevIns, GCPhysAddrCmdTbl, &pAhciReq->aATAPICmd[0], ATAPI_PACKET_SIZE); 4301 4301 } 4302 4302 … … 4328 4328 4329 4329 ahciLog(("Entry %u at address %RGp\n", i, GCPhysPrdtl)); 4330 PDMDevHlpPhysRead (pDevIns, GCPhysPrdtl, &SGEntry, sizeof(SGLEntry));4330 PDMDevHlpPhysReadMeta(pDevIns, GCPhysPrdtl, &SGEntry, sizeof(SGLEntry)); 4331 4331 4332 4332 RTGCPHYS GCPhysDataAddr = AHCI_RTGCPHYS_FROM_U32(SGEntry.u32DBAUp, SGEntry.u32DBA);
Note:
See TracChangeset
for help on using the changeset viewer.