Skip to content
Snippets Groups Projects
Commit bb73e549 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti Committed by OpenEmbedded
Browse files

dma-buf: Add support for mapping buffers with DMA attributes

REFERENCE:
https://git.seco.com/edgehog/bsp/rockchip/linux-seco-rk/-/commit/f57c5b53d9a29ac14a73d624b41c104c8141a444
parent bb923a9c
No related branches found
No related tags found
No related merge requests found
......@@ -373,6 +373,8 @@ struct dma_buf_attach_ops {
* @dir: direction of cached mapping.
* @peer2peer: true if the importer can handle peer resources without pages.
* @priv: exporter specific attachment data.
* @dma_map_attrs: DMA attributes to be used when the exporter maps the buffer
* through dma_buf_map_attachment.
* @importer_ops: importer operations for this attachment, if provided
* dma_buf_map/unmap_attachment() must be called with the dma_resv lock held.
* @importer_priv: importer specific attachment data.
......@@ -396,6 +398,7 @@ struct dma_buf_attachment {
const struct dma_buf_attach_ops *importer_ops;
void *importer_priv;
void *priv;
unsigned long dma_map_attrs;
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment