Ignore:
Timestamp:
2018-01-18T19:08:51Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7138a78b
Parents:
8fe29a7c
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-18 19:06:36)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-18 19:08:51)
Message:

xhci: various debugging changes

File:
1 edited

Legend:

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

    r8fe29a7c r41abf3c  
    109109} __attribute__((packed)) xhci_ep_ctx_t;
    110110
     111enum {
     112        EP_STATE_DISABLED = 0,
     113        EP_STATE_RUNNING = 1,
     114        EP_STATE_HALTED = 2,
     115        EP_STATE_STOPPED = 3,
     116        EP_STATE_ERROR = 4,
     117};
     118
    111119/**
    112120 * Slot context: section 6.2.2
     
    148156
    149157#define XHCI_SLOT_DEVICE_ADDRESS(ctx)   XHCI_DWORD_EXTRACT((ctx).data[3],  7,  0)
    150 #define XHCI_SLOT_SLOT_STATE(ctx)       XHCI_DWORD_EXTRACT((ctx).data[3], 31, 27)
     158#define XHCI_SLOT_STATE(ctx)       XHCI_DWORD_EXTRACT((ctx).data[3], 31, 27)
    151159
    152160} __attribute__((packed)) xhci_slot_ctx_t;
     161
     162enum {
     163        SLOT_STATE_DISABLED = 0,
     164        SLOT_STATE_DEFAULT = 1,
     165        SLOT_STATE_ADDRESS = 2,
     166        SLOT_STATE_CONFIGURED = 3,
     167};
    153168
    154169/**
Note: See TracChangeset for help on using the changeset viewer.