Changeset c127e1c in mainline for uspace/drv/bus/usb/ehci/res.c


Ignore:
Timestamp:
2012-04-11T15:37:01Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
49a736e2
Parents:
3a01483 (diff), d11a181 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mainline changes.

File:
1 edited

Legend:

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

    r3a01483 rc127e1c  
    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.