1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2021 Intel Corporation
9 #include "xe_sync_types.h"
17 #define SYNC_PARSE_FLAG_EXEC BIT(0)
18 #define SYNC_PARSE_FLAG_LR_MODE BIT(1)
19 #define SYNC_PARSE_FLAG_DISALLOW_USER_FENCE BIT(2)
21 int xe_sync_entry_parse(struct xe_device *xe, struct xe_file *xef,
22 struct xe_sync_entry *sync,
23 struct drm_xe_sync __user *sync_user,
25 int xe_sync_entry_wait(struct xe_sync_entry *sync);
26 int xe_sync_entry_add_deps(struct xe_sync_entry *sync,
27 struct xe_sched_job *job);
28 void xe_sync_entry_signal(struct xe_sync_entry *sync,
29 struct xe_sched_job *job,
30 struct dma_fence *fence);
31 void xe_sync_entry_cleanup(struct xe_sync_entry *sync);
33 xe_sync_in_fence_get(struct xe_sync_entry *sync, int num_sync,
34 struct xe_exec_queue *q, struct xe_vm *vm);