Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5b7ba8d in mainline


Ignore:
Timestamp:
2012-04-08T05:19:48Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
f3378ba
Parents:
6e5369b
Message:

ehci: Add few debug messages and fix typos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/res.c

    r6e5369b r5b7ba8d  
    237237{
    238238        assert(device);
     239        usb_log_debug("Disabling EHCI legacy support.\n");
    239240
    240241#define CHECK_RET_RETURN(ret, message...) \
     
    249250        CHECK_RET_RETURN(ret, "Failed to map registers %p: %s.\n",
    250251            (void *) reg_base, str_error(ret));
     252
     253        usb_log_debug2("Registers mapped at: %p.\n", regs);
    251254
    252255        const uint32_t hcc_params =
     
    286289        if (*usbcmd & USBCMD_RUN) {
    287290                *usbsts = 0x3f; /* ack all interrupts */
    288                 *usbint = 0; /* disable all interrutps */
    289                 *usbconf = 0; /* relase control of RH ports */
     291                *usbint = 0; /* disable all interrupts */
     292                *usbconf = 0; /* release control of RH ports */
    290293
    291294                *usbcmd = 0;
     
    297300        }
    298301        usb_log_debug("Registers: \n"
    299             "\t USBCMD: %x(0x00080000 = at least 1ms between interrupts)\n"
    300             "\t USBSTS: %x(0x00001000 = HC halted)\n"
    301             "\t USBINT: %x(0x0 = no interrupts).\n"
    302             "\t CONFIG: %x(0x0 = ports controlled by companion hc).\n",
    303             *usbcmd, *usbsts, *usbint, *usbconf);
     302            "\t USBCMD(%p): %x(0x00080000 = at least 1ms between interrupts)\n"
     303            "\t USBSTS(%p): %x(0x00001000 = HC halted)\n"
     304            "\t USBINT(%p): %x(0x0 = no interrupts).\n"
     305            "\t CONFIG(%p): %x(0x0 = ports controlled by companion hc).\n",
     306            usbcmd, *usbcmd, usbsts, *usbsts, usbint, *usbint, usbconf,*usbconf);
    304307
    305308        return ret;
Note: See TracChangeset for help on using the changeset viewer.