Changeset 91ca111 in mainline for uspace/drv/bus/usb/xhci/hc.h


Ignore:
Timestamp:
2017-06-23T11:18:50Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
51b2693
Parents:
e4d7363
Message:

xhci: extended capability handling

Currently, only detection of legacy support and parsing of protocol speeds is
implemented.

File:
1 edited

Legend:

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

    re4d7363 r91ca111  
    3939#include "trb_ring.h"
    4040
     41/**
     42 * xHCI lets the controller define speeds of ports it controls.
     43 */
     44typedef struct xhci_port_speed {
     45        uint64_t rx_bps, tx_bps;
     46} xhci_port_speed_t;
     47
    4148typedef struct xhci_hc {
     49        /* MMIO range */
     50        addr_range_t mmio_range;
     51        void *base;
     52
     53        /* Mapped register sets */
    4254        xhci_cap_regs_t *cap_regs;
    4355        xhci_op_regs_t *op_regs;
    4456        xhci_rt_regs_t *rt_regs;
    4557        xhci_doorbell_t *db_arry;
     58        xhci_extcap_t *xecp;            /**< First extended capability */
     59        xhci_legsup_t *legsup;          /**< Legacy support capability */
    4660
    47         addr_range_t mmio_range;
    48 
     61        /* Structures in allocated memory */
    4962        xhci_trb_ring_t command_ring;
    5063        xhci_event_ring_t event_ring;
    51 
    5264        xhci_device_ctx_t *dcbaa;
    5365
     66        /* Cached capabilities */
     67        xhci_port_speed_t speeds [16];
    5468        unsigned max_slots;
    5569        bool ac64;
    56 
    5770} xhci_hc_t;
    5871
Note: See TracChangeset for help on using the changeset viewer.