Changeset 32082 in vbox for trunk/src/VBox
- Timestamp:
- Aug 30, 2010 10:01:36 AM (14 years ago)
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r32076 r32082 3510 3510 case SCSI_READ_CD: 3511 3511 iATAPILBA = ataBE2H_U32(pAhciPortTaskState->aATAPICmd + 2); 3512 cSectors = ataBE2H_U24(pAhciPortTaskState->aATAPICmd + 6) / pAhciPortTaskState->cbATAPISector;3512 cSectors = ataBE2H_U24(pAhciPortTaskState->aATAPICmd + 6); 3513 3513 break; 3514 3514 case SCSI_READ_CD_MSF: … … 4197 4197 case SCSI_READ_CD: 4198 4198 pAhciPortTaskState->cbATAPISector = 2048; /**< @todo this size is not always correct */ 4199 cbTransfer = ataBE2H_U24(pbPacket + 6) / pAhciPortTaskState->cbATAPISector* pAhciPortTaskState->cbATAPISector;4199 cbTransfer = ataBE2H_U24(pbPacket + 6) * pAhciPortTaskState->cbATAPISector; 4200 4200 enmTxDir = AHCITXDIR_READ; 4201 4201 goto sendcmd; -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r32076 r32082 1935 1935 case SCSI_READ_CD: 1936 1936 iATAPILBA = ataBE2H_U32(s->aATAPICmd + 2); 1937 cSectors = ataBE2H_U24(s->aATAPICmd + 6) / s->cbATAPISector;1937 cSectors = ataBE2H_U24(s->aATAPICmd + 6); 1938 1938 break; 1939 1939 case SCSI_READ_CD_MSF: … … 3190 3190 case SCSI_READ_CD: 3191 3191 s->cbATAPISector = 2048; /**< @todo this size is not always correct */ 3192 cbTransfer = ataBE2H_U24(pbPacket + 6) / s->cbATAPISector* s->cbATAPISector;3192 cbTransfer = ataBE2H_U24(pbPacket + 6) * s->cbATAPISector; 3193 3193 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE; 3194 3194 goto sendcmd;
Note:
See TracChangeset
for help on using the changeset viewer.