Changeset ae3a941 in mainline for uspace/lib/usbdev/include/usb/dev
- Timestamp:
- 2018-02-26T16:51:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e773f58
- Parents:
- 3692678
- Location:
- uspace/lib/usbdev/include/usb/dev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/device.h
r3692678 rae3a941 59 59 60 60 /* DDF parts */ 61 errno_t usb_device_create_ddf(ddf_dev_t *, const usb_endpoint_description_t **, const char **); 61 errno_t usb_device_create_ddf(ddf_dev_t *, 62 const usb_endpoint_description_t **, const char **); 62 63 void usb_device_destroy_ddf(ddf_dev_t *); 63 64 … … 68 69 } 69 70 70 usb_device_t * 71 usb_device_t *usb_device_create(devman_handle_t); 71 72 void usb_device_destroy(usb_device_t *); 72 73 73 const char * 74 const char *usb_device_get_name(usb_device_t *); 74 75 ddf_fun_t *usb_device_ddf_fun_create(usb_device_t *, fun_type_t, const char *); 75 76 76 async_exch_t * 77 async_exch_t *usb_device_bus_exchange_begin(usb_device_t *); 77 78 void usb_device_bus_exchange_end(async_exch_t *); 78 79 … … 95 96 devman_handle_t usb_device_get_devman_handle(const usb_device_t *); 96 97 97 const usb_device_descriptors_t * 98 const usb_device_descriptors_t *usb_device_descriptors(usb_device_t *); 98 99 99 const usb_alternate_interfaces_t * 100 const usb_alternate_interfaces_t *usb_device_get_alternative_ifaces( 100 101 usb_device_t *); 101 102 102 void * 103 void * 103 void *usb_device_data_alloc(usb_device_t *, size_t); 104 void *usb_device_data_get(usb_device_t *); 104 105 105 106 #endif -
uspace/lib/usbdev/include/usb/dev/pipes.h
r3692678 rae3a941 92 92 const usb_standard_endpoint_descriptor_t *descriptor; 93 93 /** Relevant superspeed companion descriptor. */ 94 const usb_superspeed_endpoint_companion_descriptor_t *companion_descriptor; 94 const usb_superspeed_endpoint_companion_descriptor_t 95 *companion_descriptor; 95 96 /** Interface descriptor the endpoint belongs to. */ 96 97 const usb_standard_interface_descriptor_t *interface; … … 105 106 size_t, const uint8_t *, size_t, usb_dev_session_t *); 106 107 107 errno_t usb_pipe_register(usb_pipe_t *, const usb_standard_endpoint_descriptor_t *, const usb_superspeed_endpoint_companion_descriptor_t *); 108 errno_t usb_pipe_register(usb_pipe_t *, 109 const usb_standard_endpoint_descriptor_t *, 110 const usb_superspeed_endpoint_companion_descriptor_t *); 108 111 errno_t usb_pipe_unregister(usb_pipe_t *); 109 112 -
uspace/lib/usbdev/include/usb/dev/poll.h
r3692678 rae3a941 60 60 size_t request_size; 61 61 62 /** Data buffer of at least `request_size`. User is responsible for its allocation. */ 62 /** 63 * Data buffer of at least `request_size`. User is responsible for its 64 * allocation. 65 */ 63 66 uint8_t *buffer; 64 67 … … 75 78 76 79 77 /** Optional parameters - user can customize them, but they are defaulted to 78 * some reasonable values. 80 /** 81 * Optional parameters - user can customize them, but they are 82 * defaulted to some reasonable values. 79 83 */ 80 84 … … 86 90 int debug; 87 91 88 /** Maximum number of consecutive errors before polling termination (default 3). */ 92 /** 93 * Maximum number of consecutive errors before polling termination 94 * (default 3). 95 */ 89 96 size_t max_failures; 90 97 … … 121 128 122 129 123 /** Internal parameters - user is not expected to set them. Messing with them 124 * can result in unexpected behavior if you do not know what you are doing. 130 /** 131 * Internal parameters - user is not expected to set them. Messing with 132 * them can result in unexpected behavior if you do not know what you 133 * are doing. 125 134 */ 126 135
Note:
See TracChangeset
for help on using the changeset viewer.