Ignore:
File:
1 edited

Legend:

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

    r39c3d95d rdff940f8  
    2727 */
    2828
    29 /** @addtogroup usb
     29/** @addtogroup drvusbhub
    3030 * @{
    3131 */
     
    3636#define DRV_USBHUB_USBHUB_H
    3737
     38#include <ipc/devman.h>
     39#include <usb/usb.h>
     40#include <ddf/driver.h>
     41
    3842#define NAME "usbhub"
    3943
    40 #include "usb/hcdhubd.h"
     44#include <usb/hub.h>
    4145
    42 /** basic information about device attached to hub */
    43 typedef struct{
    44         usb_address_t address;
    45         devman_handle_t devman_handle;
    46 }usb_hub_attached_device_t;
     46#include <usb/pipes.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
     54
    4755
    4856/** Information about attached hub. */
     
    5058        /** Number of ports. */
    5159        int port_count;
    52         /** attached device handles */
    53         usb_hub_attached_device_t * attached_devs;
     60        /** attached device handles, for each port one */
     61        usb_hc_attached_device_t * attached_devs;
    5462        /** General usb device info. */
    55         usb_hcd_attached_device_info_t * usb_device;
     63        //usb_hcd_attached_device_info_t * usb_device;
    5664        /** General device info*/
    57         device_t * device;
    58 
     65        ddf_dev_t * device;
     66        /** connection to hcd */
     67        //usb_device_connection_t connection;
     68        usb_hc_connection_t connection;
     69        /** */
     70        usb_device_connection_t device_connection;
     71        /** hub endpoints */
     72        usb_hub_endpoints_t endpoints;
    5973} usb_hub_info_t;
    6074
    6175/**
    6276 * function running the hub-controlling loop.
    63  * @param noparam fundtion does not need any parameters
     77 * @param hub_info_param hub info pointer
    6478 */
    65 int usb_hub_control_loop(void * noparam);
     79int usb_hub_control_loop(void * hub_info_param);
    6680
    6781/** Callback when new hub device is detected.
     
    7084 * @return Error code.
    7185 */
    72 int usb_add_hub_device(device_t *dev);
     86int usb_add_hub_device(ddf_dev_t *dev);
    7387
    7488/**
    75  * check changes on all registered hubs
     89 * check changes on specified hub
     90 * @param hub_info_param pointer to usb_hub_info_t structure
    7691 */
    77 void usb_hub_check_hub_changes(void);
     92void usb_hub_check_hub_changes(usb_hub_info_t * hub_info_param);
    7893
    7994
    80 //int usb_add_hub_device(device_t *);
    8195
    8296
Note: See TracChangeset for help on using the changeset viewer.