Changeset 57c0a7e in mainline
- Timestamp:
- 2011-03-06T18:39:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a60150a
- Parents:
- 5620bd4
- Location:
- uspace/drv/uhci-hcd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/uhci.c
r5620bd4 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, -
uspace/drv/uhci-hcd/uhci_struct/transfer_descriptor.c
r5620bd4 r57c0a7e 75 75 instance->next, instance->status, instance->device, 76 76 instance->buffer_ptr, buffer); 77 if (pid == USB_PID_SETUP) { 78 usb_log_debug("SETUP BUFFER: %s\n", 79 usb_debug_str_buffer(buffer, 8, 8)); 80 } 77 81 } 78 82 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.