Changeset d6f78857 in mainline


Ignore:
Timestamp:
2011-02-04T17:02:02Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2899980
Parents:
9e4f6a7
Message:

More debug output

reduce timeout

Location:
uspace/drv/uhci-hcd
Files:
4 edited

Legend:

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

    r9e4f6a7 rd6f78857  
    134134         */
    135135        sleep(5);
    136         usb_log_enable(USB_LOG_LEVEL_DEBUG, NAME);
     136        usb_log_enable(USB_LOG_LEVEL_INFO, NAME);
    137137
    138138        return driver_main(&uhci_driver);
  • uspace/drv/uhci-hcd/uhci.c

    r9e4f6a7 rd6f78857  
    238238                                        it, it->status, addr_to_phys((void*)it) );
    239239                                usb_log_debug("First to send: %x\n",
    240                                         (current_list->queue_head->element & (~0xf)) );
     240                                        (current_list->queue_head->element) );
    241241                        }
    242242
     
    269269
    270270                uintptr_t frame_list = pio_read_32(&instance->registers->flbaseadd);
    271                 usb_log_debug("Framelist address: %p vs. %p.\n",
    272                         frame_list, addr_to_phys(instance->frame_list));
     271                if (frame_list != (uintptr_t)addr_to_phys(instance->frame_list)) {
     272                        usb_log_debug("Framelist address: %p vs. %p.\n",
     273                                frame_list, addr_to_phys(instance->frame_list));
     274                }
    273275                int frnum = pio_read_16(&instance->registers->frnum) & 0x3ff;
    274                 usb_log_debug("Framelist item: %d \n", frnum );
     276                usb_log_debug2("Framelist item: %d \n", frnum );
    275277
    276278                queue_head_t* qh = instance->transfers_interrupt.queue_head;
  • uspace/drv/uhci-hcd/uhci.h

    r9e4f6a7 rd6f78857  
    7070#define TRANSFER_QUEUES 4
    7171#define UHCI_FRAME_LIST_COUNT 1024
    72 #define UHCI_CLEANER_TIMEOUT 1000000
     72#define UHCI_CLEANER_TIMEOUT 10000
    7373#define UHCI_DEBUGER_TIMEOUT 500000
    7474
  • uspace/drv/uhci-hcd/utils/malloc32.h

    r9e4f6a7 rd6f78857  
    7171}
    7272
    73 static inline void * memalign32(size_t size, size_t alignment)
    74         { return memalign(alignment, size); }
    75 
    7673static inline void free32(void *addr)
    7774        { if (addr) free(addr); }
Note: See TracChangeset for help on using the changeset viewer.