Changeset 47e9494 in mainline for uspace/drv/bus/usb/xhci/endpoint.h


Ignore:
Timestamp:
2018-01-16T18:02:46Z (7 years ago)
Author:
Salmelu <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eeca8a6
Parents:
7d1dd2b
Message:

xhci: stub for streams support

File:
1 edited

Legend:

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

    r7d1dd2b r47e9494  
    5151typedef struct xhci_device xhci_device_t;
    5252typedef struct xhci_endpoint xhci_endpoint_t;
     53typedef struct xhci_stream_data xhci_stream_data_t;
    5354typedef struct xhci_bus xhci_bus_t;
    5455
     
    7172        xhci_trb_ring_t ring;
    7273
    73         /** Primary stream context array (or NULL if endpoint doesn't use streams). */
     74        /** Primary stream context data array (or NULL if endpoint doesn't use streams). */
     75        xhci_stream_data_t *primary_stream_data_array;
     76
     77        /** Primary stream context array - allocated for xHC hardware. */
    7478        xhci_stream_ctx_t *primary_stream_ctx_array;
    7579        dma_buffer_t primary_stream_ctx_dma;
    7680
    77         /** Primary stream ring array (or NULL if endpoint doesn't use streams). */
    78         xhci_trb_ring_t *primary_stream_rings;
    79 
    80         /** Size of the allocated primary stream context array (and ring array). */
    81         uint16_t primary_stream_ctx_array_size;
     81        /** Size of the allocated primary stream data array (and context array). */
     82        uint16_t primary_stream_data_size;
    8283
    8384        /* Maximum number of primary streams (0 - 2^16). */
     
    129130#define XHCI_DEV_ARGS(dev)               ddf_fun_get_name((dev).base.fun), (dev).slot_id
    130131
     132int xhci_endpoint_type(xhci_endpoint_t *ep);
     133
    131134int xhci_endpoint_init(xhci_endpoint_t *, device_t *, const usb_endpoint_descriptors_t *);
    132135void xhci_endpoint_fini(xhci_endpoint_t *);
    133 
    134 int xhci_endpoint_request_streams(xhci_hc_t *, xhci_device_t *, xhci_endpoint_t *, unsigned);
    135136
    136137uint8_t xhci_endpoint_dci(xhci_endpoint_t *);
Note: See TracChangeset for help on using the changeset viewer.