kernel_samsung_a53x/include/linux/samsung-secure-iova.h

19 lines
536 B
C
Raw Normal View History

2024-06-15 21:02:09 +02:00
// SPDX-License-Identifier: GPL-2.0
/*
* Samsung IOVA Management header
*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
* Author: <hyesoo.yu@samsung.com> for Samsung
*/
#if IS_ENABLED(CONFIG_EXYNOS_CONTENT_PATH_PROTECTION)
unsigned long secure_iova_alloc(unsigned long size, unsigned int align);
void secure_iova_free(unsigned long addr, unsigned long size);
#else
unsigned long secure_iova_alloc(unsigned long size, unsigned int align)
{
return 0;
}
void secure_iova_free(unsigned long addr, unsigned long size) { }
#endif