Ignore:
Timestamp:
2011-03-05T00:33:28Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
474d08e, 5079242
Parents:
c5b93dc
Message:

Use SPD on IN packets, use proper PID type

File:
1 edited

Legend:

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

    rc5b93dc reae83aa  
    3939
    4040void td_init(td_t *instance, int err_count, size_t size, bool toggle, bool iso,
    41     bool low_speed, usb_target_t target, int pid, void *buffer, td_t *next)
     41    bool low_speed, usb_target_t target, usb_packet_id pid, void *buffer, td_t *next)
    4242{
    4343        assert(instance);
    4444        assert(size < 1024);
     45        assert((pid == USB_PID_SETUP) || (pid == USB_PID_IN) || (pid == USB_PID_OUT));
    4546
    4647        instance->next = 0
     
    5354            | (iso ? TD_STATUS_ISOCHRONOUS_FLAG : 0)
    5455            | TD_STATUS_ERROR_ACTIVE;
     56
     57        if (pid == USB_PID_IN && !iso) {
     58                instance->status |= TD_STATUS_SPD_FLAG;
     59        }
    5560
    5661        instance->device = 0
Note: See TracChangeset for help on using the changeset viewer.