2019-12-17 04:15:45 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-05-06 16:25:46 +08:00
|
|
|
#include <zephyr/drivers/watchdog.h>
|
|
|
|
#include <zephyr/syscall_handler.h>
|
2019-12-17 04:15:45 +08:00
|
|
|
|
2020-05-01 02:33:38 +08:00
|
|
|
static inline int z_vrfy_wdt_setup(const struct device *dev, uint8_t options)
|
2019-12-17 04:15:45 +08:00
|
|
|
{
|
2020-01-07 09:25:57 +08:00
|
|
|
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, setup));
|
2019-12-17 04:15:45 +08:00
|
|
|
return z_impl_wdt_setup(dev, options);
|
|
|
|
}
|
|
|
|
|
2020-01-07 09:25:57 +08:00
|
|
|
#include <syscalls/wdt_setup_mrsh.c>
|
2019-12-17 04:15:45 +08:00
|
|
|
|
2020-05-01 02:33:38 +08:00
|
|
|
static inline int z_vrfy_wdt_disable(const struct device *dev)
|
2019-12-17 04:15:45 +08:00
|
|
|
{
|
2020-01-07 09:25:57 +08:00
|
|
|
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, disable));
|
2019-12-17 04:15:45 +08:00
|
|
|
return z_impl_wdt_disable(dev);
|
|
|
|
}
|
|
|
|
|
2020-01-07 09:25:57 +08:00
|
|
|
#include <syscalls/wdt_disable_mrsh.c>
|
2019-12-17 04:15:45 +08:00
|
|
|
|
2020-05-01 02:33:38 +08:00
|
|
|
static inline int z_vrfy_wdt_feed(const struct device *dev, int channel_id)
|
2019-12-17 04:15:45 +08:00
|
|
|
{
|
2020-01-07 09:25:57 +08:00
|
|
|
Z_OOPS(Z_SYSCALL_DRIVER_WDT(dev, feed));
|
|
|
|
return z_impl_wdt_feed(dev, channel_id);
|
2019-12-17 04:15:45 +08:00
|
|
|
}
|
|
|
|
|
2020-01-07 09:25:57 +08:00
|
|
|
#include <syscalls/wdt_feed_mrsh.c>
|