Ignore:
Timestamp:
2017-10-27T11:33:13Z (8 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7010861
Parents:
5bc8250
Message:

Stubs for stream initialization

Streams should not be initialized always because the drivers may not support it.
Moved streams initialization to on-demand function.
Needs more work, but allows usbmast to initialize again and not crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hw_struct/context.h

    r5bc8250 r3f6c94ed  
    8080#define XHCI_EP_MAX_P_STREAMS_SET(ctx, val) \
    8181        xhci_dword_set_bits(&(ctx).data[0], val, 14, 10)
     82#define XHCI_EP_LSA_SET(ctx, val) \
     83        xhci_dword_set_bits(&(ctx).data[0], val, 15, 15)
    8284#define XHCI_EP_MULT_SET(ctx, val) \
    8385        xhci_dword_set_bits(&(ctx).data[0], val, 9, 8)
     
    164166#define XHCI_STREAM_DEQ_PTR(ctx)   XHCI_QWORD_EXTRACT((ctx).data[0], 63, 4)
    165167#define XHCI_STREAM_EDTLA(ctx)     XHCI_QWORD_EXTRACT((ctx).data[1], 24, 0)
     168
     169#define XHCI_STREAM_SCT_SET(ctx, val) \
     170        xhci_qword_set_bits(&(ctx).data[0], val, 3, 1)
    166171} __attribute__((packed)) xhci_stream_ctx_t;
    167172
Note: See TracChangeset for help on using the changeset viewer.