Changes in uspace/drv/uhci-hcd/uhci.c [3c775adb:57c0a7e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.c
r3c775adb r57c0a7e 167 167 /* reset hc, all states and counters */ 168 168 pio_write_16(&instance->registers->usbcmd, UHCI_CMD_HCRESET); 169 while ((pio_read_16(&instance->registers->usbcmd) & UHCI_CMD_HCRESET) != 0)170 { async_usleep(10); }169 do { async_usleep(10); } 170 while ((pio_read_16(&instance->registers->usbcmd) & UHCI_CMD_HCRESET) != 0); 171 171 172 172 /* set framelist pointer */ … … 175 175 176 176 /* enable all interrupts, but resume interrupt */ 177 pio_write_16(&instance->registers->usbintr, 178 UHCI_INTR_CRC | UHCI_INTR_COMPLETE | UHCI_INTR_SHORT_PACKET); 179 177 // pio_write_16(&instance->registers->usbintr, 178 // UHCI_INTR_CRC | UHCI_INTR_COMPLETE | UHCI_INTR_SHORT_PACKET); 179 180 uint16_t status = pio_read_16(&instance->registers->usbcmd); 181 usb_log_warning("Previous command value: %x.\n", status); 180 182 /* Start the hc with large(64B) packet FSBR */ 181 183 pio_write_16(&instance->registers->usbcmd,
Note:
See TracChangeset
for help on using the changeset viewer.