kernel_samsung_a34x-permissive/drivers/misc/mediatek/mdla/1.0/mdla_ion.h
2024-04-28 15:51:13 +02:00

39 lines
626 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2019 MediaTek Inc.
*/
#include <linux/types.h>
#ifdef CONFIG_MTK_ION
void mdla_ion_init(void);
void mdla_ion_exit(void);
int mdla_ion_kmap(unsigned long arg);
int mdla_ion_kunmap(unsigned long arg);
void mdla_ion_sync(u64 hndl, void *kva, u32 size);
#else
static inline
void mdla_ion_init(void)
{
}
static inline
void mdla_ion_exit(void)
{
}
static inline
int mdla_ion_kmap(unsigned long arg)
{
return -EINVAL;
}
static inline
int mdla_ion_kunmap(unsigned long arg)
{
return -EINVAL;
}
static inline
void mdla_ion_sync(u64 hndl, void *kva, u32 size)
{
}
#endif