Changeset e67c50a in mainline for uspace/drv/bus/usb/ohci/hw_struct
- Timestamp:
- 2018-02-01T21:13:23Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64ce0c1
- Parents:
- 3e6ff9a
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-02-01 21:13:22)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-02-01 21:13:23)
- Location:
- uspace/drv/bus/usb/ohci/hw_struct
- Files:
-
- 3 edited
-
endpoint_descriptor.h (modified) (1 diff)
-
transfer_descriptor.c (modified) (1 diff)
-
transfer_descriptor.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.h
r3e6ff9a re67c50a 165 165 166 166 /** 167 * Set the HeadP of ED. Do not call unless the ED is Halted. 168 * @param instance ED 169 */ 170 static inline void ed_set_head_td(ed_t *instance, const td_t *td) 171 { 172 assert(instance); 173 const uintptr_t pa = addr_to_phys(td); 174 OHCI_MEM32_WR(instance->td_head, pa & ED_TDHEAD_PTR_MASK); 175 } 176 177 /** 167 178 * Set next ED in ED chain. 168 179 * @param instance ED to modify -
uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c
r3e6ff9a re67c50a 88 88 } 89 89 90 td_set_next(instance, next); 91 } 92 93 void td_set_next(td_t *instance, const td_t *next) 94 { 90 95 OHCI_MEM32_WR(instance->next, addr_to_phys(next) & TD_NEXT_PTR_MASK); 96 } 91 97 92 }93 98 /** 94 99 * @} -
uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h
r3e6ff9a re67c50a 92 92 } __attribute__((packed)) td_t; 93 93 94 void td_init(td_t * instance, const td_t *next,95 usb_direction_t dir, const void *buffer, size_t size, int toggle);94 void td_init(td_t *, const td_t *, usb_direction_t, const void *, size_t, int); 95 void td_set_next(td_t *, const td_t *); 96 96 97 97 /**
Note:
See TracChangeset
for help on using the changeset viewer.
