Changeset e7e1fd3 in mainline


Ignore:
Timestamp:
2018-01-23T13:46:16Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a6afb4c
Parents:
8033f89
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-23 13:46:13)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-23 13:46:16)
Message:

usb: cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/classes/hub.h

    r8033f89 re7e1fd3  
    182182#define STATUS_BYTES(ports) ((1 + ports + 7) / 8)
    183183
    184 /**     @brief usb hub specific request types.
    185  *
    186  *      For more information see Universal Serial Bus Specification Revision 1.1 chapter 11.16.2
     184/**
     185 * @brief usb hub specific request types.
    187186 */
    188187typedef enum {
    189     /** This request resets a value reported in the hub status. */
     188    /** This request resets a value reported in the hub status. */
    190189    USB_HUB_REQ_TYPE_CLEAR_HUB_FEATURE = 0x20,
    191190    /** This request resets a value reported in the port status. */
    192191    USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE = 0x23,
    193     /** This is an optional per-port diagnostic request that returns the bus state value, as sampled at the last EOF2 point. */
     192    /**
     193     * This is an optional per-port diagnostic request that returns the bus
     194     * state value, as sampled at the last EOF2 point.
     195     */
    194196    USB_HUB_REQ_TYPE_GET_STATE = 0xA3,
    195197    /** This request returns the hub descriptor. */
    196198    USB_HUB_REQ_TYPE_GET_DESCRIPTOR = 0xA0,
    197     /** This request returns the current hub status and the states that have changed since the previous acknowledgment. */
     199    /**
     200     * This request returns the current hub status and the states that have
     201     * changed since the previous acknowledgment.
     202     */
    198203    USB_HUB_REQ_TYPE_GET_HUB_STATUS = 0xA0,
    199     /** This request returns the current port status and the current value of the port status change bits. */
     204    /**
     205     * This request returns the current port status and the current value of the
     206     * port status change bits.
     207     */
    200208    USB_HUB_REQ_TYPE_GET_PORT_STATUS = 0xA3,
    201209    /** This request overwrites the hub descriptor. */
     
    203211    /** This request sets a value reported in the hub status. */
    204212    USB_HUB_REQ_TYPE_SET_HUB_FEATURE = 0x20,
    205     /** This request sets the value that the hub uses to determine the index into the Route String Index for the hub. */
     213    /**
     214     * This request sets the value that the hub uses to determine the index
     215     * into the Route String Index for the hub.
     216     */
    206217    USB_HUB_REQ_TYPE_SET_HUB_DEPTH = 0x20,
    207218    /** This request sets a value reported in the port status. */
     
    237248
    238249/**
    239  *      Maximum size of usb hub descriptor in bytes
     250 * Maximum size of usb hub descriptor in bytes
    240251 */
    241252/* 7 (basic size) + 2*32 (port bitmasks) */
Note: See TracChangeset for help on using the changeset viewer.