Changeset 49195 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Oct 19, 2013 6:07:58 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 90072
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r49173 r49195 3827 3827 * Sets the given media track type. 3828 3828 */ 3829 static uint32_t a taMediumTypeSet(PAHCIPort pAhciPort, uint32_t MediaTrackType)3829 static uint32_t ahciMediumTypeSet(PAHCIPort pAhciPort, uint32_t MediaTrackType) 3830 3830 { 3831 3831 return ASMAtomicXchgU32(&pAhciPort->MediaTrackType, MediaTrackType); … … 7242 7242 pAhciPort->cNotifiedMediaChange = 2; 7243 7243 ahciMediumInserted(pAhciPort); 7244 a taMediumTypeSet(pAhciPort, ATA_MEDIA_TYPE_UNKNOWN);7244 ahciMediumTypeSet(pAhciPort, ATA_MEDIA_TYPE_UNKNOWN); 7245 7245 } 7246 7246 else … … 7269 7269 pAhciPort->cNotifiedMediaChange = 4; 7270 7270 ahciMediumRemoved(pAhciPort); 7271 a taMediumTypeSet(pAhciPort, ATA_MEDIA_TYPE_UNKNOWN);7271 ahciMediumTypeSet(pAhciPort, ATA_MEDIA_TYPE_UNKNOWN); 7272 7272 } 7273 7273 else … … 7674 7674 rc = PDMDevHlpDriverAttach(pDevIns, pAhciPort->iLUN, &pAhciPort->IBase, &pAhciPort->pDrvBase, NULL); 7675 7675 if (RT_SUCCESS(rc)) 7676 { 7676 7677 rc = ahciR3ConfigureLUN(pDevIns, pAhciPort); 7678 7679 /* 7680 * In case there is a medium inserted. 7681 */ 7682 ahciMediumInserted(pAhciPort); 7683 ahciMediumTypeSet(pAhciPort, ATA_MEDIA_TYPE_UNKNOWN); 7684 } 7677 7685 else 7678 7686 AssertMsgFailed(("Failed to attach LUN#%d. rc=%Rrc\n", pAhciPort->iLUN, rc));
Note:
See TracChangeset
for help on using the changeset viewer.