Changeset b3258ad in mainline


Ignore:
Timestamp:
2011-01-29T00:08:35Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4046c1ea
Parents:
24b07ac4
Message:

Null data packet handled in TD initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/uhci_struct/transfer_descriptor.c

    r24b07ac4 rb3258ad  
    4141        uhci_print_verbose("Creating status field: %x.\n", instance->status);
    4242
     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;
    4346        instance->device = 0
    44                 | (((size - 1) & TD_DEVICE_MAXLEN_MASK) << TD_DEVICE_MAXLEN_POS)
     47                | (maxlen_field)
    4548                | ((target.address & TD_DEVICE_ADDRESS_MASK) << TD_DEVICE_ADDRESS_POS)
    4649                | ((target.endpoint & TD_DEVICE_ENDPOINT_MASK) << TD_DEVICE_ENDPOINT_POS)
Note: See TracChangeset for help on using the changeset viewer.