Changeset 7bd99bf in mainline


Ignore:
Timestamp:
2017-07-14T17:28:06Z (7 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c058a388
Parents:
05aeee0e
Message:

Added roothub communication for adding devices.

Location:
uspace/drv/bus/usb/xhci
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/Makefile

    r05aeee0e r7bd99bf  
    4747        scratchpad.c \
    4848        commands.c \
     49    rh.c \
    4950        main.c
    5051
  • uspace/drv/bus/usb/xhci/hc.c

    r05aeee0e r7bd99bf  
    4040#include "debug.h"
    4141#include "hc.h"
     42#include "rh.h"
    4243#include "hw_struct/trb.h"
    4344#include "commands.h"
     
    360361static void hc_handle_event(xhci_hc_t *hc, xhci_trb_t *trb)
    361362{
     363        usb_log_debug2("TRB event encountered.");
    362364        switch (TRB_TYPE(*trb)) {
    363365                case XHCI_TRB_TYPE_COMMAND_COMPLETION_EVENT:
    364366                        xhci_handle_command_completion(hc, trb);
     367                        break;
     368                case XHCI_TRB_TYPE_PORT_STATUS_CHANGE_EVENT:
     369                        xhci_handle_port_status_change_event(hc, trb);
    365370                        break;
    366371                default:
  • uspace/drv/bus/usb/xhci/hw_struct/regs.h

    r05aeee0e r7bd99bf  
    286286#define XHCI_PORT_PLS           portsc, 32, RANGE,  8,  5
    287287#define XHCI_PORT_PP            portsc, 32,  FLAG,  9
    288 #define XHCI_PORT_PIC           portsc, 32, RANGE, 13, 10
     288#define XHCI_PORT_PS            portsc, 32, RANGE, 13, 10
     289#define XHCI_PORT_PIC           portsc, 32, RANGE, 15, 14
    289290#define XHCI_PORT_LWS           portsc, 32,  FLAG, 16
    290291#define XHCI_PORT_CSC           portsc, 32,  FLAG, 17
Note: See TracChangeset for help on using the changeset viewer.