VirtualBox

Changeset 59250 in vbox


Ignore:
Timestamp:
Jan 4, 2016 2:24:32 PM (9 years ago)
Author:
vboxsync
Message:

Build fix

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r59248 r59250  
    175175                0, 0, 0, 0, 0
    176176            };
    177             rc = DRVHostBaseScsiCmd(pThis, abCmd, 12, PDMBLOCKTXDIR_FROM_DEVICE, pvBuf, &cbRead32, NULL, 0, 0);
     177            rc = DRVHostBaseScsiCmd(pThis, abCmd, 12, PDMMEDIATXDIR_FROM_DEVICE, pvBuf, &cbRead32, NULL, 0, 0);
    178178
    179179            off    += cbRead32;
     
    700700                    0,0,0,0,0,0,0,0,0,0
    701701                };
    702                 DRVHostBaseScsiCmd(pThis, abCmd, 6, PDMBLOCKTXDIR_NONE, NULL, NULL, NULL, 0, 0);
     702                DRVHostBaseScsiCmd(pThis, abCmd, 6, PDMMEDIATXDIR_NONE, NULL, NULL, NULL, 0, 0);
    703703            }
    704704            return VINF_SUCCESS;
     
    11671167        0,0,0,0,0,0,0,0,0
    11681168    };
    1169     int rc = DRVHostBaseScsiCmd(pThis, abCmd, 6, PDMBLOCKTXDIR_FROM_DEVICE, &Buf, &cbBuf, NULL, 0, 0);
     1169    int rc = DRVHostBaseScsiCmd(pThis, abCmd, 6, PDMMEDIATXDIR_FROM_DEVICE, &Buf, &cbBuf, NULL, 0, 0);
    11701170    if (RT_SUCCESS(rc))
    11711171    {
     
    12381238 * @param cbCmd             The size of the SCSI command.
    12391239 * @param enmTxDir          The transfer direction.
    1240  * @param pvBuf             The buffer. Can be NULL if enmTxDir is PDMBLOCKTXDIR_NONE.
     1240 * @param pvBuf             The buffer. Can be NULL if enmTxDir is PDMMEDIATXDIR_NONE.
    12411241 * @param pcbBuf            Where to get the buffer size from and put the actual transfer size. Can be NULL.
    12421242 * @param pbSense           Where to put the sense data. Can be NULL.
     
    12501250 * @todo Fix VERR_UNRESOLVED_ERROR abuse.
    12511251 */
    1252 DECLCALLBACK(int) DRVHostBaseScsiCmd(PDRVHOSTBASE pThis, const uint8_t *pbCmd, size_t cbCmd, PDMBLOCKTXDIR enmTxDir,
     1252DECLCALLBACK(int) DRVHostBaseScsiCmd(PDRVHOSTBASE pThis, const uint8_t *pbCmd, size_t cbCmd, PDMMEDIATXDIR enmTxDir,
    12531253                                     void *pvBuf, uint32_t *pcbBuf, uint8_t *pbSense, size_t cbSense, uint32_t cTimeoutMillies)
    12541254{
     
    12561256     * Minimal input validation.
    12571257     */
    1258     Assert(enmTxDir == PDMBLOCKTXDIR_NONE || enmTxDir == PDMBLOCKTXDIR_FROM_DEVICE || enmTxDir == PDMBLOCKTXDIR_TO_DEVICE);
     1258    Assert(enmTxDir == PDMMEDIATXDIR_NONE || enmTxDir == PDMMEDIATXDIR_FROM_DEVICE || enmTxDir == PDMMEDIATXDIR_TO_DEVICE);
    12591259    Assert(!pvBuf || pcbBuf);
    1260     Assert(pvBuf || enmTxDir == PDMBLOCKTXDIR_NONE);
     1260    Assert(pvBuf || enmTxDir == PDMMEDIATXDIR_NONE);
    12611261    Assert(pbSense || !cbSense);
    12621262    AssertPtr(pbCmd);
     
    12821282
    12831283        /* Setup the buffer. */
    1284         if (enmTxDir == PDMBLOCKTXDIR_NONE)
     1284        if (enmTxDir == PDMMEDIATXDIR_NONE)
    12851285            irc = (*ppScsiTaskI)->SetScatterGatherEntries(ppScsiTaskI, NULL, 0, 0, kSCSIDataTransfer_NoDataTransfer);
    12861286        else
     
    12881288            IOVirtualRange Range = { (IOVirtualAddress)pvBuf, cbBuf };
    12891289            irc = (*ppScsiTaskI)->SetScatterGatherEntries(ppScsiTaskI, &Range, 1, cbBuf,
    1290                                                           enmTxDir == PDMBLOCKTXDIR_FROM_DEVICE
     1290                                                          enmTxDir == PDMMEDIATXDIR_FROM_DEVICE
    12911291                                                          ? kSCSIDataTransfer_FromTargetToInitiator
    12921292                                                          : kSCSIDataTransfer_FromInitiatorToTarget);
     
    13271327        else
    13281328        {
    1329             rc = enmTxDir == PDMBLOCKTXDIR_NONE
     1329            rc = enmTxDir == PDMMEDIATXDIR_NONE
    13301330               ? VERR_DEV_IO_ERROR
    1331                : enmTxDir == PDMBLOCKTXDIR_FROM_DEVICE
     1331               : enmTxDir == PDMMEDIATXDIR_FROM_DEVICE
    13321332               ? VERR_READ_ERROR
    13331333               : VERR_WRITE_ERROR;
     
    13791379
    13801380        /* Set direction. */
    1381         if (enmTxDir == PDMBLOCKTXDIR_NONE)
     1381        if (enmTxDir == PDMMEDIATXDIR_NONE)
    13821382            fFlags = CAM_DIR_NONE;
    1383         else if (enmTxDir == PDMBLOCKTXDIR_FROM_DEVICE)
     1383        else if (enmTxDir == PDMMEDIATXDIR_FROM_DEVICE)
    13841384            fFlags = CAM_DIR_IN;
    13851385        else
  • trunk/src/VBox/Devices/Storage/DrvHostBase.h

    r59248 r59250  
    185185DECLCALLBACK(void) DRVHostBaseDestruct(PPDMDRVINS pDrvIns);
    186186#if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
    187 DECLCALLBACK(int) DRVHostBaseScsiCmd(PDRVHOSTBASE pThis, const uint8_t *pbCmd, size_t cbCmd, PDMBLOCKTXDIR enmTxDir,
     187DECLCALLBACK(int) DRVHostBaseScsiCmd(PDRVHOSTBASE pThis, const uint8_t *pbCmd, size_t cbCmd, PDMMEDIATXDIR enmTxDir,
    188188                                     void *pvBuf, uint32_t *pcbBuf, uint8_t *pbSense, size_t cbSense, uint32_t cTimeoutMillies);
    189189#endif
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