Ignore:
File:
1 edited

Legend:

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

    rdff940f8 r39c3d95d  
    2727 */
    2828
    29 /** @addtogroup drvusbhub
     29/** @addtogroup usb
    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 
    4238#define NAME "usbhub"
    4339
    44 #include <usb/hub.h>
     40#include "usb/hcdhubd.h"
    4541
    46 #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 
    54 
     42/** basic information about device attached to hub */
     43typedef struct{
     44        usb_address_t address;
     45        devman_handle_t devman_handle;
     46}usb_hub_attached_device_t;
    5547
    5648/** Information about attached hub. */
     
    5850        /** Number of ports. */
    5951        int port_count;
    60         /** attached device handles, for each port one */
    61         usb_hc_attached_device_t * attached_devs;
     52        /** attached device handles */
     53        usb_hub_attached_device_t * attached_devs;
    6254        /** General usb device info. */
    63         //usb_hcd_attached_device_info_t * usb_device;
     55        usb_hcd_attached_device_info_t * usb_device;
    6456        /** General device info*/
    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;
     57        device_t * device;
     58
    7359} usb_hub_info_t;
    7460
    7561/**
    7662 * function running the hub-controlling loop.
    77  * @param hub_info_param hub info pointer
     63 * @param noparam fundtion does not need any parameters
    7864 */
    79 int usb_hub_control_loop(void * hub_info_param);
     65int usb_hub_control_loop(void * noparam);
    8066
    8167/** Callback when new hub device is detected.
     
    8470 * @return Error code.
    8571 */
    86 int usb_add_hub_device(ddf_dev_t *dev);
     72int usb_add_hub_device(device_t *dev);
    8773
    8874/**
    89  * check changes on specified hub
    90  * @param hub_info_param pointer to usb_hub_info_t structure
     75 * check changes on all registered hubs
    9176 */
    92 void usb_hub_check_hub_changes(usb_hub_info_t * hub_info_param);
     77void usb_hub_check_hub_changes(void);
    9378
    9479
     80//int usb_add_hub_device(device_t *);
    9581
    9682
Note: See TracChangeset for help on using the changeset viewer.