Ignore:
File:
1 edited

Legend:

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

    rda55d5b r03171de  
    3737
    3838#include <sys/types.h>
    39 #include <usb/hcdhubd.h>
    4039
    4140
     
    149148} usb_hub_descriptor_t;
    150149
    151 
     150/**
     151 *      Maximum size of usb hub descriptor in bytes
     152 */
     153extern size_t USB_HUB_MAX_DESCRIPTOR_SIZE;
     154
     155/**
     156 *      hub descriptor type
     157 */
     158extern uint8_t USB_HUB_DESCRIPTOR_TYPE;
     159
     160/**
     161 * @brief create uint8_t array with serialized descriptor
     162 *
     163 * @param descriptor
     164 */
     165void * usb_serialize_hub_descriptor(usb_hub_descriptor_t * descriptor);
     166
     167/**
     168 * @brief create deserialized desriptor structure out of serialized descriptor
     169 *
     170 * The serialized descriptor must be proper usb hub descriptor, otherwise an eerror might occur.
     171 *
     172 * @param sdescriptor serialized descriptor
     173 */
     174usb_hub_descriptor_t * usb_deserialize_hub_desriptor(void * sdescriptor);
    152175
    153176/**     @brief usb hub specific request types.
     
    192215} usb_hub_request_t;
    193216
    194 /**
    195  *      Maximum size of usb hub descriptor in bytes
    196  */
    197 extern size_t USB_HUB_MAX_DESCRIPTOR_SIZE;
    198 
    199 /**
    200  * @brief create uint8_t array with serialized descriptor
    201  *
    202  * @param descriptor
    203  */
    204 void * usb_serialize_hub_descriptor(usb_hub_descriptor_t * descriptor);
    205 
    206 /**
    207  * @brief create deserialized desriptor structure out of serialized descriptor
    208  *
    209  * The serialized descriptor must be proper usb hub descriptor, otherwise an eerror might occur.
    210  *
    211  * @param sdescriptor serialized descriptor
    212  */
    213 usb_hub_descriptor_t * usb_deserialize_hub_desriptor(void * sdescriptor);
    214 
    215 /**
    216  * @brief create hub structure instance
    217  *
    218  * @param device
    219  * @return
    220  */
    221 usb_hcd_hub_info_t * usb_create_hub_info(device_t * device);
    222 
    223217
    224218
Note: See TracChangeset for help on using the changeset viewer.