VirtualBox

Changeset 37673 in vbox


Ignore:
Timestamp:
Jun 28, 2011 8:45:54 PM (14 years ago)
Author:
vboxsync
Message:

AHCI: Hotplug fixes

File:
1 edited

Legend:

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

    r37660 r37673  
    81648164            }
    81658165
    8166             if (RT_SUCCESS(rc) && pAhciPort->fATAPI)
    8167                 ahciMediumInserted(pAhciPort);
    8168 
    81698166            /*
    81708167             * Init vendor product data.
     
    81838180                ASMAtomicOrU32(&pAhciPort->regIS, AHCI_PORT_IS_CPDS | AHCI_PORT_IS_PRCS | AHCI_PORT_IS_PCS);
    81848181                ASMAtomicOrU32(&pAhciPort->regSERR, AHCI_PORT_SERR_X | AHCI_PORT_SERR_N);
     8182
     8183                if (pAhciPort->fATAPI)
     8184                    pAhciPort->regSIG = AHCI_PORT_SIG_ATAPI;
     8185                else
     8186                    pAhciPort->regSIG = AHCI_PORT_SIG_DISK;
     8187                pAhciPort->regSSTS = (0x01 << 8) | /* Interface is active. */
     8188                                     (0x02 << 4) | /* Generation 2 (3.0GBps) speed. */
     8189                                     (0x03 << 0);  /* Device detected and communication established. */
     8190
    81858191                if (   (pAhciPort->regIE & AHCI_PORT_IE_CPDE)
    81868192                    || (pAhciPort->regIE & AHCI_PORT_IE_PCE)
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