Changeset 4c70554 in mainline for uspace/drv/uhci-hcd/hc.c


Ignore:
Timestamp:
2011-04-13T19:06:11Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9d2d444
Parents:
a0a134b
Message:

Refactoring, doxygen

Remove queue_head_pa, it was not really needed as this value was use exactly once for every list.
qh_set_next_qh accepts virtual address and does the conversion internally.
Removed unused qh function

File:
1 edited

Legend:

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

    ra0a134b r4c70554  
    228228        /* Set all frames to point to the first queue head */
    229229        const uint32_t queue =
    230           instance->transfers_interrupt.queue_head_pa
    231           | LINK_POINTER_QUEUE_HEAD_FLAG;
     230            LINK_POINTER_QH(addr_to_phys(
     231                instance->transfers_interrupt.queue_head));
    232232
    233233        unsigned i = 0;
     
    236236        }
    237237
    238         /* Init device keeper*/
     238        /* Init device keeper */
    239239        usb_device_keeper_init(&instance->manager);
    240240        usb_log_debug("Initialized device manager.\n");
Note: See TracChangeset for help on using the changeset viewer.