Changeset a9fcd73 in mainline for uspace/drv/bus/usb/xhci/rh.h


Ignore:
Timestamp:
2018-01-18T02:05:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5bccec3
Parents:
94f8c363
Message:

xhci: rewrite RH to use usb/port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.h

    r94f8c363 ra9fcd73  
    5858typedef struct hcd_roothub hcd_roothub_t;
    5959typedef struct xhci_bus xhci_bus_t;
    60 typedef struct rh_event rh_event_t;
     60typedef struct rh_port rh_port_t;
    6161
    6262/* XHCI root hub instance */
     
    6868        xhci_device_t device;
    6969
    70         /** Interrupt transfer waiting for an actual interrupt to occur */
    71         usb_transfer_batch_t *unfinished_interrupt_transfer;
     70        /* Number of hub ports. */
     71        size_t max_ports;
    7272
    73         /* Number of hub ports. */
    74         uint8_t max_ports;
    75 
    76         /* Device pointers connected to RH ports or NULL. (size is `max_ports`) */
    77         xhci_device_t **devices_by_port;
    78 
    79         /* Roothub events. */
    80         fibril_mutex_t event_guard;
    81         fibril_condvar_t event_ready, event_handled;
    82         unsigned event_readers_waiting;
    83         rh_event_t *event;
     73        /* Array of port structures. (size is `max_ports`) */
     74        rh_port_t *ports;
    8475} xhci_rh_t;
    8576
    8677int xhci_rh_init(xhci_rh_t *, xhci_hc_t *);
    8778int xhci_rh_fini(xhci_rh_t *);
    88 const xhci_port_speed_t *xhci_rh_get_port_speed(xhci_rh_t *, uint8_t);
    8979
    9080void xhci_rh_handle_port_change(xhci_rh_t *, uint8_t);
     81void xhci_rh_set_ports_protocol(xhci_rh_t *, unsigned, unsigned, unsigned);
    9182
    9283#endif
Note: See TracChangeset for help on using the changeset viewer.