Merge tag 'powerpc-6.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux.git] / drivers / gpu / host1x / fence.h
blobf3c644c73cad504f5244de86adcc03d12eec8436
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2020, NVIDIA Corporation.
4 */
6 #ifndef HOST1X_FENCE_H
7 #define HOST1X_FENCE_H
9 struct host1x_syncpt_fence {
10 struct dma_fence base;
12 atomic_t signaling;
14 struct host1x_syncpt *sp;
15 u32 threshold;
16 bool timeout;
18 struct delayed_work timeout_work;
20 struct list_head list;
23 struct host1x_fence_list {
24 spinlock_t lock;
25 struct list_head list;
28 void host1x_fence_signal(struct host1x_syncpt_fence *fence);
30 #endif