Changeset 7ee5408 in mainline


Ignore:
Timestamp:
2017-07-12T20:25:30Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9e7fe8
Parents:
f8315ed
Message:

Added a basic event handler that currently only calls the command completion event handler.

File:
1 edited

Legend:

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

    rf8315ed r7ee5408  
    358358}
    359359
     360static void hc_handle_event(xhci_hc_t *hc, xhci_trb_t *trb)
     361{
     362        switch(TRB_TYPE(*trb)) {
     363                case XHCI_TRB_TYPE_COMMAND_COMPLETION_EVENT:
     364                        xhci_handle_command_completion(hc, trb);
     365                        break;
     366                default:
     367                        usb_log_debug2("Event type handling not implemented.");
     368                        break;
     369        }
     370}
     371
    360372static void hc_run_event_ring(xhci_hc_t *hc, xhci_event_ring_t *event_ring, xhci_interrupter_regs_t *intr)
    361373{
     
    369381                        usb_log_debug2("Dequeued from event ring.");
    370382                        xhci_dump_trb(&trb);
     383
     384                        hc_handle_event(hc, &trb);
    371385                        break;
    372386
Note: See TracChangeset for help on using the changeset viewer.