Changeset 0a9ea4a in mainline for uspace/lib/usb/include/usb/dp.h
- Timestamp:
- 2011-01-14T14:28:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1d7a74e, 6336b6e
- Parents:
- 45019865 (diff), 2f60e57d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/dp.h
r45019865 r0a9ea4a 1 1 /* 2 * Copyright (c) 20 08 Lukas Mejdrech2 * Copyright (c) 2011 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup icmp29 /** @addtogroup libusb 30 30 * @{ 31 31 */ 32 /** @file 33 * @brief USB descriptor parser. 34 */ 35 #ifndef LIBUSB_DP_H_ 36 #define LIBUSB_DP_H_ 32 37 33 /** @file 34 * ICMP module functions. 35 * The functions are used as ICMP module entry points. 36 */ 38 #include <sys/types.h> 39 #include <usb/usb.h> 40 #include <usb/descriptor.h> 37 41 38 #ifndef NET_ICMP_MODULE_H_ 39 #define NET_ICMP_MODULE_H_ 42 typedef struct { 43 int child; 44 int parent; 45 } usb_dp_descriptor_nesting_t; 40 46 41 #include <async.h> 42 #include <ipc/ipc.h> 47 typedef struct { 48 usb_dp_descriptor_nesting_t *nesting; 49 } usb_dp_parser_t; 43 50 44 extern int icmp_initialize(async_client_conn_t); 45 extern int icmp_message_standalone(ipc_callid_t, ipc_call_t *, ipc_call_t *, 46 size_t *); 51 typedef struct { 52 uint8_t *data; 53 size_t size; 54 void *arg; 55 } usb_dp_parser_data_t; 56 57 uint8_t *usb_dp_get_nested_descriptor(usb_dp_parser_t *, 58 usb_dp_parser_data_t *, uint8_t *); 59 uint8_t *usb_dp_get_sibling_descriptor(usb_dp_parser_t *, 60 usb_dp_parser_data_t *, uint8_t *, uint8_t *); 47 61 48 62 #endif 49 50 /** @}63 /** 64 * @} 51 65 */
Note:
See TracChangeset
for help on using the changeset viewer.