Ignore:
File:
1 edited

Legend:

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

    r5097bed4 re080332  
    4343#include <bool.h>
    4444#include <driver.h>
    45 #include <futex.h>
    46 
    4745#include <usb/usb.h>
    4846#include <usb/usbdrv.h>
     
    6866
    6967/**
    70  * create hub structure instance
     68 * @brief create hub structure instance
    7169 *
    7270 * Set the address and port count information most importantly.
     
    8179extern usb_general_list_t usb_hub_list;
    8280
    83 /** lock for hub list*/
    84 extern futex_t usb_hub_list_lock;
    85 
    8681
    8782/**
    88  * perform complete control read transaction
     83 * @brief perform complete control read transaction
    8984 *
    9085 * manages all three steps of transaction: setup, read and finalize
     
    10499
    105100/**
    106  * perform complete control write transaction
     101 * @brief perform complete control write transaction
    107102 *
    108  * manages all three steps of transaction: setup, write and finalize
     103 * maanges all three steps of transaction: setup, write and finalize
    109104 * @param phone
    110105 * @param target
     
    119114    void * sent_buffer, size_t sent_size
    120115);
     116
     117
     118/**
     119 * set the device request to be a set address request
     120 * @param request
     121 * @param addr
     122 * \TODO this will be obsolete see usb/dev_req.h
     123 */
     124static inline void usb_hub_set_set_address_request(
     125usb_device_request_setup_packet_t * request, uint16_t addr
     126){
     127        request->index = 0;
     128        request->request_type = 0;/// \TODO this is not very nice sollution, we ned constant
     129        request->request = USB_DEVREQ_SET_ADDRESS;
     130        request->value = addr;
     131        request->length = 0;
     132}
    121133
    122134/**
Note: See TracChangeset for help on using the changeset viewer.