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

Changeset d967aa1 in mainline


Ignore:
Timestamp:
2017-08-17T14:24:27Z (3 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
master
Children:
e4001f7
Parents:
40053529
Message:

Converting to physical address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    r40053529 rd967aa1  
    3333 * @brief The roothub structures abstraction.
    3434 */
    35  
     35
    3636#include <errno.h>
    3737#include <str_error.h>
     
    9898            hc->speeds[port_speed_id].tx_bps);
    9999        XHCI_EP_MAX_BURST_SIZE_SET(ictx->endpoint_ctx[0], 0);
    100         XHCI_EP_TR_DPTR_SET(ictx->endpoint_ctx[0], ep_ring->dequeue);
     100        XHCI_EP_TR_DPTR_SET(ictx->endpoint_ctx[0], addr_to_phys(ep_ring->dequeue));
    101101        XHCI_EP_DCS_SET(ictx->endpoint_ctx[0], 1);
    102102        XHCI_EP_INTERVAL_SET(ictx->endpoint_ctx[0], 0);
     
    124124        xhci_free_command(cmd);
    125125        ictx = NULL;
     126
     127        // TODO: Issue configure endpoint commands (sec 4.3.5).
    126128
    127129        return EOK;
     
    207209        uint8_t port_id = XHCI_QWORD_EXTRACT(trb->parameter, 31, 24);
    208210
    209         return port_id;   
     211        return port_id;
    210212}
    211213
Note: See TracChangeset for help on using the changeset viewer.