Changeset b80c1ab in mainline for uspace/drv/bus/usb/xhci/endpoint.h


Ignore:
Timestamp:
2017-11-14T23:17:54Z (6 years ago)
Author:
Aearsis <Hlavaty.Ondrej@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e76c0ea
Parents:
cfe4852
git-author:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 23:15:24)
git-committer:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 23:17:54)
Message:

xhci: use dma_buffers instead of malloc32 util

A bit of refactoring was needed to adapt scratchpad buffers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.h

    rcfe4852 rb80c1ab  
    4040
    4141#include <usb/debug.h>
     42#include <usb/host/dma_buffer.h>
    4243#include <usb/host/endpoint.h>
    4344#include <usb/host/hcd.h>
     
    7273        /** Primary stream context array (or NULL if endpoint doesn't use streams). */
    7374        xhci_stream_ctx_t *primary_stream_ctx_array;
     75        dma_buffer_t primary_stream_ctx_dma;
    7476
    7577        /** Primary stream ring array (or NULL if endpoint doesn't use streams). */
     
    111113        uint32_t route_str;
    112114
    113         /** Place to store virtual address for allocated context */
    114         xhci_device_ctx_t *dev_ctx;
     115        /** Place to store the allocated context */
     116        dma_buffer_t dev_ctx;
    115117
    116118        /** All endpoints of the device. Dropped ones are NULL */
Note: See TracChangeset for help on using the changeset viewer.