Ignore:
File:
1 edited

Legend:

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

    r9d58539 r0918382f  
    3737
    3838#include <usb/dev/driver.h>
    39 #include <usb/dev/hub.h>
    4039#include <usb/classes/hub.h>
     40#include <usb_iface.h>
    4141
    4242typedef struct usb_hub_dev usb_hub_dev_t;
     
    4444/** Information about single port on a hub. */
    4545typedef struct {
    46         /* Port number as reported in descriptors. */
    47         size_t port_number;
     46        /** Port number as reported in descriptors. */
     47        unsigned port_number;
    4848        /** Device communication pipe. */
    4949        usb_pipe_t *control_pipe;
     
    5858        /** Whether to announce the port reset as successful. */
    5959        bool reset_okay;
    60 
    61         /** Information about attached device. */
    62         usb_hub_attached_device_t attached_device;
     60        /** Device reported to USB bus driver */
     61        bool device_attached;
    6362} usb_hub_port_t;
    6463
     
    6766 * @param port Port to be initialized.
    6867 */
    69 static inline void usb_hub_port_init(usb_hub_port_t *port, size_t port_number,
     68static inline void usb_hub_port_init(usb_hub_port_t *port, unsigned port_number,
    7069    usb_pipe_t *control_pipe)
    7170{
    7271        assert(port);
    73         port->attached_device.address = -1;
    74         port->attached_device.fun = NULL;
    7572        port->port_number = port_number;
    7673        port->control_pipe = control_pipe;
     74        port->reset_completed = false;
     75        port->reset_okay = false;
     76        port->device_attached = false;
    7777        fibril_mutex_initialize(&port->mutex);
    7878        fibril_condvar_initialize(&port->reset_cv);
Note: See TracChangeset for help on using the changeset viewer.