Ignore:
File:
1 edited

Legend:

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

    r3954a63b rd493ac17  
    5858
    5959
     60//************
     61//
     62// convenience debug printf for usb hub
     63//
     64//************
     65#define dprintf(level, format, ...) \
     66        usb_log_printf((level), format "\n", ##__VA_ARGS__)
     67
     68
    6069/**
    6170 * Create hub structure instance
     
    6877 */
    6978usb_hub_info_t * usb_create_hub_info(ddf_dev_t * device);
     79
     80/** List of hubs maanged by this driver */
     81extern usb_general_list_t usb_hub_list;
     82
     83/** Lock for hub list*/
     84extern fibril_mutex_t usb_hub_list_lock;
     85
     86
     87/**
     88 * Perform complete control read transaction
     89 *
     90 * Manages all three steps of transaction: setup, read and finalize
     91 * @param phone
     92 * @param target
     93 * @param request Request packet
     94 * @param rcvd_buffer Received data
     95 * @param rcvd_size
     96 * @param actual_size Actual size of received data
     97 * @return error code
     98 */
     99/*
     100int usb_drv_sync_control_read(
     101    usb_endpoint_pipe_t *pipe,
     102    usb_device_request_setup_packet_t * request,
     103    void * rcvd_buffer, size_t rcvd_size, size_t * actual_size
     104);*/
     105
     106/**
     107 * Perform complete control write transaction
     108 *
     109 * Manages all three steps of transaction: setup, write and finalize
     110 * @param phone
     111 * @param target
     112 * @param request Request packet to send data
     113 * @param sent_buffer
     114 * @param sent_size
     115 * @return error code
     116 */
     117/*int usb_drv_sync_control_write(
     118    usb_endpoint_pipe_t *pipe,
     119    usb_device_request_setup_packet_t * request,
     120    void * sent_buffer, size_t sent_size
     121);*/
    70122
    71123/**
     
    95147 * @return Operation result
    96148 */
    97 static inline int usb_hub_clear_port_feature(usb_pipe_t *pipe,
     149static inline int usb_hub_clear_port_feature(usb_endpoint_pipe_t *pipe,
    98150    int port_index,
    99151    usb_hub_class_feature_t feature) {
     
    106158        };
    107159        clear_request.value = feature;
    108         return usb_pipe_control_write(pipe, &clear_request,
     160        return usb_endpoint_pipe_control_write(pipe, &clear_request,
    109161            sizeof(clear_request), NULL, 0);
    110162}
    111163
    112164/**
    113  * create uint8_t array with serialized descriptor
     165 * @brief create uint8_t array with serialized descriptor
    114166 *
    115167 * @param descriptor
     
    119171
    120172/**
    121  * create deserialized desriptor structure out of serialized descriptor
     173 * @brief create deserialized desriptor structure out of serialized descriptor
    122174 *
    123175 * The serialized descriptor must be proper usb hub descriptor,
Note: See TracChangeset for help on using the changeset viewer.