Changeset ec700c7 in mainline for uspace/lib/usbdev/src/pipes.c


Ignore:
Timestamp:
2017-10-23T23:17:14Z (7 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
894f58c
Parents:
b724494
Message:

Superspeed companion descriptor is processed

Superspeed endpoint companion is now correctly read and processed while parsing descriptors.
As a side effect, mass storage endpoints now initialize correctly and therefore mass storage driver starts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/pipes.c

    rb724494 rec700c7  
    254254int usb_pipe_initialize(usb_pipe_t *pipe, usb_endpoint_t endpoint_no,
    255255    usb_transfer_type_t transfer_type, size_t max_packet_size,
    256     usb_direction_t direction, unsigned packets, usb_dev_session_t *bus_session)
    257 {
     256    usb_direction_t direction, unsigned packets,
     257    unsigned max_burst, unsigned max_streams, usb_dev_session_t *bus_session)
     258{
     259        // FIXME refactor this function
    258260        assert(pipe);
    259261
     
    263265        pipe->desc.max_packet_size = max_packet_size;
    264266        pipe->desc.direction = direction;
     267        pipe->desc.usb3.max_burst = max_burst;
     268        pipe->desc.usb3.max_streams = max_streams;
    265269        pipe->auto_reset_halt = false;
    266270        pipe->bus_session = bus_session;
     
    280284
    281285        const int rc = usb_pipe_initialize(pipe, 0, USB_TRANSFER_CONTROL,
    282             CTRL_PIPE_MIN_PACKET_SIZE, USB_DIRECTION_BOTH, 1, bus_session);
     286            CTRL_PIPE_MIN_PACKET_SIZE, USB_DIRECTION_BOTH, 1, 0, 0, bus_session);
    283287
    284288        pipe->auto_reset_halt = true;
Note: See TracChangeset for help on using the changeset viewer.