Ignore:
File:
1 edited

Legend:

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

    r0f21c0c r6f8f808  
    4545#include <fibril_synch.h>
    4646
     47#include <usb/usb.h>
     48#include <usb/usbdrv.h>
    4749#include <usb/classes/hub.h>
    48 #include <usb/usb.h>
     50#include <usb/devreq.h>
    4951#include <usb/debug.h>
    50 #include <usb/request.h>
    5152
    5253//************
     
    7677 * @return
    7778 */
    78 usb_hub_info_t * usb_create_hub_info(device_t * device);
     79usb_hub_info_t * usb_create_hub_info(device_t * device, int hc);
    7980
    8081/** List of hubs maanged by this driver */
     
    9798 * @return error code
    9899 */
    99 /*
    100100int usb_drv_sync_control_read(
    101     usb_endpoint_pipe_t *pipe,
     101    int phone, usb_target_t target,
    102102    usb_device_request_setup_packet_t * request,
    103103    void * rcvd_buffer, size_t rcvd_size, size_t * actual_size
    104 );*/
     104);
    105105
    106106/**
     
    115115 * @return error code
    116116 */
    117 /*int usb_drv_sync_control_write(
    118     usb_endpoint_pipe_t *pipe,
     117int usb_drv_sync_control_write(
     118    int phone, usb_target_t target,
    119119    usb_device_request_setup_packet_t * request,
    120120    void * sent_buffer, size_t sent_size
    121 );*/
     121);
    122122
    123123/**
     
    147147 * @return Operation result
    148148 */
    149 static inline int usb_hub_clear_port_feature(usb_endpoint_pipe_t *pipe,
     149static inline int usb_hub_clear_port_feature(int hc, usb_address_t address,
    150150    int port_index,
    151151    usb_hub_class_feature_t feature) {
    152        
     152        usb_target_t target = {
     153                .address = address,
     154                .endpoint = 0
     155        };
    153156        usb_device_request_setup_packet_t clear_request = {
    154157                .request_type = USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE,
     
    158161        };
    159162        clear_request.value = feature;
    160         return usb_endpoint_pipe_control_write(pipe, &clear_request,
     163        return usb_drv_psync_control_write(hc, target, &clear_request,
    161164            sizeof(clear_request), NULL, 0);
    162165}
Note: See TracChangeset for help on using the changeset viewer.