Changeset 1b90e90 in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2012-03-05T20:51:42Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
81716eb
Parents:
45f4f19
Message:

ohci: Improve HCCA structure handling. Add comments.

Fix minor root hub bug.

File:
1 edited

Legend:

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

    r45f4f19 r1b90e90  
    592592        if (instance->hcca == NULL)
    593593                return ENOMEM;
    594         bzero(instance->hcca, sizeof(hcca_t));
    595594        usb_log_debug2("OHCI HCCA initialized at %p.\n", instance->hcca);
    596595
    597         for (unsigned i = 0; i < 32; ++i) {
    598                 OHCI_WR(instance->hcca->int_ep[i],
     596        for (unsigned i = 0; i < HCCA_INT_EP_COUNT; ++i) {
     597                hcca_set_int_ep(instance->hcca, i,
    599598                    instance->lists[USB_TRANSFER_INTERRUPT].list_head_pa);
    600599        }
Note: See TracChangeset for help on using the changeset viewer.