Changeset 7628050 in mainline for uspace/drv/ohci/hw_struct/endpoint_descriptor.h
- Timestamp:
- 2011-04-10T22:30:12Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c6fe469
- Parents:
- eaf1e3d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hw_struct/endpoint_descriptor.h
reaf1e3d r7628050 53 53 #define ED_STATUS_D_MASK (0x3) /* direction */ 54 54 #define ED_STATUS_D_SHIFT (11) 55 #define ED_STATUS_D_ IN(0x1)56 #define ED_STATUS_D_ OUT(0x2)55 #define ED_STATUS_D_OUT (0x1) 56 #define ED_STATUS_D_IN (0x2) 57 57 #define ED_STATUS_D_TRANSFER (0x3) 58 58 … … 84 84 { 85 85 assert(instance); 86 instance->td_head = addr_to_phys(head) & ED_TDHEAD_PTR_MASK; 86 instance->td_head = 87 ((addr_to_phys(head) & ED_TDHEAD_PTR_MASK) 88 | (instance->td_head & ~ED_TDHEAD_PTR_MASK)); 87 89 instance->td_tail = addr_to_phys(tail) & ED_TDTAIL_PTR_MASK; 88 90 } … … 96 98 instance->next = pa; 97 99 } 98 99 100 #endif 100 101 /**
Note:
See TracChangeset
for help on using the changeset viewer.