Changeset 6602e97 in mainline for uspace/drv/bus/usb/ehci/hw_struct/queue_head.h
- Timestamp:
- 2014-01-25T07:06:48Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a752c78c
- Parents:
- 3f2cb17
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hw_struct/queue_head.h
r3f2cb17 r6602e97 178 178 } 179 179 180 static 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 186 static inline void qh_halt(qh_t *qh) 187 { 188 assert(qh); 189 EHCI_MEM32_SET(qh->status, QH_STATUS_HALTED_FLAG); 190 } 191 192 static 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 180 198 181 199 void qh_init(qh_t *instance, const endpoint_t *ep);
Note:
See TracChangeset
for help on using the changeset viewer.