- Timestamp:
- Aug 30, 2010 8:11:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r32054 r32077 3139 3139 3140 3140 /** 3141 * Checks if an endpoint has TDs queued (not necessarily ready to have them processed). 3142 * 3143 * @returns true if endpoint may have TDs queued. 3144 * @param pEd The endpoint data. 3145 */ 3146 DECLINLINE(bool) ohciIsEdPresent(PCOHCIED pEd) 3147 { 3148 return (pEd->HeadP & ED_PTR_MASK) != (pEd->TailP & ED_PTR_MASK) 3149 && !(pEd->HeadP & ED_HEAD_HALTED); 3150 } 3151 3152 3153 /** 3141 3154 * Services the bulk list. 3142 3155 * … … 3262 3275 ohciReadEd(pOhci, EdAddr, &Ed); 3263 3276 Assert(!(Ed.hwinfo & ED_HWINFO_ISO)); /* the guest is screwing us */ 3264 if (ohciIsEd Ready(&Ed))3277 if (ohciIsEdPresent(&Ed)) 3265 3278 { 3266 3279 uint32_t TdAddr = Ed.HeadP & ED_PTR_MASK;
Note:
See TracChangeset
for help on using the changeset viewer.