Changeset 668a2e8 in mainline


Ignore:
Timestamp:
2012-02-24T03:30:44Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd93bb2
Parents:
65eac7b
Message:

ohci: Fix direct access to memory structure.

Location:
uspace/drv/bus/usb/ohci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/endpoint_list.c

    r65eac7b r668a2e8  
    162162                qpos = "NOT FIRST";
    163163        }
    164         assert((prev_ed->next & ED_NEXT_PTR_MASK) == addr_to_phys(ep->ed));
     164        assert(ed_next(prev_ed) == addr_to_phys(ep->ed));
    165165        prev_ed->next = ep->ed->next;
    166166        /* Make sure ED is updated */
  • uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.h

    r65eac7b r668a2e8  
    177177}
    178178
     179static inline uint32_t ed_next(const ed_t *instance)
     180{
     181        assert(instance);
     182        return OHCI_RD(instance->next) & ED_NEXT_PTR_MASK;
     183}
     184
    179185/**
    180186 * Get toggle bit value stored in this ED
Note: See TracChangeset for help on using the changeset viewer.