Changeset 58563585 in mainline for uspace/lib/usb/include
- Timestamp:
- 2016-08-31T11:15:39Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 10cb47e
- Parents:
- 7a67416
- Location:
- uspace/lib/usb/include/usb
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/classes/hub.h
r7a67416 r58563585 110 110 */ 111 111 uint8_t characteristics; 112 112 113 #define HUB_CHAR_POWER_PER_PORT_FLAG (1 << 0) 113 114 #define HUB_CHAR_NO_POWER_SWITCH_FLAG (1 << 1) … … 196 197 */ 197 198 /* 7 (basic size) + 2*32 (port bitmasks) */ 198 #define USB_HUB_MAX_DESCRIPTOR_SIZE (7 + 2 * 32)199 #define USB_HUB_MAX_DESCRIPTOR_SIZE (7 + 2 * 32) 199 200 200 201 #endif -
uspace/lib/usb/include/usb/debug.h
r7a67416 r58563585 38 38 #include <sys/types.h> 39 39 #include <io/log.h> 40 41 40 42 41 void usb_dump_standard_descriptor(FILE *, const char *, const char *, -
uspace/lib/usb/include/usb/descriptor.h
r7a67416 r58563585 45 45 USB_DESCTYPE_INTERFACE = 4, 46 46 USB_DESCTYPE_ENDPOINT = 5, 47 /* New in USB 2.0 */47 /* New in USB 2.0 */ 48 48 USB_DESCTYPE_DEVICE_QUALIFIER = 6, 49 49 USB_DESCTYPE_OTHER_SPEED_CONFIGURATION = 7, … … 202 202 * HS INT and ISO transfers. */ 203 203 uint16_t max_packet_size; 204 204 205 #define ED_MPS_PACKET_SIZE_MASK 0x3ff 205 206 #define ED_MPS_PACKET_SIZE_GET(value) \ … … 207 208 #define ED_MPS_TRANS_OPPORTUNITIES_GET(value) \ 208 209 ((((value) >> 10) & 0x3) + 1) 210 209 211 /** Polling interval in milliseconds. 210 212 * Ignored for bulk and control endpoints. -
uspace/lib/usb/include/usb/dev.h
r7a67416 r58563585 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup libusb 29 30 * @{ 30 31 */ 32 31 33 /** @file 32 34 * Common USB types and functions. 33 35 */ 36 34 37 #ifndef LIBUSB_DEV_H_ 35 38 #define LIBUSB_DEV_H_ … … 37 40 #include <devman.h> 38 41 39 int usb_resolve_device_handle(const char *, devman_handle_t *); 42 extern int usb_resolve_device_handle(const char *, devman_handle_t *); 43 40 44 #endif 45 41 46 /** 42 47 * @} -
uspace/lib/usb/include/usb/usb.h
r7a67416 r58563585 114 114 /** Default USB address. */ 115 115 #define USB_ADDRESS_DEFAULT 0 116 116 117 /** Maximum address number in USB 1.1. */ 117 118 #define USB11_ADDRESS_MAX 127 … … 121 122 * 122 123 * @param ep USB address. 124 * 123 125 * @return True, if value is wihtin limits, false otherwise. 126 * 124 127 */ 125 128 static inline bool usb_address_is_valid(usb_address_t a) … … 135 138 /** Default control endpoint */ 136 139 #define USB_ENDPOINT_DEFAULT_CONTROL 0 140 137 141 /** Maximum endpoint number in USB 1.1. */ 138 142 #define USB11_ENDPOINT_MAX 16 … … 141 145 * 142 146 * @param ep USB endpoint number. 147 * 143 148 * @return True, if value is wihtin limits, false otherwise. 149 * 144 150 */ 145 151 static inline bool usb_endpoint_is_valid(usb_endpoint_t ep) … … 160 166 uint32_t packed; 161 167 } usb_target_t; 162 163 168 164 169 /** Check USB target for allowed values (address and endpoint).
Note:
See TracChangeset
for help on using the changeset viewer.