Changeset a9fcd73 in mainline for uspace/drv/bus/usb/xhci/rh.h
- Timestamp:
- 2018-01-18T02:05:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bccec3
- Parents:
- 94f8c363
- File:
-
- 1 edited
-
uspace/drv/bus/usb/xhci/rh.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.h
r94f8c363 ra9fcd73 58 58 typedef struct hcd_roothub hcd_roothub_t; 59 59 typedef struct xhci_bus xhci_bus_t; 60 typedef struct rh_ event rh_event_t;60 typedef struct rh_port rh_port_t; 61 61 62 62 /* XHCI root hub instance */ … … 68 68 xhci_device_t device; 69 69 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; 72 72 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; 84 75 } xhci_rh_t; 85 76 86 77 int xhci_rh_init(xhci_rh_t *, xhci_hc_t *); 87 78 int xhci_rh_fini(xhci_rh_t *); 88 const xhci_port_speed_t *xhci_rh_get_port_speed(xhci_rh_t *, uint8_t);89 79 90 80 void xhci_rh_handle_port_change(xhci_rh_t *, uint8_t); 81 void xhci_rh_set_ports_protocol(xhci_rh_t *, unsigned, unsigned, unsigned); 91 82 92 83 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
