VirtualBox

Ignore:
Timestamp:
Jan 27, 2019 9:45:05 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128434
Message:

DevATA: Clear interrupt when command register is written (ATA requirement). Also rely on the internal interrupt pending state more, to avoid unnecessary PDM calls (see bugref:5869).

File:
1 edited

Legend:

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

    r76553 r77010  
    6060/** Unknown media type. */
    6161#define MMC_MEDIA_TYPE_UNKNOWN          0
     62/** Medium is a DVD. */
     63#define MMC_MEDIA_TYPE_DVD              2
    6264/** Door closed, no media. */
    6365#define MMC_MEDIA_TYPE_NO_DISC       0x70
     
    586588        case 0x30:
    587589        case 0x31:
     590            /* For a CD, these must fail. */
     591#if 0
     592            if (pVScsiLunMmc->u32MediaTrackType != MMC_MEDIA_TYPE_DVD)
     593                return vscsiLunReqSenseErrorSet(&pVScsiLunMmc->Core, pVScsiReq, SCSI_SENSE_ILLEGAL_REQUEST,
     594                                                SCSI_ASC_CANNOT_READ_MEDIUM, SCSI_ASCQ_INCOMPATIBLE_FORMAT);
     595#endif
     596            RT_FALL_THRU();
    588597        case 0xff:
    589598            if (pVScsiReq->pbCDB[1] == 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette