Changeset dfd313b in mainline


Ignore:
Timestamp:
2017-07-09T20:11:22Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9c0e41
Parents:
115f25b
Message:

Added definition of input control context and input context data structures used by some commands.

File:
1 edited

Legend:

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

    r115f25b rdfd313b  
    110110} __attribute__((packed)) xhci_stream_ctx_t;
    111111
     112/**
     113 * Input control context: section 6.2.5.1
     114 * TODO: According to section 6.2.5.1 figure 78,
     115 *       the context size register value in
     116 *       hccparams1 dictates whether input
     117 *       control context shall have 32 or 64 bytes.
     118 *       How to do this?
     119 * TODO: Add register macros for XHCI_REG_RD/WR for
     120 *       this data structure.
     121 */
     122typedef struct xhci_input_ctrl_ctx {
     123        uint64_t data [8];
     124} __attribute__((packed)) xhci_input_ctrl_ctx_t;
     125
     126/**
     127 * Input context: section 6.2.5
     128 */
     129typedef struct xhci_input_ctx {
     130        xhci_input_ctrl_ctx_t ctr_ctx;
     131        xhci_slot_ctx_t slot_ctx;
     132        xhci_ep_ctx_t endpoint_ctx [31];
     133} __attribute__((packed)) xhci_input_ctx_t;
     134
    112135#endif
Note: See TracChangeset for help on using the changeset viewer.