Changeset eaf5e86 in mainline for uspace/drv/bus/usb/xhci/hw_struct/common.h
- Timestamp:
- 2017-10-11T13:18:54Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63adb18
- Parents:
- ac18b08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hw_struct/common.h
rac18b08 reaf5e86 83 83 static inline void xhci_qword_set_bits(xhci_qword_t *storage, uint64_t value, unsigned hi, unsigned lo) 84 84 { 85 86 87 85 const uint64_t mask = host2xhci(64, BIT_RANGE(uint64_t, hi, lo)); 86 const uint64_t set = host2xhci(64, value << lo); 87 *storage = (*storage & ~mask) | set; 88 88 } 89 89
Note:
See TracChangeset
for help on using the changeset viewer.