mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 03:52:26 +00:00
Namespaced the generated headers with `zephyr` to prevent potential conflict with other headers. Introduce a temporary Kconfig `LEGACY_GENERATED_INCLUDE_PATH` that is enabled by default. This allows the developers to continue the use of the old include paths for the time being until it is deprecated and eventually removed. The Kconfig will generate a build-time warning message, similar to the `CONFIG_TIMER_RANDOM_GENERATOR`. Updated the includes path of in-tree sources accordingly. Most of the changes here are scripted, check the PR for more info. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2023 Sequans Communications
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/drivers/hwspinlock.h>
|
|
#include <zephyr/internal/syscall_handler.h>
|
|
|
|
static inline int z_vrfy_hwspinlock_trylock(const struct device *dev, uint32_t id)
|
|
{
|
|
K_OOPS(K_SYSCALL_DRIVER_HWSPINLOCK(dev, trylock));
|
|
return z_impl_hwspinlock_trylock(dev, id);
|
|
}
|
|
|
|
#include <zephyr/syscalls/hwspinlock_trylock_mrsh.c>
|
|
|
|
static inline void z_vrfy_hwspinlock_lock(const struct device *dev, uint32_t id)
|
|
{
|
|
K_OOPS(K_SYSCALL_DRIVER_HWSPINLOCK(dev, lock));
|
|
z_impl_hwspinlock_lock(dev, id);
|
|
}
|
|
|
|
#include <zephyr/syscalls/hwspinlock_lock_mrsh.c>
|
|
|
|
static inline void z_vrfy_hwspinlock_unlock(const struct device *dev, uint32_t id)
|
|
{
|
|
K_OOPS(K_SYSCALL_DRIVER_HWSPINLOCK(dev, unlock));
|
|
z_impl_hwspinlock_unlock(dev, id);
|
|
}
|
|
|
|
#include <zephyr/syscalls/hwspinlock_unlock_mrsh.c>
|
|
|
|
static inline uint32_t z_vrfy_hwspinlock_get_max_id(const struct device *dev)
|
|
{
|
|
K_OOPS(K_SYSCALL_DRIVER_HWSPINLOCK(dev, get_max_id));
|
|
return z_impl_hwspinlock_get_max_id(dev);
|
|
}
|
|
|
|
#include <zephyr/syscalls/hwspinlock_get_max_id_mrsh.c>
|