Ignore:
Timestamp:
2017-06-16T01:25:16Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb89430
Parents:
ce6e001
Message:

xhci: dumping operational state

File:
1 edited

Legend:

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

    rce6e001 r62ba2cbe  
    3232/** @file
    3333 * Memory-mapped register structures of the xHC.
     34 *
     35 * The main pr
    3436 */
    3537
     
    4244
    4345/*
    44  * The macros XHCI_REG_* might seem a bit magic. It is the most compact way to
    45  * provide flexible interface abstracting from the real storage of given
    46  * register, but to avoid having to specify several constants per register.
    4746 */
    4847
     
    134133
    135134        /*
    136          *  0:3  - IST
     135         *  3:0  - IST
    137136         *  7:4  - ERST Max
    138          * 21:25 - Max Scratchpad Bufs Hi
     137         * 24:21 - Max Scratchpad Bufs Hi
    139138         *    26 - SPR
    140139         * 31:27 - Max Scratchpad Bufs Lo
     
    188187#define XHCI_CAP_IST          hcsparams2, 32, RANGE,  3,  0
    189188#define XHCI_CAP_ERST_MAX     hcsparams2, 32, RANGE,  7,  4
    190 #define XHCI_CAP_SPR          hcsparams2, 32, RANGE, 26, 26
     189#define XHCI_CAP_MAX_SPBUF_LO hcsparams2, 32, RANGE, 25,  4
     190#define XHCI_CAP_SPR          hcsparams2, 32,  FLAG, 26
     191#define XHCI_CAP_MAX_SPBUF_HI hcsparams2, 32, RANGE, 31, 27
    191192#define XHCI_CAP_U1EL         hcsparams3, 32, RANGE,  7,  0
    192193#define XHCI_CAP_U2EL         hcsparams3, 32, RANGE, 31, 16
     
    203204#define XHCI_CAP_SEC          hccparams1, 32,  FLAG, 10
    204205#define XHCI_CAP_CFC          hccparams1, 32,  FLAG, 11
    205 #define XHCI_CAP_MAX_PSA_SIZE hccparams1, 32,  FLAG, 12
    206 #define XHCI_CAP_XECP         hccparams1, 32,  FLAG, 13
     206#define XHCI_CAP_MAX_PSA_SIZE hccparams1, 32, RANGE, 15, 12
     207#define XHCI_CAP_XECP         hccparams1, 32, RANGE, 31, 16
    207208#define XHCI_CAP_DBOFF             dboff, 32, FIELD
    208209#define XHCI_CAP_RTSOFF           rtsoff, 32, FIELD
     
    450451#define XHCI_RT_MFINDEX        mfindex, 32, FIELD
    451452
     453/**
     454 * XHCI Doorbel Registers: section 5.6
     455 *
     456 * These registers are write-only, thus convenience macros are useless.
     457 */
     458typedef ioport32_t xhci_doorbell_t;
     459
    452460#endif
    453461/**
Note: See TracChangeset for help on using the changeset viewer.