Changeset 6602e97 in mainline for uspace/drv/bus/usb/ehci/hw_struct
- Timestamp:
- 2014-01-25T07:06:48Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a752c78c
- Parents:
- 3f2cb17
- Location:
- uspace/drv/bus/usb/ehci/hw_struct
- Files:
-
- 1 added
- 2 edited
-
queue_head.h (modified) (1 diff)
-
transfer_descriptor.c (added)
-
transfer_descriptor.h (modified) (1 diff)
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); -
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h
r3f2cb17 r6602e97 67 67 68 68 volatile uint32_t buffer_pointer[5]; 69 #define SITD_BUFFER_POINTER_MASK 0xfffff00069 #define TD_BUFFER_POINTER_MASK 0xfffff000 70 70 /* Only the first page pointer */ 71 #define SITD_BUFFER_POINTER_CURRENT_MASK 0xfff 72 #define SITD_BUFFER_POINTER_CURRENT_SHIFT 0 71 #define TD_BUFFER_POINTER_OFFSET_MASK 0xfff 73 72 74 73 } td_t; 74 75 void td_init(td_t *td, const td_t *next, usb_direction_t dir, const void * buf, 76 size_t buf_size, int toggle); 77 75 78 #endif 76 79 /**
Note:
See TracChangeset
for help on using the changeset viewer.
