Changeset 69df9373 in mainline for uspace/drv/usbhub/ports.h
- Timestamp:
- 2011-04-07T12:14:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a82889e, c1b1944
- Parents:
- c50941f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/ports.h
rc50941f r69df9373 46 46 #include <usb/devdrv.h> 47 47 48 /** Information about single port on a hub. */ 48 49 typedef struct { 50 /** Mutex needed by CV for checking port reset. */ 49 51 fibril_mutex_t reset_mutex; 52 /** CV for waiting to port reset completion. */ 50 53 fibril_condvar_t reset_cv; 54 /** Whether port reset is completed. 55 * Guarded by @c reset_mutex. 56 */ 57 bool reset_completed; 58 59 /** Information about attached device. */ 51 60 usb_hc_attached_device_t attached_device; 52 bool reset_completed;53 61 } usb_hub_port_t; 54 62 63 /** Initialize hub port information. 64 * 65 * @param port Port to be initialized. 66 */ 55 67 static inline void usb_hub_port_init(usb_hub_port_t *port) { 56 68 port->attached_device.address = -1;
Note:
See TracChangeset
for help on using the changeset viewer.