You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
520 B
23 lines
520 B
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright (c) 2025 Rockchip Electronics Co., Ltd. */
|
|
|
|
#ifndef __RKCE_BUF_H__
|
|
#define __RKCE_BUF_H__
|
|
|
|
#include <malloc.h>
|
|
#include <linux/types.h>
|
|
|
|
#define RKCE_BUF_ALIGN_SIZE 16
|
|
|
|
#define rkce_cma_init(device)
|
|
#define rkce_cma_deinit(device)
|
|
|
|
#define rkce_cma_alloc(size) memalign(RKCE_BUF_ALIGN_SIZE, size)
|
|
#define rkce_cma_free(buf) free(buf)
|
|
|
|
#define rkce_cma_virt2phys(buf) (((unsigned long)buf) & 0xffffffff)
|
|
#define rkce_cma_phys2virt(phys) ((unsigned long)phys)
|
|
|
|
#endif
|