Changeset 104302 in vbox for trunk/src/VBox/Devices/USB
- Timestamp:
- Apr 12, 2024 7:31:00 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r104277 r104302 3088 3088 * we do not raise an unrecoverable error but the caller may wish to. 3089 3089 */ 3090 static bool ohciR3GetDirection(PPDMDEVINS pDevIns, POHCI pThis, POHCICC pThisCC, PCOHCIED pEd, VUSBDIRECTION *pEnmDir)3090 static VUSBDIRECTION ohciR3GetDirection(PPDMDEVINS pDevIns, POHCI pThis, POHCICC pThisCC, PCOHCIED pEd) 3091 3091 { 3092 3092 RT_NOREF(pThisCC); … … 3102 3102 default: 3103 3103 Log(("ohciR3GetDirection: Invalid direction!!!! Ed.hwinfo=%#x\n", pEd->hwinfo)); 3104 *pEnmDir = VUSBDIRECTION_INVALID;3105 return false;3106 3104 } 3107 3105 } … … 3124 3122 default: 3125 3123 Log(("ohciR3GetDirection: Invalid direction!!!! Td.hwinfo=%#x Ed.hwinfo=%#x\n", Td.hwinfo, pEd->hwinfo)); 3126 *pEnmDir = VUSBDIRECTION_INVALID;3127 return false;3128 3124 } 3129 3125 } 3130 3126 } 3131 3127 3132 *pEnmDir = enmDir; 3133 return true; 3128 return enmDir; 3134 3129 } 3135 3130 … … 3890 3885 uint8_t uAddr = Ed.hwinfo & ED_HWINFO_FUNCTION; 3891 3886 uint8_t uEndPt = (Ed.hwinfo & ED_HWINFO_ENDPOINT) >> ED_HWINFO_ENDPOINT_SHIFT; 3892 VUSBDIRECTION enmDir ;3893 if ( ohciR3GetDirection(pDevIns, pThis, pThisCC, &Ed, &enmDir))3887 VUSBDIRECTION enmDir = ohciR3GetDirection(pDevIns, pThis, pThisCC, &Ed); 3888 if (enmDir != VUSBDIRECTION_INVALID) 3894 3889 { 3895 3890 pThisCC->RootHub.pIRhConn->pfnAbortEpByAddr(pThisCC->RootHub.pIRhConn, uAddr, uEndPt, enmDir); … … 3950 3945 uint8_t uAddr = Ed.hwinfo & ED_HWINFO_FUNCTION; 3951 3946 uint8_t uEndPt = (Ed.hwinfo & ED_HWINFO_ENDPOINT) >> ED_HWINFO_ENDPOINT_SHIFT; 3952 VUSBDIRECTION enmDir ;3953 if ( ohciR3GetDirection(pDevIns, pThis, pThisCC, &Ed, &enmDir))3947 VUSBDIRECTION enmDir = ohciR3GetDirection(pDevIns, pThis, pThisCC, &Ed); 3948 if (enmDir != VUSBDIRECTION_INVALID) 3954 3949 { 3955 3950 pThisCC->RootHub.pIRhConn->pfnAbortEpByAddr(pThisCC->RootHub.pIRhConn, uAddr, uEndPt, enmDir); … … 4120 4115 uint8_t uAddr = Ed.hwinfo & ED_HWINFO_FUNCTION; 4121 4116 uint8_t uEndPt = (Ed.hwinfo & ED_HWINFO_ENDPOINT) >> ED_HWINFO_ENDPOINT_SHIFT; 4122 VUSBDIRECTION enmDir ;4123 if ( ohciR3GetDirection(pDevIns, pThis, pThisCC, &Ed, &enmDir))4117 VUSBDIRECTION enmDir = ohciR3GetDirection(pDevIns, pThis, pThisCC, &Ed); 4118 if (enmDir != VUSBDIRECTION_INVALID) 4124 4119 { 4125 4120 pThisCC->RootHub.pIRhConn->pfnAbortEpByAddr(pThisCC->RootHub.pIRhConn, uAddr, uEndPt, enmDir);
Note:
See TracChangeset
for help on using the changeset viewer.