Changeset 1e32a63 in mainline for uspace/drv/vhc/hub.c
- Timestamp:
- 2010-12-13T00:30:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f9a0cef
- Parents:
- f8597ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hub.c
rf8597ca r1e32a63 181 181 hub_port_t *port = &hub_dev.ports[i]; 182 182 183 port->index = (int) i ;183 port->index = (int) i + 1; 184 184 port->device = NULL; 185 185 port->state = HUB_PORT_STATE_NOT_CONFIGURED; 186 186 port->status_change = 0; 187 fibril_mutex_initialize(&port->guard); 187 188 } 188 189 … … 225 226 for (i = 0; i < HUB_PORT_COUNT; i++) { 226 227 hub_port_t *port = &hub_dev.ports[i]; 228 fibril_mutex_lock(&port->guard); 227 229 228 230 if (port->device != NULL) { 231 fibril_mutex_unlock(&port->guard); 229 232 continue; 230 233 } … … 241 244 //if (port->state == HUB_PORT_STATE_DISCONNECTED) { 242 245 port->state = HUB_PORT_STATE_DISABLED; 243 set_port_status_change (port, HUB_STATUS_C_PORT_CONNECTION);246 set_port_status_change_nl(port, HUB_STATUS_C_PORT_CONNECTION); 244 247 //} 245 248 249 fibril_mutex_unlock(&port->guard); 250 246 251 return i; 247 252 }
Note:
See TracChangeset
for help on using the changeset viewer.