Ignore:
File:
1 edited

Legend:

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

    r10096231 rd493ac17  
    11/*
    2  * Copyright (c) 2010 Vojtech Horky
     2 * Copyright (c) 2010 Matus Dekanek
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libusb usb
     29/** @addtogroup libusb
    3030 * @{
    3131 */
     
    3333 * @brief USB hub related structures.
    3434 */
    35 #ifndef LIBUSB_HUB_H_
    36 #define LIBUSB_HUB_H_
     35#ifndef LIBUSB_CLASS_HUB_H_
     36#define LIBUSB_CLASS_HUB_H_
    3737
    3838#include <sys/types.h>
    39 #include <usb/hcdhubd.h>
    40 
    4139
    4240/** Hub class feature selector.
     
    6866 *      For more information see Universal Serial Bus Specification Revision 1.1 chapter 11.16.2
    6967 */
    70 typedef struct hub_descriptor_type{
     68typedef struct usb_hub_descriptor_type {
    7169    /** Number of bytes in this descriptor, including this byte */
    7270    //uint8_t bDescLength;
     
    8078    /**
    8179            D1...D0: Logical Power Switching Mode
    82             00: Ganged power switching (all ports power at
     80            00: Ganged power switching (all ports power at
    8381            once)
    8482            01: Individual port power switching
     
    9189            00: Global Over-current Protection. The hub
    9290            reports over-current as a summation of all
    93             ports current draw, without a breakdown of
     91            ports current draw, without a breakdown of
    9492            individual port over-current status.
    9593            01: Individual Port Over-current Protection. The
     
    198196extern size_t USB_HUB_MAX_DESCRIPTOR_SIZE;
    199197
    200 /**
    201  * @brief create uint8_t array with serialized descriptor
    202  *
    203  * @param descriptor
    204  */
    205 void * usb_serialize_hub_descriptor(usb_hub_descriptor_t * descriptor);
    206 
    207 /**
    208  * @brief create deserialized desriptor structure out of serialized descriptor
    209  *
    210  * The serialized descriptor must be proper usb hub descriptor, otherwise an eerror might occur.
    211  *
    212  * @param sdescriptor serialized descriptor
    213  */
    214 usb_hub_descriptor_t * usb_deserialize_hub_desriptor(void * sdescriptor);
    215198
    216199
Note: See TracChangeset for help on using the changeset viewer.