Changeset 5286a2c in mainline
- Timestamp:
- 2011-01-29T09:31:29Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67a1b78
- Parents:
- d956aa5
- Location:
- uspace/drv/uhci
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/main.c
rd956aa5 r5286a2c 77 77 */ 78 78 sleep(5); 79 usb_dprintf_enable(NAME, DEBUG_LEVEL_ MAX);79 usb_dprintf_enable(NAME, DEBUG_LEVEL_INFO); 80 80 81 81 return driver_main(&uhci_driver); -
uspace/drv/uhci/transfer_list.c
rd956aa5 r5286a2c 46 46 instance->queue_head->element = (pa & LINK_POINTER_ADDRESS_MASK); 47 47 } 48 uhci_print_ info("Successfully added transfer to the hc queue %p.\n",48 uhci_print_verbose("Successfully added transfer to the hc queue %p.\n", 49 49 instance); 50 50 return EOK; -
uspace/drv/uhci/uhci.c
rd956aa5 r5286a2c 225 225 assert(instance); 226 226 while (1) { 227 uint16_t reg; 228 reg = pio_read_16(&instance->registers->usbcmd); 229 uhci_print_info("Command register: %X\n", reg); 230 reg = pio_read_16(&instance->registers->usbsts); 231 uhci_print_info("Status register: %X\n", reg); 227 uint16_t cmd = pio_read_16(&instance->registers->usbcmd); 228 uint16_t sts = pio_read_16(&instance->registers->usbsts); 229 uhci_print_verbose("Command register: %X Status register: %X\n", cmd, sts); 232 230 /* 233 231 uintptr_t frame_list = pio_read_32(&instance->registers->flbaseadd); -
uspace/drv/uhci/uhci.h
rd956aa5 r5286a2c 71 71 #define TRANSFER_QUEUES 4 72 72 #define UHCI_FRAME_LIST_COUNT 1024 73 #define UHCI_CLEANER_TIMEOUT 500000074 #define UHCI_DEBUGER_TIMEOUT 250000073 #define UHCI_CLEANER_TIMEOUT 1000000 74 #define UHCI_DEBUGER_TIMEOUT 500000 75 75 76 76 typedef struct uhci { -
uspace/drv/uhci/uhci_struct/transfer_descriptor.c
rd956aa5 r5286a2c 34 34 instance->next, instance->status, instance->device, 35 35 instance->buffer_ptr, buffer); 36 36 #if 0 37 37 if (size) { 38 38 unsigned char * buff = buffer; … … 45 45 printf("\n"); 46 46 } 47 #endif 47 48 } 48 49
Note:
See TracChangeset
for help on using the changeset viewer.