mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-09-04 00:44:35 +02:00
feat: update npu-ax3386 with sdk1.2.1
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
This commit is contained in:
@@ -167,8 +167,8 @@ void img_mem_destroy_proc_ctx(struct mem_ctx *ctx);
|
||||
int img_mem_alloc(struct device *device, struct mem_ctx *ctx, int heap_id,
|
||||
size_t size, enum img_mem_attr attributes, int *buf_id);
|
||||
int img_mem_import(struct device *device, struct mem_ctx *ctx, int heap_id,
|
||||
size_t size, enum img_mem_attr attributes, uint64_t buf_hnd,
|
||||
int *buf_id);
|
||||
size_t size, enum img_mem_attr attributes, uint64_t buf_fd,
|
||||
uint64_t cpu_ptr, int *buf_id);
|
||||
int img_mem_export(struct device *device, struct mem_ctx *ctx, int buf_id,
|
||||
size_t size, enum img_mem_attr attributes, uint64_t *buf_hnd);
|
||||
void img_mem_free(struct mem_ctx *ctx, int buf_id);
|
||||
|
||||
@@ -254,8 +254,8 @@ struct vha_alloc_data {
|
||||
/* parameters to import a device buffer */
|
||||
struct vha_import_data {
|
||||
uint64_t size; /* [IN] Size of device memory (in bytes) */
|
||||
uint64_t buf_hnd; /* [IN] File descriptor/cpu pointer
|
||||
of buffer to import */
|
||||
uint64_t buf_fd; /* [IN] File descriptor */
|
||||
uint64_t cpu_ptr; /* [IN] Cpu pointer of buffer to import */
|
||||
uint32_t heap_id; /* [IN] Heap ID of allocator */
|
||||
uint32_t attributes; /* [IN] Attributes of buffer */
|
||||
char name[8]; /* [IN] short name for buffer */
|
||||
|
||||
Reference in New Issue
Block a user