/* * Copyright (c) 2023 Sequans Communications * * SPDX-License-Identifier: Apache-2.0 */ #include #include 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 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 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 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