VirtualBox

Changeset 32073 in vbox for trunk/src


Ignore:
Timestamp:
Aug 29, 2010 5:09:41 PM (14 years ago)
Author:
vboxsync
Message:

AHCI: CD/DVD fixes

File:
1 edited

Legend:

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

    r32072 r32073  
    19021902    pAhciPort->uActTasksActive = 0;
    19031903
     1904    ASMAtomicWriteU32(&pAhciPort->MediaEventStatus, ATA_EVENT_STATUS_UNCHANGED);
     1905
    19041906    if (pAhciPort->pDrvBase)
    19051907    {
     
    37653767            else
    37663768                atapiCmdErrorSimple(pAhciPort, pAhciPortTaskState, SCSI_SENSE_NOT_READY, SCSI_ASC_MEDIUM_NOT_PRESENT);
     3769            break;
     3770        case SCSI_GET_EVENT_STATUS_NOTIFICATION:
     3771            cbMax = ataBE2H_U16(pbPacket + 7);
     3772            atapiDoTransfer(pAhciPort, pAhciPortTaskState, ATAFN_SS_ATAPI_GET_EVENT_STATUS_NOTIFICATION);
    37673773            break;
    37683774        case SCSI_MODE_SENSE_10:
     
    43914397{
    43924398    /* Send a status good D2H FIS. */
     4399    ASMAtomicWriteU32(&pAhciPort->MediaEventStatus, ATA_EVENT_STATUS_UNCHANGED);
    43934400    pAhciPort->fResetDevice = false;
    43944401    if (pAhciPort->regCMD & AHCI_PORT_CMD_FRE)
     
    71427149        pAhciPort->PCHSGeometry.cHeads     = 0;
    71437150        pAhciPort->PCHSGeometry.cSectors   = 0;
    7144         LogRel(("AHCI LUN#%d: CD/DVD, total number of sectors %Ld\n", pAhciPort->iLUN, pAhciPort->cTotalSectors));
     7151        LogRel(("AHCI LUN#%d: CD/DVD, total number of sectors %Ld, passthrough %s\n", pAhciPort->iLUN, pAhciPort->cTotalSectors, (pAhciPort->fATAPIPassthrough ? "enabled" : "disabled")));
    71457152    }
    71467153    else
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