Ignore:
Timestamp:
2013-12-31T07:42:31Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6297465
Parents:
1760556
Message:

libusb: Add USB 2.0 hub descriptor fields

File:
1 edited

Legend:

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

    r1760556 r2c24983  
    7676        /** Characteristics bitmask.
    7777         *
    78          *  D1...D0: Logical Power Switching Mode
     78         *  D1..D0: Logical Power Switching Mode
    7979         *  00: Ganged power switching (all ports power at
    8080         *  once)
     
    8585         *  0: Hub is not part of a compound device
    8686         *  1: Hub is part of a compound device
    87          *  D4...D3: Over-current Protection Mode
     87         *  D4..D3: Over-current Protection Mode
    8888         *  00: Global Over-current Protection. The hub
    8989         *  reports over-current as a summation of all
     
    9696         *  allowed only for bus-powered hubs that do not
    9797         *  implement over-current protection.
    98          *  D15...D5: Reserved
     98         *  D6..D5: TT think time
     99         *  00: At most 8 FS bit times
     100         *  01: At most 16 FS bit times
     101         *  10: At most 24 FS bit times
     102         *  11: At most 32 FS bit times
     103         *  D7: Port indicators
     104         *  0: Not supported
     105         *  1: Supported
     106         *  D15...D8: Reserved
    99107         */
    100108        uint8_t characteristics;
     
    104112#define HUB_CHAR_OC_PER_PORT_FLAG       (1 << 3)
    105113#define HUB_CHAR_NO_OC_FLAG             (1 << 4)
     114#define HUB_CHAR_TT_THINK_16            (1 << 5)
     115#define HUB_CHAR_TT_THINK_8             (1 << 6)
     116#define HUB_CHAR_INDICATORS_FLAG        (1 << 7)
    106117
    107118        /** Unused part of characteristics field */
Note: See TracChangeset for help on using the changeset viewer.