Changes in / [a9c674e0:eb1a2f4] in mainline
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/usbinfo/main.c
ra9c674e0 reb1a2f4 82 82 83 83 if (str_cmp(path, "uhci") == 0) { 84 path = "/hw/pci0/00:01.2 /uhci";84 path = "/hw/pci0/00:01.2"; 85 85 } 86 86 -
uspace/drv/uhci-rhd/port.c
ra9c674e0 reb1a2f4 92 92 93 93 while (1) { 94 usb_log_debug("Port(%d) status address %p:\n", 95 port_instance->number, port_instance->address); 96 94 97 /* read register value */ 95 98 port_status_t port_status = … … 97 100 98 101 /* debug print */ 99 usb_log_ debug("Port %d status at %p: 0x%04x.\n",100 port_instance->number, port_ instance->address, port_status);102 usb_log_info("Port(%d) status %#.4x\n", 103 port_instance->number, port_status); 101 104 print_port_status(port_status); 102 105 -
uspace/drv/usbmid/explore.c
ra9c674e0 reb1a2f4 202 202 if (interface_descriptors_count == (size_t) -1) { 203 203 usb_log_error("Problem parsing configuration descriptor.\n"); 204 free(config_descriptor_raw);205 free(interface_descriptors);206 return false;207 }208 209 ddf_fun_t *ctl_fun = ddf_fun_create(dev->dev, fun_exposed, "ctl");210 if (ctl_fun == NULL) {211 usb_log_error("Failed to create control function.\n");212 free(config_descriptor_raw);213 free(interface_descriptors);214 return false;215 }216 rc = ddf_fun_bind(ctl_fun);217 if (rc != EOK) {218 usb_log_error("Failed to bind control function: %s.\n",219 str_error(rc));220 204 free(config_descriptor_raw); 221 205 free(interface_descriptors); -
uspace/lib/usb/include/usb/pipes.h
ra9c674e0 reb1a2f4 137 137 int usb_endpoint_pipe_start_session(usb_endpoint_pipe_t *); 138 138 int usb_endpoint_pipe_end_session(usb_endpoint_pipe_t *); 139 bool usb_endpoint_pipe_is_session_started(usb_endpoint_pipe_t *);140 139 141 140 int usb_endpoint_pipe_read(usb_endpoint_pipe_t *, void *, size_t, size_t *); -
uspace/lib/usb/src/pipes.c
ra9c674e0 reb1a2f4 200 200 assert(pipe); 201 201 202 if ( usb_endpoint_pipe_is_session_started(pipe)) {202 if (pipe->hc_phone >= 0) { 203 203 return EBUSY; 204 204 } … … 226 226 assert(pipe); 227 227 228 if ( !usb_endpoint_pipe_is_session_started(pipe)) {228 if (pipe->hc_phone < 0) { 229 229 return ENOENT; 230 230 } … … 238 238 239 239 return EOK; 240 }241 242 /** Tell whether a session is started (open) on the endpoint pipe.243 *244 * The expected usage of this function is in assertions for some245 * nested functions.246 *247 * @param pipe Endpoint pipe in question.248 * @return Whether @p pipe has opened a session.249 */250 bool usb_endpoint_pipe_is_session_started(usb_endpoint_pipe_t *pipe)251 {252 return (pipe->hc_phone >= 0);253 240 } 254 241 -
uspace/lib/usb/src/pipesio.c
ra9c674e0 reb1a2f4 148 148 } 149 149 150 if ( !usb_endpoint_pipe_is_session_started(pipe)) {150 if (pipe->hc_phone < 0) { 151 151 return EBADF; 152 152 } … … 255 255 } 256 256 257 if ( !usb_endpoint_pipe_is_session_started(pipe)) {257 if (pipe->hc_phone < 0) { 258 258 return EBADF; 259 259 } … … 369 369 } 370 370 371 if ( !usb_endpoint_pipe_is_session_started(pipe)) {371 if (pipe->hc_phone < 0) { 372 372 return EBADF; 373 373 } … … 481 481 } 482 482 483 if ( !usb_endpoint_pipe_is_session_started(pipe)) {483 if (pipe->hc_phone < 0) { 484 484 return EBADF; 485 485 }
Note:
See TracChangeset
for help on using the changeset viewer.