Changes in uspace/lib/usb/include/usb/classes/hub.h [10096231:d493ac17] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hub.h
r10096231 rd493ac17 1 1 /* 2 * Copyright (c) 2010 Vojtech Horky2 * Copyright (c) 2010 Matus Dekanek 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libusb usb29 /** @addtogroup libusb 30 30 * @{ 31 31 */ … … 33 33 * @brief USB hub related structures. 34 34 */ 35 #ifndef LIBUSB_ HUB_H_36 #define LIBUSB_ HUB_H_35 #ifndef LIBUSB_CLASS_HUB_H_ 36 #define LIBUSB_CLASS_HUB_H_ 37 37 38 38 #include <sys/types.h> 39 #include <usb/hcdhubd.h>40 41 39 42 40 /** Hub class feature selector. … … 68 66 * For more information see Universal Serial Bus Specification Revision 1.1 chapter 11.16.2 69 67 */ 70 typedef struct hub_descriptor_type{68 typedef struct usb_hub_descriptor_type { 71 69 /** Number of bytes in this descriptor, including this byte */ 72 70 //uint8_t bDescLength; … … 80 78 /** 81 79 D1...D0: Logical Power Switching Mode 82 00: Ganged power switching (all ports ’power at80 00: Ganged power switching (all ports power at 83 81 once) 84 82 01: Individual port power switching … … 91 89 00: Global Over-current Protection. The hub 92 90 reports over-current as a summation of all 93 ports ’current draw, without a breakdown of91 ports current draw, without a breakdown of 94 92 individual port over-current status. 95 93 01: Individual Port Over-current Protection. The … … 198 196 extern size_t USB_HUB_MAX_DESCRIPTOR_SIZE; 199 197 200 /**201 * @brief create uint8_t array with serialized descriptor202 *203 * @param descriptor204 */205 void * usb_serialize_hub_descriptor(usb_hub_descriptor_t * descriptor);206 207 /**208 * @brief create deserialized desriptor structure out of serialized descriptor209 *210 * The serialized descriptor must be proper usb hub descriptor, otherwise an eerror might occur.211 *212 * @param sdescriptor serialized descriptor213 */214 usb_hub_descriptor_t * usb_deserialize_hub_desriptor(void * sdescriptor);215 198 216 199
Note:
See TracChangeset
for help on using the changeset viewer.