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


Ignore:
Timestamp:
2011-02-21T22:25:58Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
233e68d
Parents:
fb78ae72 (diff), dbe25f1 (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.
Message:

Development branch merge

File:
1 edited

Legend:

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

    rfb78ae72 rdeece2f  
    4545#include <fibril_synch.h>
    4646
     47#include <usb/classes/hub.h>
    4748#include <usb/usb.h>
    48 #include <usb/usbdrv.h>
    49 #include <usb/classes/hub.h>
    50 #include <usb/devreq.h>
    5149#include <usb/debug.h>
     50#include <usb/request.h>
    5251
    5352//************
     
    7776 * @return
    7877 */
    79 usb_hub_info_t * usb_create_hub_info(device_t * device, int hc);
     78usb_hub_info_t * usb_create_hub_info(device_t * device);
    8079
    8180/** List of hubs maanged by this driver */
     
    9897 * @return error code
    9998 */
     99/*
    100100int usb_drv_sync_control_read(
    101     int phone, usb_target_t target,
     101    usb_endpoint_pipe_t *pipe,
    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     int phone, usb_target_t target,
     117/*int usb_drv_sync_control_write(
     118    usb_endpoint_pipe_t *pipe,
    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(int hc, usb_address_t address,
     149static inline int usb_hub_clear_port_feature(usb_endpoint_pipe_t *pipe,
    150150    int port_index,
    151151    usb_hub_class_feature_t feature) {
    152         usb_target_t target = {
    153                 .address = address,
    154                 .endpoint = 0
    155         };
     152       
    156153        usb_device_request_setup_packet_t clear_request = {
    157154                .request_type = USB_HUB_REQ_TYPE_CLEAR_PORT_FEATURE,
     
    161158        };
    162159        clear_request.value = feature;
    163         return usb_drv_psync_control_write(hc, target, &clear_request,
     160        return usb_endpoint_pipe_control_write(pipe, &clear_request,
    164161            sizeof(clear_request), NULL, 0);
    165162}
Note: See TracChangeset for help on using the changeset viewer.