Loading...
Note: File does not exist in v4.6.
1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright © 2021 Intel Corporation
4 */
5
6#ifndef _XE_HW_FENCE_H_
7#define _XE_HW_FENCE_H_
8
9#include "xe_hw_fence_types.h"
10
11/* Cause an early wrap to catch wrapping errors */
12#define XE_FENCE_INITIAL_SEQNO (-127)
13
14int xe_hw_fence_module_init(void);
15void xe_hw_fence_module_exit(void);
16
17void xe_hw_fence_irq_init(struct xe_hw_fence_irq *irq);
18void xe_hw_fence_irq_finish(struct xe_hw_fence_irq *irq);
19void xe_hw_fence_irq_run(struct xe_hw_fence_irq *irq);
20void xe_hw_fence_irq_stop(struct xe_hw_fence_irq *irq);
21void xe_hw_fence_irq_start(struct xe_hw_fence_irq *irq);
22
23void xe_hw_fence_ctx_init(struct xe_hw_fence_ctx *ctx, struct xe_gt *gt,
24 struct xe_hw_fence_irq *irq, const char *name);
25void xe_hw_fence_ctx_finish(struct xe_hw_fence_ctx *ctx);
26
27struct xe_hw_fence *xe_hw_fence_create(struct xe_hw_fence_ctx *ctx,
28 struct iosys_map seqno_map);
29
30#endif