mirror of
https://github.com/DrHo1y/ezrknn-llm.git
synced 2026-11-21 09:32:48 +07:00
Uncompressed rknpu-driver
This commit is contained in:
24
rknpu-driver/driver-0.9.6/include/rknpu_fence.h
Normal file
24
rknpu-driver/driver-0.9.6/include/rknpu_fence.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (C) Rockchip Electronics Co.Ltd
|
||||
* Author: Felix Zeng <felix.zeng@rock-chips.com>
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_RKNPU_FENCE_H_
|
||||
#define __LINUX_RKNPU_FENCE_H_
|
||||
|
||||
#include "rknpu_job.h"
|
||||
|
||||
struct rknpu_fence_context {
|
||||
unsigned int context;
|
||||
unsigned int seqno;
|
||||
spinlock_t spinlock;
|
||||
};
|
||||
|
||||
int rknpu_fence_context_alloc(struct rknpu_device *rknpu_dev);
|
||||
|
||||
int rknpu_fence_alloc(struct rknpu_job *job);
|
||||
|
||||
int rknpu_fence_get_fd(struct rknpu_job *job);
|
||||
|
||||
#endif /* __LINUX_RKNPU_FENCE_H_ */
|
||||
Reference in New Issue
Block a user