Changeset b3258ad in mainline
- Timestamp:
- 2011-01-29T00:08:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4046c1ea
- Parents:
- 24b07ac4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/uhci_struct/transfer_descriptor.c
r24b07ac4 rb3258ad 41 41 uhci_print_verbose("Creating status field: %x.\n", instance->status); 42 42 43 uint32_t maxlen_field = (size == 0) ? 0x7FF : ((uint32_t) size - 1); 44 maxlen_field = (maxlen_field & TD_DEVICE_MAXLEN_MASK) 45 << TD_DEVICE_MAXLEN_POS; 43 46 instance->device = 0 44 | ( ((size - 1) & TD_DEVICE_MAXLEN_MASK) << TD_DEVICE_MAXLEN_POS)47 | (maxlen_field) 45 48 | ((target.address & TD_DEVICE_ADDRESS_MASK) << TD_DEVICE_ADDRESS_POS) 46 49 | ((target.endpoint & TD_DEVICE_ENDPOINT_MASK) << TD_DEVICE_ENDPOINT_POS)
Note:
See TracChangeset
for help on using the changeset viewer.