Changeset 48947 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Oct 7, 2013 9:41:00 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89644
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r48192 r48947 378 378 bool fIRQEnabled; 379 379 /** Flag whether the ISA I/O port range is disabled 380 * to prevent the BIOS to access the device. */ 380 * to prevent the BIOS to access the device. */ 381 381 bool fISAEnabled; /**< @todo unused, to be removed */ 382 382 /** Flag whether 24-bit mailboxes are in use (default is 32-bit). */ … … 1021 1021 static void buslogicClearInterrupt(PBUSLOGIC pBusLogic) 1022 1022 { 1023 LogFlowFunc(("pBusLogic=%#p, clearing %#02x (pending %#02x)\n", 1023 LogFlowFunc(("pBusLogic=%#p, clearing %#02x (pending %#02x)\n", 1024 1024 pBusLogic, pBusLogic->regInterrupt, pBusLogic->uPendingIntr)); 1025 1025 pBusLogic->regInterrupt = 0; … … 1193 1193 { 1194 1194 RTGCPHYS GCPhysAddrCCB = pTaskState->MailboxGuest.u32PhysAddrCCB; 1195 LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, outgoing mailbox at %RGp\n", GCPhysAddrCCB, 1195 LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, outgoing mailbox at %RGp\n", GCPhysAddrCCB, 1196 1196 uHostAdapterStatus, uDeviceStatus, GCPhysAddrMailboxIncoming)); 1197 1197 … … 1349 1349 PPDMDEVINS pDevIns = pTaskState->CTX_SUFF(pTargetDevice)->CTX_SUFF(pBusLogic)->CTX_SUFF(pDevIns); 1350 1350 uint32_t cbDataCCB; 1351 uint32_t u32PhysAddrCCB; 1352 1351 uint32_t u32PhysAddrCCB; 1352 1353 1353 /* Extract the data length and physical address from the CCB. */ 1354 1354 if (pTaskState->fIs24Bit) … … 1515 1515 #endif 1516 1516 1517 LogFlowFunc(("pTaskState=%#p cbDataCCB=%u direction=%u cbSeg=%u\n", pTaskState, cbDataCCB, 1517 LogFlowFunc(("pTaskState=%#p cbDataCCB=%u direction=%u cbSeg=%u\n", pTaskState, cbDataCCB, 1518 1518 pTaskState->CommandControlBlockGuest.c.uDataDirection, pTaskState->DataSeg.cbSeg)); 1519 1519 … … 1633 1633 1634 1634 /* With 32-bit CCBs, the (optional) sense buffer physical address is provided separately. 1635 * On the other hand, with 24-bit CCBs, the sense buffer is simply located at the end of 1636 * the CCB, right after the variable-length CDB. 1635 * On the other hand, with 24-bit CCBs, the sense buffer is simply located at the end of 1636 * the CCB, right after the variable-length CDB. 1637 1637 */ 1638 1638 if (pTaskState->fIs24Bit) 1639 { 1639 { 1640 1640 GCPhysAddrSenseBuffer = pTaskState->MailboxGuest.u32PhysAddrCCB; 1641 1641 GCPhysAddrSenseBuffer += pTaskState->CommandControlBlockGuest.c.cbCDB + RT_OFFSETOF(CCB24, abCDB); … … 1844 1844 { 1845 1845 /* Some Adaptec AHA-154x drivers (e.g. OS/2) execute this command and expect 1846 * it to fail. If it succeeds, the drivers refuse to load. However, some newer 1847 * Adaptec 154x models supposedly support it too?? 1846 * it to fail. If it succeeds, the drivers refuse to load. However, some newer 1847 * Adaptec 154x models supposedly support it too?? 1848 1848 */ 1849 1849 … … 1905 1905 /* The area for incoming mailboxes is right after the last entry of outgoing mailboxes. */ 1906 1906 pBusLogic->GCPhysAddrMailboxIncomingBase = pBusLogic->GCPhysAddrMailboxOutgoingBase + (pBusLogic->cMailbox * sizeof(Mailbox24)); 1907 1907 1908 1908 Log(("GCPhysAddrMailboxOutgoingBase=%RGp\n", pBusLogic->GCPhysAddrMailboxOutgoingBase)); 1909 1909 Log(("GCPhysAddrMailboxIncomingBase=%RGp\n", pBusLogic->GCPhysAddrMailboxIncomingBase)); 1910 1910 Log(("cMailboxes=%u (24-bit mode)\n", pBusLogic->cMailbox)); 1911 1911 LogRel(("Initialized 24-bit mailbox, %d entries at %08x\n", pRequest->cMailbox, ADDR_TO_U32(pRequest->aMailboxBaseAddr))); 1912 1912 1913 1913 pBusLogic->regStatus &= ~BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED; 1914 1914 pBusLogic->cbReplyParametersLeft = 0; … … 2297 2297 case BUSLOGICCOMMAND_WRITE_BUSMASTER_CHIP_FIFO: 2298 2298 pBusLogic->cbCommandParametersLeft = 3; 2299 break; 2299 break; 2300 2300 case BUSLOGICCOMMAND_INITIALIZE_MAILBOX: 2301 2301 pBusLogic->cbCommandParametersLeft = sizeof(RequestInitMbx); … … 2326 2326 #ifndef IN_RING3 2327 2327 /* This command must be executed in R3 as it rehooks the ISA I/O port. */ 2328 if (pBusLogic->uOperationCode == BUSLOGICCOMMAND_MODIFY_IO_ADDRESS) 2328 if (pBusLogic->uOperationCode == BUSLOGICCOMMAND_MODIFY_IO_ADDRESS) 2329 2329 { 2330 2330 rc = VINF_IOM_R3_IOPORT_WRITE; … … 2630 2630 { 2631 2631 /* Unregister the old range, if any. */ 2632 if (pBusLogic->IOISABase) 2632 if (pBusLogic->IOISABase) 2633 2633 rc = PDMDevHlpIOPortDeregister(pBusLogic->CTX_SUFF(pDevIns), pBusLogic->IOISABase, 4); 2634 2634 2635 if (RT_SUCCESS(rc)) 2635 if (RT_SUCCESS(rc)) 2636 2636 { 2637 2637 pBusLogic->IOISABase = 0; /* First mark as unregistered. */ … … 2993 2993 /** 2994 2994 * Read a mailbox from guest memory. Convert 24-bit mailboxes to 2995 * 32-bit format. 2995 * 32-bit format. 2996 2996 * 2997 2997 * @returns Mailbox guest physical address. … … 3485 3485 if (pszArgs) 3486 3486 fVerbose = strstr(pszArgs, "verbose") != NULL; 3487 3487 3488 3488 /* Show basic information. */ 3489 3489 pHlp->pfnPrintf(pHlp, … … 3511 3511 pHlp->pfnPrintf(pHlp, "Current command: %02X\n", pThis->uOperationCode); 3512 3512 3513 if (fVerbose && (pThis->regStatus & BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED) == 0) 3513 if (fVerbose && (pThis->regStatus & BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED) == 0) 3514 3514 { 3515 3515 RTGCPHYS GCMailbox; … … 3564 3564 { 3565 3565 PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), GCMailbox, &Mbx32, sizeof(Mailbox32)); 3566 pHlp->pfnPrintf(pHlp, " slot %03d: CCB at %08X completion code %02X BTSTAT %02X SDSTAT %02X", i, 3566 pHlp->pfnPrintf(pHlp, " slot %03d: CCB at %08X completion code %02X BTSTAT %02X SDSTAT %02X", i, 3567 3567 Mbx32.u32PhysAddrCCB, Mbx32.u.in.uCompletionCode, Mbx32.u.in.uHostAdapterStatus, Mbx32.u.in.uTargetDeviceStatus); 3568 3568 pHlp->pfnPrintf(pHlp, "%s\n", pThis->uMailboxOutgoingPositionCurrent == i ? " *" : ""); -
trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp
r45062 r48947 92 92 dwLastError = GetLastError(); 93 93 rc = RTErrConvertFromWin32(dwLastError); 94 Log(("DrvHostFloppy: IOCTL_DISK_GET_DRIVE_GEOMETRY(%s) failed, LastError=%d rc=%Rrc\n", 94 Log(("DrvHostFloppy: IOCTL_DISK_GET_DRIVE_GEOMETRY(%s) failed, LastError=%d rc=%Rrc\n", 95 95 pThis->pszDevice, dwLastError, rc)); 96 96 return rc; -
trunk/src/VBox/Devices/Storage/DrvSCSI.cpp
r47829 r48947 694 694 695 695 /** 696 * Called when media is unmounted 697 * 696 * Called when media is unmounted 697 * 698 698 * @param pInterface Pointer to the interface structure containing the called function pointer. 699 699 */ … … 961 961 PDMBLOCKTYPE enmType = pThis->pDrvBlock->pfnGetType(pThis->pDrvBlock); 962 962 VSCSILUNTYPE enmLunType; 963 switch (enmType) 963 switch (enmType) 964 964 { 965 965 case PDMBLOCKTYPE_HARD_DISK: -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r48872 r48947 623 623 624 624 /** 625 * vvl: this structure duplicate meaning of sockaddr, 625 * vvl: this structure duplicate meaning of sockaddr, 626 626 * perhaps it'd be better to get rid of it. 627 627 */ … … 681 681 int iInetFamily = PF_INET; 682 682 struct in_addr ip; 683 #ifdef VBOX_WITH_NEW_LWIP 683 #ifdef VBOX_WITH_NEW_LWIP 684 684 ip6_addr_t ip6; 685 685 #endif 686 686 687 687 /* Check whether lwIP is set up in this VM instance. */ 688 688 if (!DevINIPConfigured()) … … 696 696 if (inet6_aton(pszAddress, &ip6)) 697 697 iInetFamily = PF_INET6; 698 else /* concatination with if */ 699 #endif 698 else /* concatination with if */ 699 #endif 700 700 if (!lwip_inet_aton(pszAddress, &ip)) 701 701 { -
trunk/src/VBox/Devices/Storage/UsbMsd.cpp
r44528 r48947 55 55 56 56 /** 57 * USB MSD Command Block Wrapper or CBW. The command block 57 * USB MSD Command Block Wrapper or CBW. The command block 58 58 * itself (CBWCB) contains protocol-specific data (here SCSI). 59 59 */ -
trunk/src/VBox/Devices/Storage/VSCSI/VSCSILun.cpp
r44528 r48947 120 120 * 121 121 * @returns VBox status code. 122 * @param hVScsiLun The virtual SCSI LUN 122 * @param hVScsiLun The virtual SCSI LUN 123 123 * mounting the medium. 124 124 */ … … 142 142 * 143 143 * @returns VBox status code. 144 * @param hVScsiLun The virtual SCSI LUN 144 * @param hVScsiLun The virtual SCSI LUN 145 145 * mounting the medium. 146 146 */ -
trunk/src/VBox/Devices/Storage/VSCSI/VSCSILunMmc.cpp
r46597 r48947 186 186 unsigned uCmd = pVScsiReq->pbCDB[0]; 187 187 188 /* 188 /* 189 189 * GET CONFIGURATION, GET EVENT/STATUS NOTIFICATION, INQUIRY, and REQUEST SENSE commands 190 190 * operate even when a unit attention condition exists for initiator; every other command … … 194 194 { 195 195 /* 196 * A note on media changes: As long as a medium is not present, the unit remains in 197 * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium 198 * is inserted; however, we internally keep the 'not ready' state until we've had 196 * A note on media changes: As long as a medium is not present, the unit remains in 197 * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium 198 * is inserted; however, we internally keep the 'not ready' state until we've had 199 199 * a chance to report the UNIT ATTENTION status indicating a media change. 200 200 */ … … 205 205 pVScsiLunMmc->Core.fReady = true; 206 206 } 207 else 207 else 208 208 rcReq = vscsiLunReqSenseErrorSet(pVScsiLun, pVScsiReq, SCSI_SENSE_NOT_READY, 209 209 SCSI_ASC_MEDIUM_NOT_PRESENT, 0x00); … … 431 431 cbMax = vscsiBE2HU16(&pVScsiReq->pbCDB[7]); 432 432 fMSF = (pVScsiReq->pbCDB[1] >> 1) & 1; 433 switch (format) 433 switch (format) 434 434 { 435 435 case 0x00: … … 461 461 vscsiDeviceReqComplete(pVScsiLun->pVScsiDevice, pVScsiReq, rcReq, false, VINF_SUCCESS); 462 462 } 463 else if (!cSectorTransfer) 463 else if (!cSectorTransfer) 464 464 { 465 465 /* A 0 transfer length is not an error. */
Note:
See TracChangeset
for help on using the changeset viewer.