Changeset 5286a2c in mainline


Ignore:
Timestamp:
2011-01-29T09:31:29Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
67a1b78
Parents:
d956aa5
Message:

Reduced debug level and made times shorter

Location:
uspace/drv/uhci
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/main.c

    rd956aa5 r5286a2c  
    7777         */
    7878        sleep(5);
    79         usb_dprintf_enable(NAME, DEBUG_LEVEL_MAX);
     79        usb_dprintf_enable(NAME, DEBUG_LEVEL_INFO);
    8080
    8181        return driver_main(&uhci_driver);
  • uspace/drv/uhci/transfer_list.c

    rd956aa5 r5286a2c  
    4646                instance->queue_head->element = (pa & LINK_POINTER_ADDRESS_MASK);
    4747        }
    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",
    4949          instance);
    5050        return EOK;
  • uspace/drv/uhci/uhci.c

    rd956aa5 r5286a2c  
    225225        assert(instance);
    226226        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);
    232230/*
    233231                uintptr_t frame_list = pio_read_32(&instance->registers->flbaseadd);
  • uspace/drv/uhci/uhci.h

    rd956aa5 r5286a2c  
    7171#define TRANSFER_QUEUES 4
    7272#define UHCI_FRAME_LIST_COUNT 1024
    73 #define UHCI_CLEANER_TIMEOUT 5000000
    74 #define UHCI_DEBUGER_TIMEOUT 2500000
     73#define UHCI_CLEANER_TIMEOUT 1000000
     74#define UHCI_DEBUGER_TIMEOUT 500000
    7575
    7676typedef struct uhci {
  • uspace/drv/uhci/uhci_struct/transfer_descriptor.c

    rd956aa5 r5286a2c  
    3434                instance->next, instance->status, instance->device,
    3535          instance->buffer_ptr, buffer);
    36 
     36#if 0
    3737        if (size) {
    3838                unsigned char * buff = buffer;
     
    4545                printf("\n");
    4646        }
     47#endif
    4748}
    4849
Note: See TracChangeset for help on using the changeset viewer.