forked from thesofproject/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHROMIUM: drm/virtio: Add interfaces to share dma bufs via virtwl.
BUG=chromium:892342 TEST=xeyes repeatedly does not fail Change-Id: Ib74f0992bd9ee2bde10097722c361cdd3e94b64f Signed-off-by: David Riley <davidriley@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1351815 Reviewed-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
- Loading branch information
David Riley
authored and
chrome-bot
committed
Jan 8, 2019
1 parent
aeb585a
commit cea7ac7
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* Virtio GPU interfaces for sharing data. | ||
* | ||
* Copyright (C) 2018 Google, Inc. | ||
*/ | ||
|
||
#ifndef _VIRTIO_DRM_H | ||
#define _VIRTIO_DRM_H | ||
|
||
/* | ||
* The following methods are to share dma bufs with a host via the | ||
* virtio Wayland (virtwl) device. | ||
*/ | ||
|
||
/* | ||
* Converts the given dma_buf to the virtio-gpu specific resource handle | ||
* backing the dma_buf, waiting for creation to be confirmed by the host | ||
* if necessary. | ||
*/ | ||
extern int virtio_gpu_dma_buf_to_handle(struct dma_buf *buf, bool no_wait, | ||
uint32_t *handle); | ||
|
||
#endif /* _VIRTIO_DRM_H */ |