Changeset 34142 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Nov 17, 2010 6:37:52 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67862
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r34106 r34142 998 998 PAHCI pAhci = (PAHCI)pvUser; 999 999 1000 ahciHbaSetInterrupt(pAhci, pAhci->uCccPortNr, VINF_SUCCESS); 1000 int rc = ahciHbaSetInterrupt(pAhci, pAhci->uCccPortNr, VERR_IGNORED); 1001 AssertRC(rc); 1001 1002 } 1002 1003 #endif … … 1164 1165 1165 1166 if (pAhciPort->regIE & AHCI_PORT_IE_DHRE) 1166 ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VINF_SUCCESS); 1167 { 1168 int rc = ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VERR_IGNORED); 1169 AssertRC(rc); 1170 } 1167 1171 } 1168 1172 } … … 1241 1245 static int PortCmd_w(PAHCI ahci, PAHCIPort pAhciPort, uint32_t iReg, uint32_t u32Value) 1242 1246 { 1243 int rc = VINF_SUCCESS;1244 1247 ahciLog(("%s: write u32Value=%#010x\n", __FUNCTION__, u32Value)); 1245 1248 ahciLog(("%s: ICC=%d ASP=%d ALPE=%d DLAE=%d ATAPI=%d CPD=%d ISP=%d HPCP=%d PMA=%d CPS=%d CR=%d FR=%d ISS=%d CCS=%d FRE=%d CLO=%d POD=%d SUD=%d ST=%d\n", … … 1309 1312 1310 1313 if (pAhciPort->regIE & AHCI_PORT_IE_DHRE) 1311 ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VINF_SUCCESS); 1314 { 1315 int rc = ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VERR_IGNORED); 1316 AssertRC(rc); 1317 } 1312 1318 #endif 1313 1319 } … … 1346 1352 pAhciPort->regCMD = u32Value; 1347 1353 1348 return rc;1354 return VINF_SUCCESS; 1349 1355 } 1350 1356 … … 4453 4459 static void ahciFinishStorageDeviceReset(PAHCIPort pAhciPort, PAHCIPORTTASKSTATE pAhciPortTaskState) 4454 4460 { 4461 int rc; 4462 4455 4463 /* Send a status good D2H FIS. */ 4456 4464 ASMAtomicWriteU32(&pAhciPort->MediaEventStatus, ATA_EVENT_STATUS_UNCHANGED); … … 4466 4474 ASMAtomicOrU32(&pAhciPort->u32TasksFinished, (1 << pAhciPortTaskState->uTag)); 4467 4475 4468 ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VINF_SUCCESS); 4476 rc = ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VERR_IGNORED); 4477 AssertRC(rc); 4469 4478 } 4470 4479 … … 4547 4556 4548 4557 if (fAssertIntr) 4549 ahciHbaSetInterrupt(pAhci, pAhciPort->iLUN, VINF_SUCCESS); 4558 { 4559 int rc = ahciHbaSetInterrupt(pAhci, pAhciPort->iLUN, VERR_IGNORED); 4560 AssertRC(rc); 4561 } 4550 4562 } 4551 4563 } … … 4611 4623 4612 4624 if (fAssertIntr) 4613 ahciHbaSetInterrupt(pAhci, pAhciPort->iLUN, VINF_SUCCESS); 4625 { 4626 int rc = ahciHbaSetInterrupt(pAhci, pAhciPort->iLUN, VERR_IGNORED); 4627 AssertRC(rc); 4628 } 4614 4629 } 4615 4630 } … … 7198 7213 pAhciPort->regSERR |= AHCI_PORT_SERR_N; 7199 7214 if (pAhciPort->regIE & AHCI_PORT_IE_CPDE) 7200 ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VINF_SUCCESS); 7215 { 7216 int rc = ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VERR_IGNORED); 7217 AssertRC(rc); 7218 } 7201 7219 } 7202 7220 } … … 7235 7253 pAhciPort->regSERR |= AHCI_PORT_SERR_N; 7236 7254 if (pAhciPort->regIE & AHCI_PORT_IE_CPDE) 7237 ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VINF_SUCCESS); 7255 { 7256 int rc = ahciHbaSetInterrupt(pAhciPort->CTX_SUFF(pAhci), pAhciPort->iLUN, VERR_IGNORED); 7257 AssertRC(rc); 7258 } 7238 7259 } 7239 7260 }
Note:
See TracChangeset
for help on using the changeset viewer.