Changeset 86480 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Oct 8, 2020 6:52:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r85121 r86480 3278 3278 3279 3279 AssertPtr(pvSeg); 3280 PDMDevHlpP hysRead(pDevIns, GCPhys, pvSeg, cbSeg);3280 PDMDevHlpPCIPhysRead(pDevIns, GCPhys, pvSeg, cbSeg); 3281 3281 GCPhys += cbSeg; 3282 3282 cbCopy -= cbSeg; … … 3343 3343 : RT_ELEMENTS(aPrdtlEntries); 3344 3344 3345 PDMDevHlpP hysReadMeta(pDevIns, GCPhysPrdtl, &aPrdtlEntries[0],3346 cPrdtlEntriesRead * sizeof(SGLEntry));3345 PDMDevHlpPCIPhysReadMeta(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 PDMDevHlpP hysReadMeta(pDevIns, GCPhysPrdtl, &aPrdtlEntries[0], cPrdtlEntriesRead * sizeof(SGLEntry));3441 PDMDevHlpPCIPhysReadMeta(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 PDMDevHlpP hysReadMeta(pDevIns, GCPhysPrdtl, &aPrdtlEntries[0], cPrdtlEntriesRead * sizeof(SGLEntry));3506 PDMDevHlpPCIPhysReadMeta(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 PDMDevHlpP hysReadMeta(pDevIns, GCPhysAddrDataBase, aRanges, cbThisCopy);3516 PDMDevHlpPCIPhysReadMeta(pDevIns, GCPhysAddrDataBase, aRanges, cbThisCopy); 3517 3517 3518 3518 for (unsigned idxRangeSrc = 0; idxRangeSrc < RT_ELEMENTS(aRanges) && idxRange < cRanges; idxRangeSrc++) … … 3851 3851 SGLEntry PrdtEntry; 3852 3852 3853 PDMDevHlpP hysReadMeta(pDevIns, GCPhysPrdt, &PrdtEntry, sizeof(SGLEntry));3853 PDMDevHlpPCIPhysReadMeta(pDevIns, GCPhysPrdt, &PrdtEntry, sizeof(SGLEntry)); 3854 3854 3855 3855 RTGCPHYS GCPhysAddrDataBase = AHCI_RTGCPHYS_FROM_U32(PrdtEntry.u32DBAUp, PrdtEntry.u32DBA); … … 4268 4268 CmdHdr cmdHdr; 4269 4269 pAhciReq->GCPhysCmdHdrAddr = pAhciPort->GCPhysAddrClb + pAhciReq->uTag * sizeof(CmdHdr); 4270 LogFlow(("%s: PDMDevHlpP hysReadGCPhysAddrCmdLst=%RGp cbCmdHdr=%u\n", __FUNCTION__,4270 LogFlow(("%s: PDMDevHlpPCIPhysReadMeta GCPhysAddrCmdLst=%RGp cbCmdHdr=%u\n", __FUNCTION__, 4271 4271 pAhciReq->GCPhysCmdHdrAddr, sizeof(CmdHdr))); 4272 PDMDevHlpP hysReadMeta(pDevIns, pAhciReq->GCPhysCmdHdrAddr, &cmdHdr, sizeof(CmdHdr));4272 PDMDevHlpPCIPhysReadMeta(pDevIns, pAhciReq->GCPhysCmdHdrAddr, &cmdHdr, sizeof(CmdHdr)); 4273 4273 4274 4274 #ifdef LOG_ENABLED … … 4284 4284 4285 4285 /* Read the command Fis. */ 4286 LogFlow(("%s: PDMDevHlpP hysReadGCPhysAddrCmdTbl=%RGp cbCmdFis=%u\n", __FUNCTION__, GCPhysAddrCmdTbl, AHCI_CMDFIS_TYPE_H2D_SIZE));4287 PDMDevHlpP hysReadMeta(pDevIns, GCPhysAddrCmdTbl, &pAhciReq->cmdFis[0], AHCI_CMDFIS_TYPE_H2D_SIZE);4286 LogFlow(("%s: PDMDevHlpPCIPhysReadMeta GCPhysAddrCmdTbl=%RGp cbCmdFis=%u\n", __FUNCTION__, GCPhysAddrCmdTbl, AHCI_CMDFIS_TYPE_H2D_SIZE)); 4287 PDMDevHlpPCIPhysReadMeta(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 PDMDevHlpP hysReadMeta(pDevIns, GCPhysAddrCmdTbl, &pAhciReq->aATAPICmd[0], ATAPI_PACKET_SIZE);4300 PDMDevHlpPCIPhysReadMeta(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 PDMDevHlpP hysReadMeta(pDevIns, GCPhysPrdtl, &SGEntry, sizeof(SGLEntry));4330 PDMDevHlpPCIPhysReadMeta(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.