Changeset ae3a941 in mainline for uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.h
- Timestamp:
- 2018-02-26T16:51:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e773f58
- Parents:
- 3692678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.h
r3692678 rae3a941 107 107 #define ED_NEXT_PTR_MASK (0xfffffff0) 108 108 #define ED_NEXT_PTR_SHIFT (0) 109 } __attribute__((packed, aligned(32))) ed_t;109 } __attribute__((packed, aligned(32))) ed_t; 110 110 111 111 void ed_init(ed_t *instance, const endpoint_t *ep, const td_t *td); … … 204 204 { 205 205 assert(instance); 206 return (OHCI_MEM32_RD(instance->td_head) & ED_TDHEAD_TOGGLE_CARRY) ? 1 : 0;206 return !!(OHCI_MEM32_RD(instance->td_head) & ED_TDHEAD_TOGGLE_CARRY); 207 207 } 208 208
Note:
See TracChangeset
for help on using the changeset viewer.