Changeset 32c2c8f in mainline for uspace/lib/usb


Ignore:
Timestamp:
2013-01-05T21:52:56Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1da979d
Parents:
b997e7b
Message:

libusbvirt: Add basic hub device implementation.

It takes care of descriptors, address, and state tracking.

File:
1 edited

Legend:

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

    rb997e7b r32c2c8f  
    7373        /** Characteristics bitmask. */
    7474        uint8_t characteristics;
    75 #define HUB_CHAR_POWER_PER_PORT_FLAG  (1 << 0)
    76 #define HUB_CHAR_NO_POWER_SWITCH_FLAG (1 << 1)
     75#define HUB_CHAR_POWER_PER_PORT_FLAG    (1 << 0)
     76#define HUB_CHAR_NO_POWER_SWITCH_FLAG   (1 << 1)
     77#define HUB_CHAR_COMPUND_DEVICE         (1 << 2)
     78#define HUB_CHAR_OC_PER_PORT_FLAG       (1 << 3)
     79#define HUB_CHAR_NO_OC_FLAG             (1 << 4)
    7780        /* Unused part of characteristics field */
    7881        uint8_t characteristics_reserved;
     
    8386} __attribute__ ((packed)) usb_hub_descriptor_header_t;
    8487
     88
     89#if 0
    8590/**
    8691 * @brief usb hub descriptor
     
    169174    //uint8_t * port_pwr_ctrl_mask;
    170175} usb_hub_descriptor_t;
    171 
     176#endif
    172177
    173178
Note: See TracChangeset for help on using the changeset viewer.