feat: update npu-ax3386 with sdk1.2.1

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
This commit is contained in:
Han Gao
2023-10-18 22:16:33 +08:00
parent e3b22dbe54
commit c10fdb081d
9 changed files with 180 additions and 108 deletions

View File

@@ -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);

View File

@@ -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 */