Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.c

    r3954a63b r09daa8b  
    224224        }
    225225       
    226         usb_pipe_start_session(hub_info->control_pipe);
     226        usb_endpoint_pipe_start_session(hub_info->control_pipe);
    227227        //set hub configuration
    228228        opResult = usb_hub_set_configuration(hub_info);
     
    239239                return opResult;
    240240        }
    241         usb_pipe_end_session(hub_info->control_pipe);
     241        usb_endpoint_pipe_end_session(hub_info->control_pipe);
    242242
    243243
     
    321321        //reset port
    322322        usb_hub_set_reset_port_request(&request, port);
    323         opResult = usb_pipe_control_write(
     323        opResult = usb_endpoint_pipe_control_write(
    324324                        hub->control_pipe,
    325325                        &request,sizeof(usb_device_request_setup_packet_t),
     
    354354        }
    355355        //create connection to device
    356         usb_pipe_t new_device_pipe;
     356        usb_endpoint_pipe_t new_device_pipe;
    357357        usb_device_connection_t new_device_connection;
    358358        usb_device_connection_initialize_on_default_address(
     
    360360                        &hub->connection
    361361                        );
    362         usb_pipe_initialize_default_control(
     362        usb_endpoint_pipe_initialize_default_control(
    363363                        &new_device_pipe,
    364364                        &new_device_connection);
    365         usb_pipe_probe_default_control(&new_device_pipe);
     365        usb_endpoint_pipe_probe_default_control(&new_device_pipe);
    366366
    367367        /* Request address from host controller. */
     
    379379        //opResult = usb_drv_req_set_address(hc, USB_ADDRESS_DEFAULT,
    380380        //    new_device_address);
    381         usb_pipe_start_session(&new_device_pipe);
     381        usb_endpoint_pipe_start_session(&new_device_pipe);
    382382        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);
    384384        if (opResult != EOK) {
    385385                usb_log_error("could not set address for new device %d\n",opResult);
     
    488488        usb_log_debug("interrupt at port %d\n", port);
    489489        //determine type of change
    490         usb_pipe_t *pipe = hub->control_pipe;
     490        usb_endpoint_pipe_t *pipe = hub->control_pipe;
    491491       
    492492        int opResult;
     
    499499        //endpoint 0
    500500
    501         opResult = usb_pipe_control_read(
     501        opResult = usb_endpoint_pipe_control_read(
    502502                        pipe,
    503503                        &request, sizeof(usb_device_request_setup_packet_t),
     
    560560int usb_hub_check_hub_changes(usb_hub_info_t * hub_info){
    561561        int opResult;
    562         opResult = usb_pipe_start_session(
     562        opResult = usb_endpoint_pipe_start_session(
    563563                        hub_info->status_change_pipe);
    564564        if(opResult != EOK){
     
    578578         * Send the request.
    579579         */
    580         opResult = usb_pipe_read(
     580        opResult = usb_endpoint_pipe_read(
    581581                        hub_info->status_change_pipe,
    582582                        change_bitmap, byte_length, &actual_size
     
    586586                free(change_bitmap);
    587587                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);
    589589                return opResult;
    590590        }
    591591        unsigned int port;
    592         opResult = usb_pipe_start_session(hub_info->control_pipe);
     592        opResult = usb_endpoint_pipe_start_session(hub_info->control_pipe);
    593593        if(opResult!=EOK){
    594594                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);
    596596                return opResult;
    597597        }
     
    600600                usb_log_error("could not start host controller session %d\n",
    601601                                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);
    604604                return opResult;
    605605        }
     
    615615        }
    616616        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);
    619619        free(change_bitmap);
    620620        return EOK;
Note: See TracChangeset for help on using the changeset viewer.