Changeset 35c37fc in mainline for uspace/drv/bus/usb/ehci/ehci_bus.h


Ignore:
Timestamp:
2018-01-05T20:15:08Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e5b162
Parents:
b60944b
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-05 16:11:04)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-05 20:15:08)
Message:

ehci: refactor to dma_buffers

One big hidden thing was refactored - now TDs are allocated in one
buffer together with setup and data buffers themselves. This reduces the
number of allocated pages per transfer to minimum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_bus.h

    rb60944b r35c37fc  
    4040#include <usb/host/usb2_bus.h>
    4141#include <usb/host/endpoint.h>
     42#include <usb/host/dma_buffer.h>
    4243
    4344#include "hw_struct/queue_head.h"
     
    4849        endpoint_t base;
    4950
    50         /** EHCI endpoint descriptor */
     51        /** EHCI endpoint descriptor, backed by dma_buffer */
    5152        qh_t *qh;
     53       
     54        dma_buffer_t dma_buffer;
    5255        /** Linked list used by driver software */
    5356        link_t link;
Note: See TracChangeset for help on using the changeset viewer.