VirtualBox

Changeset 32077 in vbox for trunk/src


Ignore:
Timestamp:
Aug 30, 2010 8:11:18 AM (14 years ago)
Author:
vboxsync
Message:

OHCI: ED checks must be less strict when looking for URBs to be undone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r32054 r32077  
    31393139
    31403140/**
     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 */
     3146DECLINLINE(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/**
    31413154 * Services the bulk list.
    31423155 *
     
    32623275        ohciReadEd(pOhci, EdAddr, &Ed);
    32633276        Assert(!(Ed.hwinfo & ED_HWINFO_ISO)); /* the guest is screwing us */
    3264         if (ohciIsEdReady(&Ed))
     3277        if (ohciIsEdPresent(&Ed))
    32653278        {
    32663279            uint32_t TdAddr = Ed.HeadP & ED_PTR_MASK;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette