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


Ignore:
Timestamp:
2017-06-22T13:59:15Z (9 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e4d7363
Parents:
62ba2cbe
Message:

xhci: event rings && hc initialization (WIP)

File:
1 edited

Legend:

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

    r62ba2cbe rcb89430  
    3636#include <usb/host/ddf_helpers.h>
    3737#include "hw_struct/regs.h"
     38#include "hw_struct/context.h"
     39#include "trb_ring.h"
    3840
    3941typedef struct xhci_hc {
     
    4244        xhci_rt_regs_t *rt_regs;
    4345        xhci_doorbell_t *db_arry;
     46
     47        xhci_trb_ring_t command_ring;
     48        xhci_event_ring_t event_ring;
     49
     50        xhci_device_ctx_t *dcbaa;
     51
     52        unsigned max_slots;
     53        bool ac64;
     54
    4455} xhci_hc_t;
    4556
    4657extern const ddf_hc_driver_t xhci_ddf_hc_driver;
    47 
    48 int xhci_hc_init(hcd_t *, const hw_res_list_parsed_t *, bool irq);
    49 int xhci_hc_gen_irq_code(irq_code_t *, const hw_res_list_parsed_t *);
    50 int xhci_hc_status(hcd_t *, uint32_t *);
    51 int xhci_hc_schedule(hcd_t *, usb_transfer_batch_t *);
    52 void xhci_hc_interrupt(hcd_t *, uint32_t);
    53 void xhci_hc_fini(hcd_t *);
    5458
    5559
Note: See TracChangeset for help on using the changeset viewer.