syscall: rename Z_SYSCALL_DRIVER_ -> K_SYSCALL_DRIVER_
Rename internal API to not use z_/Z_. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
9c4d881183
commit
1a9de05767
36 changed files with 179 additions and 179 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc_time *timeptr)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, set_time));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, set_time));
|
||||
Z_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_set_time(dev, timeptr);
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc
|
|||
|
||||
static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time *timeptr)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, get_time));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, get_time));
|
||||
Z_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_get_time(dev, timeptr);
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time
|
|||
static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev, uint16_t id,
|
||||
uint16_t *mask)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, alarm_get_supported_fields));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, alarm_get_supported_fields));
|
||||
Z_OOPS(K_SYSCALL_MEMORY_WRITE(mask, sizeof(uint16_t)));
|
||||
return z_impl_rtc_alarm_get_supported_fields(dev, id, mask);
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev
|
|||
static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask,
|
||||
const struct rtc_time *timeptr)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, alarm_set_time));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, alarm_set_time));
|
||||
Z_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_alarm_set_time(dev, id, mask, timeptr);
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t i
|
|||
static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask,
|
||||
struct rtc_time *timeptr)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, alarm_get_time));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, alarm_get_time));
|
||||
Z_OOPS(K_SYSCALL_MEMORY_WRITE(mask, sizeof(uint16_t)));
|
||||
Z_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time)));
|
||||
return z_impl_rtc_alarm_get_time(dev, id, mask, timeptr);
|
||||
|
@ -54,7 +54,7 @@ static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t i
|
|||
|
||||
static inline int z_vrfy_rtc_alarm_is_pending(const struct device *dev, uint16_t id)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, alarm_is_pending));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, alarm_is_pending));
|
||||
return z_impl_rtc_alarm_is_pending(dev, id);
|
||||
}
|
||||
#include <syscalls/rtc_alarm_is_pending_mrsh.c>
|
||||
|
@ -63,7 +63,7 @@ static inline int z_vrfy_rtc_alarm_is_pending(const struct device *dev, uint16_t
|
|||
#ifdef CONFIG_RTC_CALIBRATION
|
||||
static inline int z_vrfy_rtc_set_calibration(const struct device *dev, int32_t calibration)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, set_calibration));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, set_calibration));
|
||||
return z_impl_rtc_set_calibration(dev, calibration);
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ static inline int z_vrfy_rtc_set_calibration(const struct device *dev, int32_t c
|
|||
|
||||
static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t *calibration)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_DRIVER_RTC(dev, get_calibration));
|
||||
Z_OOPS(K_SYSCALL_DRIVER_RTC(dev, get_calibration));
|
||||
Z_OOPS(K_SYSCALL_MEMORY_WRITE(calibration, sizeof(int32_t)));
|
||||
return z_impl_rtc_get_calibration(dev, calibration);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue