Changeset 28eee11c in mainline for uspace/lib/usb/src/devdrv.c
- Timestamp:
- 2011-03-21T15:12:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5287502
- Parents:
- 5971dd3 (diff), 7102aa5 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/devdrv.c
r5971dd3 r28eee11c 126 126 127 127 for (i = 0; i < pipe_count; i++) { 128 dev->pipes[i].pipe = malloc(sizeof(usb_ endpoint_pipe_t));128 dev->pipes[i].pipe = malloc(sizeof(usb_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_ endpoint_pipe_initialize_from_configuration(dev->pipes,149 rc = usb_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_ endpoint_pipe_register(dev->pipes[i].pipe,174 rc = usb_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_ endpoint_pipe_initialize_default_control(&dev->ctrl_pipe,221 rc = usb_pipe_initialize_default_control(&dev->ctrl_pipe, 222 222 &dev->wire); 223 223 if (rc != EOK) { … … 228 228 } 229 229 230 rc = usb_ endpoint_pipe_probe_default_control(&dev->ctrl_pipe);230 rc = usb_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_ endpoint_pipe_start_session(&dev->ctrl_pipe);242 rc = usb_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_ endpoint_pipe_end_session(&dev->ctrl_pipe);254 usb_pipe_end_session(&dev->ctrl_pipe); 255 255 256 256 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.