Changes in uspace/drv/usbhub/usbhub.c [3954a63b:09daa8b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r3954a63b r09daa8b 224 224 } 225 225 226 usb_ pipe_start_session(hub_info->control_pipe);226 usb_endpoint_pipe_start_session(hub_info->control_pipe); 227 227 //set hub configuration 228 228 opResult = usb_hub_set_configuration(hub_info); … … 239 239 return opResult; 240 240 } 241 usb_ pipe_end_session(hub_info->control_pipe);241 usb_endpoint_pipe_end_session(hub_info->control_pipe); 242 242 243 243 … … 321 321 //reset port 322 322 usb_hub_set_reset_port_request(&request, port); 323 opResult = usb_ pipe_control_write(323 opResult = usb_endpoint_pipe_control_write( 324 324 hub->control_pipe, 325 325 &request,sizeof(usb_device_request_setup_packet_t), … … 354 354 } 355 355 //create connection to device 356 usb_ pipe_t new_device_pipe;356 usb_endpoint_pipe_t new_device_pipe; 357 357 usb_device_connection_t new_device_connection; 358 358 usb_device_connection_initialize_on_default_address( … … 360 360 &hub->connection 361 361 ); 362 usb_ pipe_initialize_default_control(362 usb_endpoint_pipe_initialize_default_control( 363 363 &new_device_pipe, 364 364 &new_device_connection); 365 usb_ pipe_probe_default_control(&new_device_pipe);365 usb_endpoint_pipe_probe_default_control(&new_device_pipe); 366 366 367 367 /* Request address from host controller. */ … … 379 379 //opResult = usb_drv_req_set_address(hc, USB_ADDRESS_DEFAULT, 380 380 // new_device_address); 381 usb_ pipe_start_session(&new_device_pipe);381 usb_endpoint_pipe_start_session(&new_device_pipe); 382 382 opResult = usb_request_set_address(&new_device_pipe,new_device_address); 383 usb_ pipe_end_session(&new_device_pipe);383 usb_endpoint_pipe_end_session(&new_device_pipe); 384 384 if (opResult != EOK) { 385 385 usb_log_error("could not set address for new device %d\n",opResult); … … 488 488 usb_log_debug("interrupt at port %d\n", port); 489 489 //determine type of change 490 usb_ pipe_t *pipe = hub->control_pipe;490 usb_endpoint_pipe_t *pipe = hub->control_pipe; 491 491 492 492 int opResult; … … 499 499 //endpoint 0 500 500 501 opResult = usb_ pipe_control_read(501 opResult = usb_endpoint_pipe_control_read( 502 502 pipe, 503 503 &request, sizeof(usb_device_request_setup_packet_t), … … 560 560 int usb_hub_check_hub_changes(usb_hub_info_t * hub_info){ 561 561 int opResult; 562 opResult = usb_ pipe_start_session(562 opResult = usb_endpoint_pipe_start_session( 563 563 hub_info->status_change_pipe); 564 564 if(opResult != EOK){ … … 578 578 * Send the request. 579 579 */ 580 opResult = usb_ pipe_read(580 opResult = usb_endpoint_pipe_read( 581 581 hub_info->status_change_pipe, 582 582 change_bitmap, byte_length, &actual_size … … 586 586 free(change_bitmap); 587 587 usb_log_warning("something went wrong while getting status of hub\n"); 588 usb_ pipe_end_session(hub_info->status_change_pipe);588 usb_endpoint_pipe_end_session(hub_info->status_change_pipe); 589 589 return opResult; 590 590 } 591 591 unsigned int port; 592 opResult = usb_ pipe_start_session(hub_info->control_pipe);592 opResult = usb_endpoint_pipe_start_session(hub_info->control_pipe); 593 593 if(opResult!=EOK){ 594 594 usb_log_error("could not start control pipe session %d\n", opResult); 595 usb_ pipe_end_session(hub_info->status_change_pipe);595 usb_endpoint_pipe_end_session(hub_info->status_change_pipe); 596 596 return opResult; 597 597 } … … 600 600 usb_log_error("could not start host controller session %d\n", 601 601 opResult); 602 usb_ pipe_end_session(hub_info->control_pipe);603 usb_ pipe_end_session(hub_info->status_change_pipe);602 usb_endpoint_pipe_end_session(hub_info->control_pipe); 603 usb_endpoint_pipe_end_session(hub_info->status_change_pipe); 604 604 return opResult; 605 605 } … … 615 615 } 616 616 usb_hc_connection_close(&hub_info->connection); 617 usb_ pipe_end_session(hub_info->control_pipe);618 usb_ pipe_end_session(hub_info->status_change_pipe);617 usb_endpoint_pipe_end_session(hub_info->control_pipe); 618 usb_endpoint_pipe_end_session(hub_info->status_change_pipe); 619 619 free(change_bitmap); 620 620 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.