Changes in uspace/lib/usb/src/devdrv.c [3954a63b:09daa8b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/devdrv.c
r3954a63b r09daa8b 126 126 127 127 for (i = 0; i < pipe_count; i++) { 128 dev->pipes[i].pipe = malloc(sizeof(usb_ pipe_t));128 dev->pipes[i].pipe = malloc(sizeof(usb_endpoint_pipe_t)); 129 129 if (dev->pipes[i].pipe == NULL) { 130 130 usb_log_oom(dev->ddf_dev); … … 147 147 } 148 148 149 rc = usb_ pipe_initialize_from_configuration(dev->pipes,149 rc = usb_endpoint_pipe_initialize_from_configuration(dev->pipes, 150 150 pipe_count, config_descriptor, config_descriptor_size, &dev->wire); 151 151 if (rc != EOK) { … … 172 172 for (i = 0; i < pipe_count; i++) { 173 173 if (dev->pipes[i].present) { 174 rc = usb_ pipe_register(dev->pipes[i].pipe,174 rc = usb_endpoint_pipe_register(dev->pipes[i].pipe, 175 175 dev->pipes[i].descriptor->poll_interval, 176 176 &hc_conn); … … 219 219 } 220 220 221 rc = usb_ pipe_initialize_default_control(&dev->ctrl_pipe,221 rc = usb_endpoint_pipe_initialize_default_control(&dev->ctrl_pipe, 222 222 &dev->wire); 223 223 if (rc != EOK) { … … 228 228 } 229 229 230 rc = usb_ pipe_probe_default_control(&dev->ctrl_pipe);230 rc = usb_endpoint_pipe_probe_default_control(&dev->ctrl_pipe); 231 231 if (rc != EOK) { 232 232 usb_log_error( … … 240 240 * default control pipe. 241 241 */ 242 rc = usb_ pipe_start_session(&dev->ctrl_pipe);242 rc = usb_endpoint_pipe_start_session(&dev->ctrl_pipe); 243 243 if (rc != EOK) { 244 244 usb_log_error("Failed to start an IPC session: %s.\n", … … 252 252 253 253 /* No checking here. */ 254 usb_ pipe_end_session(&dev->ctrl_pipe);254 usb_endpoint_pipe_end_session(&dev->ctrl_pipe); 255 255 256 256 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.