diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-19 10:45:49 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-19 10:45:49 +0000 |
| commit | bd3db83087ccd2d65e3806ce2d9b7c69ebc984e1 (patch) | |
| tree | defdd18fc2e7dd6f3e7d8c1181a048c6ae0bf88d /sys/external/bsd/drm2/include/linux | |
| parent | 6cd6aa02ea4caf80820f57cde17593a4282c1c91 (diff) | |
Draft sync_file.
Diffstat (limited to 'sys/external/bsd/drm2/include/linux')
| -rw-r--r-- | sys/external/bsd/drm2/include/linux/sync_file.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/external/bsd/drm2/include/linux/sync_file.h b/sys/external/bsd/drm2/include/linux/sync_file.h index b55ec37f3a6..3c9381b0dde 100644 --- a/sys/external/bsd/drm2/include/linux/sync_file.h +++ b/sys/external/bsd/drm2/include/linux/sync_file.h @@ -1,4 +1,4 @@ -/* $NetBSD: sync_file.h,v 1.3 2021/12/19 00:58:42 riastradh Exp $ */ +/* $NetBSD: sync_file.h,v 1.4 2021/12/19 10:45:49 riastradh Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -32,12 +32,26 @@ #ifndef _LINUX_SYNC_FILE_H_ #define _LINUX_SYNC_FILE_H_ +#include <sys/mutex.h> +#include <sys/select.h> + +#include <linux/dma-fence.h> + struct dma_fence; struct file; struct sync_file; struct sync_file { - struct file *file; + /* Linux API */ + struct file *file; + + /* Private */ + struct dma_fence *sf_fence; + kmutex_t sf_lock; + struct selinfo sf_selq; + struct dma_fence_cb sf_fcb; + bool sf_polling; + bool sf_signalled; }; struct sync_file * |
