Changeset 65eac7b in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2012-02-24T03:08:24Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
668a2e8
Parents:
4e30369
Message:

ohci: Use endain aware access to manipulate memory structures.

Enable work queues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hc.c

    r4e30369 r65eac7b  
    515515
    516516        /* Enable queues */
    517 //      OHCI_SET(instance->registers->control, (C_PLE | C_IE | C_CLE | C_BLE));
    518 //      usb_log_debug("Queues enabled(%x).\n",
    519 //          OHCI_RD(instance->registers->control));
     517        OHCI_SET(instance->registers->control, (C_PLE | C_IE | C_CLE | C_BLE));
     518        usb_log_debug("Queues enabled(%x).\n",
     519            OHCI_RD(instance->registers->control));
    520520
    521521        /* Enable interrupts */
     
    596596
    597597        for (unsigned i = 0; i < 32; ++i) {
    598                 instance->hcca->int_ep[i] =
    599                     instance->lists[USB_TRANSFER_INTERRUPT].list_head_pa;
     598                OHCI_WR(instance->hcca->int_ep[i],
     599                    instance->lists[USB_TRANSFER_INTERRUPT].list_head_pa);
    600600        }
    601601        usb_log_debug2("Interrupt HEADs set to: %p (%#" PRIx32 ").\n",
Note: See TracChangeset for help on using the changeset viewer.