Changeset 78530 in vbox for trunk/src/VBox/Devices/USB
- Timestamp:
- May 15, 2019 1:06:08 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 130574
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r78529 r78530 2096 2096 * 2097 2097 * @returns Flags whether the buffer could be initialised successfully. 2098 * @param pThis The OHCI instance. 2098 2099 * @param pBuf Ohci buffer. 2099 2100 * @param cbp Current buffer pointer. 32-bit physical address. 2100 2101 * @param be Last byte in buffer (BufferEnd). 32-bit physical address. 2101 2102 */ 2102 static bool ohciR3BufInit(POHCI BUF pBuf, uint32_t cbp, uint32_t be)2103 static bool ohciR3BufInit(POHCI pThis, POHCIBUF pBuf, uint32_t cbp, uint32_t be) 2103 2104 { 2104 2105 if (RT_UNLIKELY(be < cbp)) 2105 2106 { 2106 LogRelMax(10, ("OHCI#%d: cbp=%#010x be=%#010x\n", cbp, be));2107 LogRelMax(10, ("OHCI#%d: cbp=%#010x be=%#010x\n", pThis->pDevInsR3->iInstance, cbp, be)); 2107 2108 return false; 2108 2109 } … … 2683 2684 */ 2684 2685 OHCIBUF Buf; 2685 if (!ohciR3BufInit( &Buf, pTd->cbp, pTd->be))2686 if (!ohciR3BufInit(pThis, &Buf, pTd->cbp, pTd->be)) 2686 2687 { 2687 2688 ohciR3RaiseUnrecoverableError(pThis, 1); … … 2978 2979 ohciR3ReadTd(pThis, TdAddr, &Td); 2979 2980 OHCIBUF Buf; 2980 if (!ohciR3BufInit( &Buf, Td.cbp, Td.be))2981 if (!ohciR3BufInit(pThis, &Buf, Td.cbp, Td.be)) 2981 2982 { 2982 2983 ohciR3RaiseUnrecoverableError(pThis, 3); … … 3119 3120 /* read the head */ 3120 3121 ohciR3ReadTd(pThis, TdAddr, &Head.Td); 3121 if (!ohciR3BufInit( &Head.Buf, Head.Td.cbp, Head.Td.be))3122 if (!ohciR3BufInit(pThis, &Head.Buf, Head.Td.cbp, Head.Td.be)) 3122 3123 { 3123 3124 ohciR3RaiseUnrecoverableError(pThis, 6); … … 3141 3142 pCur->TdAddr = pTail->Td.NextTD & ED_PTR_MASK; 3142 3143 ohciR3ReadTd(pThis, pCur->TdAddr, &pCur->Td); 3143 if (!ohciR3BufInit( &pCur->Buf, pCur->Td.cbp, pCur->Td.be))3144 if (!ohciR3BufInit(pThis, &pCur->Buf, pCur->Td.cbp, pCur->Td.be)) 3144 3145 { 3145 3146 ohciR3RaiseUnrecoverableError(pThis, 7);
Note:
See TracChangeset
for help on using the changeset viewer.