Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port.h

    ra1cb170 rcae002c  
    4040#include <usb/classes/hub.h>
    4141
    42 typedef struct usb_hub_info_t usb_hub_info_t;
     42typedef struct usb_hub_dev usb_hub_dev_t;
    4343
    4444/** Information about single port on a hub. */
    4545typedef struct {
     46        /* Port number as reported in descriptors. */
    4647        size_t port_number;
     48        /** Device communication pipe. */
    4749        usb_pipe_t *control_pipe;
    4850        /** Mutex needed not only by CV for checking port reset. */
     
    5860
    5961        /** Information about attached device. */
    60         usb_hc_attached_device_t attached_device;
     62        usb_hub_attached_device_t attached_device;
    6163} usb_hub_port_t;
    6264
     
    7072        assert(port);
    7173        port->attached_device.address = -1;
    72         port->attached_device.handle = 0;
     74        port->attached_device.fun = NULL;
    7375        port->port_number = port_number;
    7476        port->control_pipe = control_pipe;
     
    7678        fibril_condvar_initialize(&port->reset_cv);
    7779}
    78 
    79 void usb_hub_port_reset_fail(usb_hub_port_t *port);
    80 void usb_hub_port_process_interrupt(usb_hub_port_t *port, usb_hub_info_t *hub);
     80int usb_hub_port_fini(usb_hub_port_t *port, usb_hub_dev_t *hub);
    8181int usb_hub_port_clear_feature(
    8282    usb_hub_port_t *port, usb_hub_class_feature_t feature);
    8383int usb_hub_port_set_feature(
    8484    usb_hub_port_t *port, usb_hub_class_feature_t feature);
     85void usb_hub_port_reset_fail(usb_hub_port_t *port);
     86void usb_hub_port_process_interrupt(usb_hub_port_t *port, usb_hub_dev_t *hub);
    8587
    8688#endif
Note: See TracChangeset for help on using the changeset viewer.