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>
157 lines
5.5 KiB
C
157 lines
5.5 KiB
C
/*
|
|
* Copyright (c) 2022-2023 Jamie McCrae
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/drivers/auxdisplay.h>
|
|
#include <zephyr/internal/syscall_handler.h>
|
|
|
|
static inline int z_vrfy_auxdisplay_display_on(const struct device *dev)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_display_on(dev);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_display_on_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_display_off(const struct device *dev)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_display_off(dev);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_display_off_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_cursor_set_enabled(const struct device *dev, bool enabled)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_cursor_set_enabled(dev, enabled);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_cursor_set_enabled_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_position_blinking_set_enabled(const struct device *dev,
|
|
bool enabled)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_position_blinking_set_enabled(dev, enabled);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_position_blinking_set_enabled_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_cursor_shift_set(const struct device *dev, uint8_t direction,
|
|
bool display_shift)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_cursor_shift_set(dev, direction, display_shift);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_cursor_shift_set_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_cursor_position_set(const struct device *dev,
|
|
enum auxdisplay_position type,
|
|
int16_t x, int16_t y)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_cursor_position_set(dev, type, x, y);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_cursor_position_set_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_cursor_position_get(const struct device *dev, int16_t *x,
|
|
int16_t *y)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_cursor_position_get(dev, x, y);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_cursor_position_get_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_display_position_set(const struct device *dev,
|
|
enum auxdisplay_position type,
|
|
int16_t x, int16_t y)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_display_position_set(dev, type, x, y);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_display_position_set_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_display_position_get(const struct device *dev, int16_t *x,
|
|
int16_t *y)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_display_position_get(dev, x, y);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_display_position_get_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_capabilities_get(const struct device *dev,
|
|
struct auxdisplay_capabilities *capabilities)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_capabilities_get(dev, capabilities);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_capabilities_get_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_clear(const struct device *dev)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_clear(dev);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_clear_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_brightness_get(const struct device *dev,
|
|
uint8_t *brightness)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_brightness_get(dev, brightness);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_brightness_get_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_brightness_set(const struct device *dev,
|
|
uint8_t brightness)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_brightness_set(dev, brightness);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_brightness_set_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_backlight_get(const struct device *dev,
|
|
uint8_t *backlight)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_backlight_get(dev, backlight);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_backlight_get_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_backlight_set(const struct device *dev,
|
|
uint8_t backlight)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_backlight_set(dev, backlight);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_backlight_set_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_is_busy(const struct device *dev)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_is_busy(dev);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_is_busy_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_custom_character_set(const struct device *dev,
|
|
struct auxdisplay_character *character)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_custom_character_set(dev, character);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_custom_character_set_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_write(const struct device *dev, const uint8_t *data,
|
|
uint16_t len)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_write(dev, data, len);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_write_mrsh.c>
|
|
|
|
static inline int z_vrfy_auxdisplay_custom_command(const struct device *dev,
|
|
struct auxdisplay_custom_data *data)
|
|
{
|
|
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
|
|
return z_impl_auxdisplay_custom_command(dev, data);
|
|
}
|
|
#include <zephyr/syscalls/auxdisplay_custom_command_mrsh.c>
|