Changeset 04c418d in mainline for uspace/drv/uhci-rhd/port.c
- Timestamp:
- 2011-05-17T07:58:39Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d521e24
- Parents:
- e913cc9 (diff), 3375bd4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
re913cc9 r04c418d 36 36 #include <errno.h> 37 37 #include <str_error.h> 38 #include <time.h> 39 #include <async.h> 38 40 39 41 #include <usb/usb.h> /* usb_address_t */ … … 65 67 * 66 68 * @param[in] port Structure to use. 67 * @param[in] val ueNew register value.69 * @param[in] val New register value. 68 70 * @return Error code. (Always EOK) 69 71 */ … … 77 79 * 78 80 * @param[in] port Memory structure to use. 79 * @param[in] addr Address of I/O register.81 * @param[in] address Address of I/O register. 80 82 * @param[in] number Port number. 81 83 * @param[in] usec Polling interval. … … 224 226 uhci_port_write_status(port, port_status); 225 227 while (uhci_port_read_status(port) & STATUS_IN_RESET); 226 // TODO: find a better way to waste time (it should be less than 227 // 10ms, if we reschedule it takes too much time (random 228 // interrupts can be solved by multiple attempts). 229 usb_log_debug2("%s: Reset Signal stop.\n", port->id_string); 230 } 228 } 229 udelay(10); 231 230 /* Enable the port. */ 232 231 uhci_port_set_enabled(port, true);
Note:
See TracChangeset
for help on using the changeset viewer.