Changeset a752c78c in mainline for uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h
- Timestamp:
- 2014-01-25T07:07:54Z (9 years ago)
- Branches:
- lfn, master, serial
- Children:
- 23e5471
- Parents:
- 6602e97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h
r6602e97 ra752c78c 73 73 } td_t; 74 74 75 static inline bool td_active(const td_t *td) 76 { 77 assert(td); 78 return (EHCI_MEM32_RD(td->status) & TD_STATUS_HALTED_FLAG) != 0; 79 } 80 81 static inline size_t td_remain_size(const td_t *td) 82 { 83 assert(td); 84 return (EHCI_MEM32_RD(td->status) >> TD_STATUS_TOTAL_SHIFT) & 85 TD_STATUS_TOTAL_MASK; 86 } 87 88 int td_error(const td_t *td); 89 75 90 void td_init(td_t *td, const td_t *next, usb_direction_t dir, const void * buf, 76 91 size_t buf_size, int toggle);
Note: See TracChangeset
for help on using the changeset viewer.