Changeset 5d915b7 in mainline for uspace/drv/bus/usb/uhci/hw_struct/queue_head.h
- Timestamp:
- 2011-09-14T14:25:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e3d17f
- Parents:
- 1e647c7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hw_struct/queue_head.h
r1e647c7d r5d915b7 58 58 assert(instance); 59 59 60 instance->element = 0 | LINK_POINTER_TERMINATE_FLAG;61 instance->next = 0 | LINK_POINTER_TERMINATE_FLAG;60 instance->element = LINK_POINTER_TERM; 61 instance->next = LINK_POINTER_TERM; 62 62 } 63 63 /*----------------------------------------------------------------------------*/ … … 71 71 static inline void qh_set_next_qh(qh_t *instance, qh_t *next) 72 72 { 73 uint32_t pa = addr_to_phys(next); 73 /* Physical address has to be below 4GB, 74 * it is an UHCI limitation and malloc32 75 * should guarantee this */ 76 const uint32_t pa = addr_to_phys(next); 74 77 if (pa) { 75 78 instance->next = LINK_POINTER_QH(pa); … … 88 91 static inline void qh_set_element_td(qh_t *instance, td_t *td) 89 92 { 90 uint32_t pa = addr_to_phys(td); 93 /* Physical address has to be below 4GB, 94 * it is an UHCI limitation and malloc32 95 * should guarantee this */ 96 const uint32_t pa = addr_to_phys(td); 91 97 if (pa) { 92 98 instance->element = LINK_POINTER_TD(pa);
Note:
See TracChangeset
for help on using the changeset viewer.