VirtualBox

Ignore:
Timestamp:
Mar 22, 2011 12:59:48 PM (14 years ago)
Author:
vboxsync
Message:

DevATA: Adjust maximum transfer length to the new value, fixes ATAPI drives for Windows XP

File:
1 edited

Legend:

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

    r36337 r36339  
    24512451
    24522452    Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
    2453     Assert(s->cbElementaryTransfer <= 32);
     2453    Assert(s->cbElementaryTransfer <= 80);
    24542454    /* Accept valid request types only, and only starting feature 0. */
    24552455    if ((s->aATAPICmd[1] & 0x03) == 3 || u16Sfn != 0)
     
    24722472    pbBuf += cbCopied;
    24732473
    2474 #if 0
    24752474    cbCopied = atapiGetConfigurationFillFeatureCore(s, pbBuf, cbBuf);
    24762475    cbBuf -= cbCopied;
     
    25002499    cbBuf -= cbCopied;
    25012500    pbBuf += cbCopied;
    2502 #endif
    25032501
    25042502    /* Set data length now - the field is not included in the final length. */
     
    32423240            /* No media change stuff here, it can confuse Linux guests. */
    32433241            cbMax = ataBE2H_U16(pbPacket + 7);
    3244             ataStartTransfer(s, RT_MIN(cbMax, 32), PDMBLOCKTXDIR_FROM_DEVICE, ATAFN_BT_ATAPI_CMD, ATAFN_SS_ATAPI_GET_CONFIGURATION, true);
     3242            ataStartTransfer(s, RT_MIN(cbMax, 80), PDMBLOCKTXDIR_FROM_DEVICE, ATAFN_BT_ATAPI_CMD, ATAFN_SS_ATAPI_GET_CONFIGURATION, true);
    32453243            break;
    32463244        case SCSI_INQUIRY:
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