Ignore:
Timestamp:
2011-09-23T12:17:27Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48a31be
Parents:
bba0f1fc
Message:

usbhub: Refactor handling of port changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port_status.h

    rbba0f1fc rd6e2938  
    4747 */
    4848typedef uint32_t usb_port_status_t;
     49// TODO Mind the endiannes, changes are in the first byte of the second word
     50// status is in the first byte of the first word
     51#define USB_HUB_PORT_STATUS_CONNECTION (1 << (USB_HUB_FEATURE_PORT_CONNECTION))
     52#define USB_HUB_PORT_STATUS_ENABLED (1 << (USB_HUB_FEATURE_PORT_ENABLE))
     53#define USB_HUB_PORT_STATUS_SUSPEND (1 << (USB_HUB_FEATURE_PORT_SUSPEND))
     54#define USB_HUB_PORT_STATUS_OC (1 << (USB_HUB_FEATURE_PORT_OVER_CURRENT))
     55#define USB_HUB_PORT_STATUS_RESET (1 << (USB_HUB_FEATURE_PORT_RESET))
     56#define USB_HUB_PORT_STATUS_POWER (1 << (USB_HUB_FEATURE_PORT_POWER))
     57#define USB_HUB_PORT_STATUS_LOW_SPEED (1 << (USB_HUB_FEATURE_PORT_LOW_SPEED))
     58
     59#define USB_HUB_PORT_C_STATUS_CONNECTION \
     60    (1 << (USB_HUB_FEATURE_C_PORT_CONNECTION))
     61#define USB_HUB_PORT_C_STATUS_ENABLED \
     62    (1 << (USB_HUB_FEATURE_C_PORT_ENABLE))
     63#define USB_HUB_PORT_C_STATUS_SUSPEND \
     64    (1 << (USB_HUB_FEATURE_C_PORT_SUSPEND))
     65#define USB_HUB_PORT_C_STATUS_OC \
     66    (1 << (USB_HUB_FEATURE_C_PORT_OVER_CURRENT))
     67#define USB_HUB_PORT_C_STATUS_RESET \
     68    (1 << (USB_HUB_FEATURE_C_PORT_RESET))
    4969
    5070/**
     
    5777typedef uint32_t usb_hub_status_t;
    5878// TODO Mind the endiannes, changes are in the first byte of the second word
    59 // status is int he first byte of the first word
     79// status is in the first byte of the first word
    6080#define USB_HUB_STATUS_OVER_CURRENT \
    6181    (1 << (USB_HUB_FEATURE_HUB_OVER_CURRENT))
Note: See TracChangeset for help on using the changeset viewer.