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


Ignore:
Timestamp:
2017-11-14T23:17:54Z (8 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/scratchpad.h

    rcfe4852 rb80c1ab  
    4141#define XHCI_SCRATCHPAD_H
    4242
     43#include <usb/host/dma_buffer.h>
     44
    4345typedef struct xhci_hc xhci_hc_t;
    44 
    45 typedef struct xhci_scratchpad {
    46         /* Pointers to scratchpad buffers used by the xHC. */
    47         uint64_t phys_ptr;
    48         /* Pointers to scratchpad buffers used for deallocation. */
    49         uint64_t virt_ptr;
    50         /* Pointers to the scratchpad array used for deallocation. */
    51         uint64_t phys_bck;
    52 } xhci_scratchpad_t;
    5346
    5447int xhci_scratchpad_alloc(xhci_hc_t *);
Note: See TracChangeset for help on using the changeset viewer.