Ignore:
File:
1 edited

Legend:

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

    r625f1ba ra83e138  
    4545
    4646#include <usb/pipes.h>
    47 #include <usb/devdrv.h>
     47
     48/* Hub endpoints. */
     49typedef struct {
     50        usb_endpoint_pipe_t control;
     51        usb_endpoint_pipe_t status_change;
     52} usb_hub_endpoints_t;
     53
    4854
    4955
     
    5258        /** Number of ports. */
    5359        int port_count;
    54 
    5560        /** attached device handles, for each port one */
    5661        usb_hc_attached_device_t * attached_devs;
    57        
     62        /** General usb device info. */
     63        //usb_hcd_attached_device_info_t * usb_device;
     64        /** General device info*/
     65        ddf_dev_t * device;
    5866        /** connection to hcd */
     67        //usb_device_connection_t connection;
    5968        usb_hc_connection_t connection;
     69        /** */
     70        usb_device_connection_t device_connection;
     71        /** hub endpoints */
     72        usb_hub_endpoints_t endpoints;
    6073
    61         /** default address is used indicator
    62          *
    63          * If default address is requested by this device, it cannot
    64          * be requested by the same hub again, otherwise a deadlock will occur.
    65          */
    6674        bool is_default_address_used;
    67 
    68         /** convenience pointer to status change pipe
    69          *
    70          * Status change pipe is initialized in usb_device structure. This is
    71          * pointer into this structure, so that it does not have to be
    72          * searched again and again for the 'right pipe'.
    73          */
    74         usb_pipe_t * status_change_pipe;
    75 
    76         /** convenience pointer to control pipe
    77          *
    78          * Control pipe is initialized in usb_device structure. This is
    79          * pointer into this structure, so that it does not have to be
    80          * searched again and again for the 'right pipe'.
    81          */
    82         usb_pipe_t * control_pipe;
    83 
    84         /** generic usb device data*/
    85         usb_device_t * usb_device;
    8675} usb_hub_info_t;
    8776
     
    9180 */
    9281int usb_hub_control_loop(void * hub_info_param);
     82
     83/** Callback when new hub device is detected.
     84 *
     85 * @param dev New device.
     86 * @return Error code.
     87 */
     88int usb_add_hub_device(ddf_dev_t *dev);
    9389
    9490/**
     
    10197
    10298
    103 int usb_hub_add_device(usb_device_t * usb_dev);
     99
     100
    104101
    105102#endif
Note: See TracChangeset for help on using the changeset viewer.