Changes in uspace/drv/ohci/hw_struct/endpoint_descriptor.h [9a6fde4:7628050] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hw_struct/endpoint_descriptor.h
r9a6fde4 r7628050 81 81 void ed_init(ed_t *instance, endpoint_t *ep); 82 82 83 static inline void ed_ set_td(ed_t *instance, td_t *td)83 static inline void ed_add_tds(ed_t *instance, td_t *head, td_t *tail) 84 84 { 85 85 assert(instance); 86 uintptr_t pa = addr_to_phys(td);87 86 instance->td_head = 88 (( pa& ED_TDHEAD_PTR_MASK)87 ((addr_to_phys(head) & ED_TDHEAD_PTR_MASK) 89 88 | (instance->td_head & ~ED_TDHEAD_PTR_MASK)); 90 instance->td_tail = pa & ED_TDTAIL_PTR_MASK; 91 } 92 93 static inline void ed_set_end_td(ed_t *instance, td_t *td) 94 { 95 assert(instance); 96 uintptr_t pa = addr_to_phys(td); 97 instance->td_tail = pa & ED_TDTAIL_PTR_MASK; 89 instance->td_tail = addr_to_phys(tail) & ED_TDTAIL_PTR_MASK; 98 90 } 99 91
Note:
See TracChangeset
for help on using the changeset viewer.