Uncompressed rknpu-driver

This commit is contained in:
Pelochus
2024-04-03 16:02:10 +00:00
parent 3151e60b9a
commit 3cf6203826
24 changed files with 7808 additions and 0 deletions

View 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_ */