Ignore:
Timestamp:
2014-01-25T07:06:48Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a752c78c
Parents:
3f2cb17
Message:

ehci: Implement batch structure initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/hw_struct/queue_head.h

    r3f2cb17 r6602e97  
    178178}
    179179
     180static inline bool qh_halted(const qh_t *qh)
     181{
     182        assert(qh);
     183        return (EHCI_MEM32_RD(qh->status) & QH_STATUS_HALTED_FLAG);
     184}
     185
     186static inline void qh_halt(qh_t *qh)
     187{
     188        assert(qh);
     189        EHCI_MEM32_SET(qh->status, QH_STATUS_HALTED_FLAG);
     190}
     191
     192static inline bool qh_transfer_pending(const qh_t *qh)
     193{
     194        assert(qh);
     195        return !(EHCI_MEM32_RD(qh->next) & LINK_POINTER_TERMINATE_FLAG);
     196}
     197
    180198
    181199void qh_init(qh_t *instance, const endpoint_t *ep);
Note: See TracChangeset for help on using the changeset viewer.