#ifndef _XE_PREEMPT_FENCE_H_
#define _XE_PREEMPT_FENCE_H_
#include "xe_preempt_fence_types.h"
struct list_head;
struct dma_fence *
xe_preempt_fence_create(struct xe_exec_queue *q,
u64 context, u32 seqno);
struct xe_preempt_fence *xe_preempt_fence_alloc(void);
void xe_preempt_fence_free(struct xe_preempt_fence *pfence);
struct dma_fence *
xe_preempt_fence_arm(struct xe_preempt_fence *pfence, struct xe_exec_queue *q,
u64 context, u32 seqno);
static inline struct xe_preempt_fence *
to_preempt_fence(struct dma_fence *fence)
{ … }
static inline struct list_head *
xe_preempt_fence_link(struct xe_preempt_fence *pfence)
{ … }
static inline struct xe_preempt_fence *
to_preempt_fence_from_link(struct list_head *link)
{ … }
bool xe_fence_is_xe_preempt(const struct dma_fence *fence);
#endif