Changeset 2b61945 in mainline for uspace/drv/bus/usb/xhci/hc.h


Ignore:
Timestamp:
2017-10-22T03:47:41Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2e5aea1
Parents:
766043c
Message:

xhci: use device_t for bookkeeping

This started as a little refactoring to move active transfer batch to endpoint. Finding the EP in handler needs devices indexed by slot id. Then I found out we do not use the device_t extendable mechanism. Then there were a lot of errors found while doing all this…

File:
1 edited

Legend:

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

    r766043c r2b61945  
    4646#include "bus.h"
    4747
    48 typedef struct xhci_virt_device_ctx {
    49         xhci_device_ctx_t *dev_ctx;
    50         xhci_trb_ring_t *trs[XHCI_EP_COUNT];
    51 } xhci_virt_device_ctx_t;
    52 
    5348typedef struct xhci_hc {
    5449        /* MMIO range */
     
    6863        xhci_event_ring_t event_ring;
    6964        uint64_t *dcbaa;
    70         xhci_virt_device_ctx_t *dcbaa_virt;
    7165        xhci_scratchpad_t *scratchpad;
    7266
     
    8478        list_t commands;
    8579        fibril_mutex_t commands_mtx;
    86 
    87         list_t transfers;
    8880
    8981        /* TODO: Hack. Figure out a better way. */
Note: See TracChangeset for help on using the changeset viewer.