Changeset 62f4212 in mainline for uspace/drv/usbhub/usbhub.h


Ignore:
Timestamp:
2011-03-22T10:07:53Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8e4cb6
Parents:
18b3cfd (diff), b01995b (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:

Merged changes from development

File:
1 edited

Legend:

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

    r18b3cfd r62f4212  
    4545
    4646#include <usb/pipes.h>
    47 
    48 /* Hub endpoints. */
    49 typedef struct {
    50         usb_endpoint_pipe_t control;
    51         usb_endpoint_pipe_t status_change;
    52 } usb_hub_endpoints_t;
    53 
     47#include <usb/devdrv.h>
    5448
    5549
     
    5852        /** Number of ports. */
    5953        int port_count;
     54
    6055        /** attached device handles, for each port one */
    6156        usb_hc_attached_device_t * attached_devs;
    62         /** General usb device info. */
    63         //usb_hcd_attached_device_info_t * usb_device;
    64         /** General device info*/
    65         ddf_dev_t * device;
     57       
    6658        /** connection to hcd */
    67         //usb_device_connection_t connection;
    6859        usb_hc_connection_t connection;
    69         /** */
    70         usb_device_connection_t device_connection;
    71         /** hub endpoints */
    72         usb_hub_endpoints_t endpoints;
    7360
     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         */
    7466        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;
    7586} usb_hub_info_t;
    7687
     
    8091 */
    8192int 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  */
    88 int usb_add_hub_device(ddf_dev_t *dev);
    8993
    9094/**
     
    97101
    98102
    99 
    100 
     103int usb_hub_add_device(usb_device_t * usb_dev);
    101104
    102105#endif
Note: See TracChangeset for help on using the changeset viewer.