Changeset 0918382f in mainline for uspace/drv/bus/usb/usbhub/port.h
- Timestamp:
- 2013-08-07T15:00:36Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 14dd4c9
- Parents:
- 2757247
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/port.h
r2757247 r0918382f 44 44 /** Information about single port on a hub. */ 45 45 typedef struct { 46 /* Port number as reported in descriptors. */47 size_tport_number;46 /** Port number as reported in descriptors. */ 47 unsigned port_number; 48 48 /** Device communication pipe. */ 49 49 usb_pipe_t *control_pipe; … … 58 58 /** Whether to announce the port reset as successful. */ 59 59 bool reset_okay; 60 61 usb_device_handle_t attached_handle; 62 60 /** Device reported to USB bus driver */ 61 bool device_attached; 63 62 } usb_hub_port_t; 64 63 … … 67 66 * @param port Port to be initialized. 68 67 */ 69 static inline void usb_hub_port_init(usb_hub_port_t *port, size_tport_number,68 static inline void usb_hub_port_init(usb_hub_port_t *port, unsigned port_number, 70 69 usb_pipe_t *control_pipe) 71 70 { … … 73 72 port->port_number = port_number; 74 73 port->control_pipe = control_pipe; 75 port->attached_handle = USB_DEVICE_HANDLE_INVALID; 74 port->reset_completed = false; 75 port->reset_okay = false; 76 port->device_attached = false; 76 77 fibril_mutex_initialize(&port->mutex); 77 78 fibril_condvar_initialize(&port->reset_cv);
Note:
See TracChangeset
for help on using the changeset viewer.