1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright 2020-2021 NXP 4 */ 5 6 #ifndef _AMPHION_VPU_CORE_H 7 #define _AMPHION_VPU_CORE_H 8 9 void csr_writel(struct vpu_core *core, u32 reg, u32 val); 10 u32 csr_readl(struct vpu_core *core, u32 reg); 11 int vpu_alloc_dma(struct vpu_core *core, struct vpu_buffer *buf); 12 void vpu_free_dma(struct vpu_buffer *buf); 13 struct vpu_inst *vpu_core_find_instance(struct vpu_core *core, u32 index); 14 void vpu_core_set_state(struct vpu_core *core, enum vpu_core_state state); 15 16 #endif 17