Changeset 78528 in vbox
- Timestamp:
- May 15, 2019 8:31:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r78075 r78528 913 913 * @returns nothing. 914 914 * @param pThis The OHCI instance. 915 */ 916 DECLINLINE(void) ohciR3RaiseUnrecoverableError(POHCI pThis) 917 { 918 LogRelMax(10, ("OHCI#%d: Raising unrecoverable error\n", pThis->pDevInsR3->iInstance)); 915 * @param iCode Diagnostic code. 916 */ 917 DECLINLINE(void) ohciR3RaiseUnrecoverableError(POHCI pThis, int iCode) 918 { 919 LogRelMax(10, ("OHCI#%d: Raising unrecoverable error (%d)\n", pThis->pDevInsR3->iInstance, iCode)); 919 920 ohciR3SetInterrupt(pThis, OHCI_INTR_UNRECOVERABLE_ERROR); 920 921 } … … 2681 2682 if (!ohciR3BufInit(&Buf, pTd->cbp, pTd->be)) 2682 2683 { 2683 ohciR3RaiseUnrecoverableError(pThis );2684 ohciR3RaiseUnrecoverableError(pThis, 1); 2684 2685 return; 2685 2686 } … … 2712 2713 && Buf.aVecs[1].cb > (cbLeft - Buf.aVecs[0].cb))) 2713 2714 { 2714 ohciR3RaiseUnrecoverableError(pThis );2715 ohciR3RaiseUnrecoverableError(pThis, 2); 2715 2716 return; 2716 2717 } … … 2976 2977 if (!ohciR3BufInit(&Buf, Td.cbp, Td.be)) 2977 2978 { 2978 ohciR3RaiseUnrecoverableError(pThis );2979 ohciR3RaiseUnrecoverableError(pThis, 3); 2979 2980 return false; 2980 2981 } … … 2998 2999 default: 2999 3000 Log(("ohciR3ServiceTd: Invalid direction!!!! Td.hwinfo=%#x Ed.hwdinfo=%#x\n", Td.hwinfo, pEd->hwinfo)); 3000 ohciR3RaiseUnrecoverableError(pThis );3001 ohciR3RaiseUnrecoverableError(pThis, 4); 3001 3002 return false; 3002 3003 } … … 3036 3037 && Buf.aVecs[1].cb > (pUrb->cbData - Buf.aVecs[0].cb))) 3037 3038 { 3038 ohciR3RaiseUnrecoverableError(pThis );3039 ohciR3RaiseUnrecoverableError(pThis, 5); 3039 3040 VUSBIRhFreeUrb(pThis->RootHub.pIRhConn, pUrb); 3040 3041 return false; … … 3117 3118 if (!ohciR3BufInit(&Head.Buf, Head.Td.cbp, Head.Td.be)) 3118 3119 { 3119 ohciR3RaiseUnrecoverableError(pThis );3120 ohciR3RaiseUnrecoverableError(pThis, 6); 3120 3121 return false; 3121 3122 } … … 3139 3140 if (!ohciR3BufInit(&pCur->Buf, pCur->Td.cbp, pCur->Td.be)) 3140 3141 { 3141 ohciR3RaiseUnrecoverableError(pThis );3142 ohciR3RaiseUnrecoverableError(pThis, 7); 3142 3143 return false; 3143 3144 } … … 3175 3176 default: 3176 3177 Log(("ohciR3ServiceTdMultiple: Invalid direction!!!! Head.Td.hwinfo=%#x Ed.hwdinfo=%#x\n", Head.Td.hwinfo, pEd->hwinfo)); 3177 ohciR3RaiseUnrecoverableError(pThis );3178 ohciR3RaiseUnrecoverableError(pThis, 8); 3178 3179 return false; 3179 3180 } … … 3354 3355 default: 3355 3356 Log(("ohciR3ServiceIsochronousTd: Invalid direction!!!! Ed.hwdinfo=%#x\n", pEd->hwinfo)); 3356 ohciR3RaiseUnrecoverableError(pThis );3357 ohciR3RaiseUnrecoverableError(pThis, 9); 3357 3358 return false; 3358 3359 } … … 3387 3388 { 3388 3389 Log(("ITdAddr=%RX32 PSW%d.offset=%#x < offPrev=%#x!\n", ITdAddr, iR, off, offPrev)); /* => Unrecoverable Error*/ 3389 ohciR3RaiseUnrecoverableError(pThis );3390 ohciR3RaiseUnrecoverableError(pThis, 10); 3390 3391 return false; 3391 3392 } … … 3393 3394 { 3394 3395 Log(("ITdAddr=%RX32 PSW%d.CC=%#x < 'Not Accessed'!\n", ITdAddr, iR, PSW >> ITD_PSW_CC_SHIFT)); /* => Unrecoverable Error*/ 3395 ohciR3RaiseUnrecoverableError(pThis );3396 ohciR3RaiseUnrecoverableError(pThis, 11); 3396 3397 return false; 3397 3398 } … … 3406 3407 { 3407 3408 Log(("ITdAddr=%RX32 offEnd=%#x < offPrev=%#x!\n", ITdAddr, offEnd, offPrev)); /* => Unrecoverable Error*/ 3408 ohciR3RaiseUnrecoverableError(pThis );3409 ohciR3RaiseUnrecoverableError(pThis, 12); 3409 3410 return false; 3410 3411 }
Note:
See TracChangeset
for help on using the changeset viewer.