Changeset d81ef61c in mainline for uspace/drv/usbhub/usbhub_private.h


Ignore:
Timestamp:
2011-02-18T14:24:55Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50ba203
Parents:
fe1776c2
Message:

uncompilable changes, partially applying pipe api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub_private.h

    rfe1776c2 rd81ef61c  
    7777 * @return
    7878 */
    79 usb_hub_info_t * usb_create_hub_info(device_t * device, int hc);
     79usb_hub_info_t * usb_create_hub_info(device_t * device);
    8080
    8181/** List of hubs maanged by this driver */
     
    9898 * @return error code
    9999 */
     100/*
    100101int usb_drv_sync_control_read(
    101     int phone, usb_target_t target,
     102    usb_endpoint_pipe_t *pipe,
    102103    usb_device_request_setup_packet_t * request,
    103104    void * rcvd_buffer, size_t rcvd_size, size_t * actual_size
    104 );
     105);*/
    105106
    106107/**
     
    115116 * @return error code
    116117 */
    117 int usb_drv_sync_control_write(
    118     int phone, usb_target_t target,
     118/*int usb_drv_sync_control_write(
     119    usb_endpoint_pipe_t *pipe,
    119120    usb_device_request_setup_packet_t * request,
    120121    void * sent_buffer, size_t sent_size
    121 );
     122);*/
    122123
    123124/**
     
    147148 * @return Operation result
    148149 */
    149 static inline int usb_hub_clear_port_feature(int hc, usb_address_t address,
     150static inline int usb_hub_clear_port_feature(usb_endpoint_pipe_t *pipe,
    150151    int port_index,
    151152    usb_hub_class_feature_t feature) {
    152         usb_target_t target = {
    153                 .address = address,
    154                 .endpoint = 0
    155         };
     153       
    156154        usb_device_request_setup_packet_t clear_request = {
    157155                .request_type = USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE,
     
    161159        };
    162160        clear_request.value = feature;
    163         return usb_drv_psync_control_write(hc, target, &clear_request,
     161        return usb_endpoint_pipe_control_write(pipe, &clear_request,
    164162            sizeof(clear_request), NULL, 0);
    165163}
Note: See TracChangeset for help on using the changeset viewer.