Browse Source

build: namespace the generated headers with `zephyr/`

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>
pull/72893/head
Yong Cong Sin 1 year ago committed by Henrik Brix Andersen
parent
commit
bbe5e1e6eb
  1. 58
      CMakeLists.txt
  2. 17
      Kconfig.zephyr
  3. 2
      arch/arc/include/offsets_short_arch.h
  4. 2
      arch/arm/include/offsets_short_arch.h
  5. 2
      arch/arm64/core/reset.S
  6. 2
      arch/arm64/core/vector_table.S
  7. 2
      arch/arm64/include/offsets_short_arch.h
  8. 2
      arch/mips/include/offsets_short_arch.h
  9. 2
      arch/nios2/include/offsets_short_arch.h
  10. 2
      arch/posix/include/offsets_short_arch.h
  11. 2
      arch/riscv/core/fatal.c
  12. 2
      arch/riscv/core/fpu.S
  13. 2
      arch/riscv/core/reset.S
  14. 2
      arch/riscv/include/offsets_short_arch.h
  15. 2
      arch/sparc/include/offsets_short_arch.h
  16. 2
      arch/x86/include/ia32/offsets_short_arch.h
  17. 2
      arch/x86/include/intel64/offsets_short_arch.h
  18. 4
      arch/xtensa/core/CMakeLists.txt
  19. 2
      arch/xtensa/core/coredump.c
  20. 2
      arch/xtensa/core/debug_helpers_asm.S
  21. 2
      arch/xtensa/core/fatal.c
  22. 2
      arch/xtensa/core/irq_offload.c
  23. 4
      arch/xtensa/core/userspace.S
  24. 4
      arch/xtensa/core/vector_handlers.c
  25. 2
      arch/xtensa/core/window_vectors.S
  26. 4
      arch/xtensa/core/xtensa_asm2_util.S
  27. 2
      arch/xtensa/core/xtensa_hifi.S
  28. 2
      arch/xtensa/include/kernel_arch_func.h
  29. 4
      arch/xtensa/include/xtensa_asm2_s.h
  30. 2
      boards/qemu/x86/qemu_x86_tiny.ld
  31. 10
      cmake/ide/eclipse_cdt4_generator_amendment.cmake
  32. 5
      cmake/kobj.cmake
  33. 4
      cmake/modules/generated_file_directories.cmake
  34. 3
      cmake/modules/kconfig.cmake
  35. 2
      cmake/modules/unittest.cmake
  36. 2
      doc/build/cmake/index.rst
  37. 2
      doc/build/dts/howtos.rst
  38. 2
      doc/build/dts/intro-input-output.rst
  39. 2
      doc/build/dts/troubleshooting.rst
  40. 2
      doc/build/dts/zephyr_dt_inputs_outputs.svg
  41. 4
      doc/kernel/drivers/index.rst
  42. 8
      doc/kernel/usermode/syscalls.rst
  43. 2
      doc/services/retention/blinfo.rst
  44. 6
      drivers/adc/adc_handlers.c
  45. 38
      drivers/auxdisplay/auxdisplay_handlers.c
  46. 12
      drivers/bbram/bbram_handlers.c
  47. 6
      drivers/cache/cache_handlers.c
  48. 66
      drivers/can/can_handlers.c
  49. 6
      drivers/charger/charger_handlers.c
  50. 2
      drivers/console/uart_mux.c
  51. 32
      drivers/counter/counter_handlers.c
  52. 4
      drivers/counter/maxim_ds3231.c
  53. 4
      drivers/dac/dac_handlers.c
  54. 4
      drivers/dma/dma_handlers.c
  55. 6
      drivers/eeprom/eeprom_handlers.c
  56. 2
      drivers/entropy/entropy_handlers.c
  57. 26
      drivers/espi/espi_handlers.c
  58. 22
      drivers/flash/flash_handlers.c
  59. 2
      drivers/flash/flash_simulator.c
  60. 2
      drivers/flash/nrf_qspi_nor.c
  61. 2
      drivers/fpga/fpga_shell.c
  62. 4
      drivers/fuel_gauge/emul_fuel_gauge_syscall_handlers.c
  63. 12
      drivers/fuel_gauge/fuel_gauge_syscall_handlers.c
  64. 20
      drivers/gpio/gpio_handlers.c
  65. 10
      drivers/hwinfo/hwinfo_handlers.c
  66. 8
      drivers/hwspinlock/hwspinlock_handlers.c
  67. 12
      drivers/i2c/i2c_handlers.c
  68. 8
      drivers/i2s/i2s_handlers.c
  69. 4
      drivers/i3c/i3c_handlers.c
  70. 8
      drivers/ipm/ipm_handlers.c
  71. 6
      drivers/kscan/kscan_handlers.c
  72. 16
      drivers/led/led_handlers.c
  73. 8
      drivers/mbox/mbox_handlers.c
  74. 4
      drivers/misc/devmux/devmux.c
  75. 12
      drivers/misc/timeaware_gpio/timeaware_gpio_handlers.c
  76. 8
      drivers/peci/peci_handlers.c
  77. 10
      drivers/ps2/ps2_handlers.c
  78. 2
      drivers/ptp_clock/ptp_clock.c
  79. 10
      drivers/pwm/pwm_handlers.c
  80. 8
      drivers/retained_mem/retained_mem_handlers.c
  81. 16
      drivers/rtc/rtc_handlers.c
  82. 14
      drivers/sensor/sensor_handlers.c
  83. 48
      drivers/serial/uart_handlers.c
  84. 30
      drivers/smbus/smbus_handlers.c
  85. 4
      drivers/spi/spi_handlers.c
  86. 24
      drivers/virtualization/virt_ivshmem_handlers.c
  87. 22
      drivers/w1/w1_handlers.c
  88. 6
      drivers/watchdog/wdt_handlers.c
  89. 2
      include/zephyr/arch/riscv/error.h
  90. 2
      include/zephyr/arch/x86/ia32/linker.ld
  91. 2
      include/zephyr/arch/xtensa/arch.h
  92. 2
      include/zephyr/arch/xtensa/arch_inlines.h
  93. 2
      include/zephyr/cache.h
  94. 4
      include/zephyr/device.h
  95. 2
      include/zephyr/devicetree.h
  96. 2
      include/zephyr/drivers/adc.h
  97. 2
      include/zephyr/drivers/auxdisplay.h
  98. 2
      include/zephyr/drivers/bbram.h
  99. 2
      include/zephyr/drivers/can.h
  100. 2
      include/zephyr/drivers/charger.h
  101. Some files were not shown because too many files have changed in this diff Show More

58
CMakeLists.txt

@ -109,6 +109,15 @@ add_library(zephyr_interface INTERFACE) @@ -109,6 +109,15 @@ add_library(zephyr_interface INTERFACE)
# flags that come with zephyr_interface.
zephyr_library_named(zephyr)
if(CONFIG_LEGACY_GENERATED_INCLUDE_PATH)
zephyr_include_directories(${PROJECT_BINARY_DIR}/include/generated/zephyr)
message(WARNING "
Warning: CONFIG_LEGACY_GENERATED_INCLUDE_PATH is currently enabled by default
so that user applications can continue to use the legacy include paths for the
generated headers. This Kconfig will be deprecated and eventually removed in
the future releases.")
endif()
zephyr_include_directories(
include
${PROJECT_BINARY_DIR}/include/generated
@ -541,9 +550,9 @@ if(ZEPHYR_GIT_INDEX) @@ -541,9 +550,9 @@ if(ZEPHYR_GIT_INDEX)
endif()
add_custom_command(
OUTPUT ${PROJECT_BINARY_DIR}/include/generated/version.h
OUTPUT ${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h
COMMAND ${CMAKE_COMMAND} -DZEPHYR_BASE=${ZEPHYR_BASE}
-DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/version.h
-DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h
-DVERSION_TYPE=KERNEL
-DVERSION_FILE=${ZEPHYR_BASE}/VERSION
-DKERNEL_VERSION_CUSTOMIZATION="$<TARGET_PROPERTY:version_h,KERNEL_VERSION_CUSTOMIZATION>"
@ -552,13 +561,13 @@ add_custom_command( @@ -552,13 +561,13 @@ add_custom_command(
DEPENDS ${ZEPHYR_BASE}/VERSION ${git_dependency}
COMMAND_EXPAND_LISTS
)
add_custom_target(version_h DEPENDS ${PROJECT_BINARY_DIR}/include/generated/version.h)
add_custom_target(version_h DEPENDS ${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h)
if(EXISTS ${APPLICATION_SOURCE_DIR}/VERSION)
add_custom_command(
OUTPUT ${PROJECT_BINARY_DIR}/include/generated/app_version.h
OUTPUT ${PROJECT_BINARY_DIR}/include/generated/zephyr/app_version.h
COMMAND ${CMAKE_COMMAND} -DZEPHYR_BASE=${ZEPHYR_BASE}
-DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/app_version.h
-DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/zephyr/app_version.h
-DVERSION_TYPE=APP
-DVERSION_FILE=${APPLICATION_SOURCE_DIR}/VERSION
-DAPP_VERSION_CUSTOMIZATION="$<TARGET_PROPERTY:app_version_h,APP_VERSION_CUSTOMIZATION>"
@ -567,7 +576,9 @@ if(EXISTS ${APPLICATION_SOURCE_DIR}/VERSION) @@ -567,7 +576,9 @@ if(EXISTS ${APPLICATION_SOURCE_DIR}/VERSION)
DEPENDS ${APPLICATION_SOURCE_DIR}/VERSION ${git_dependency}
COMMAND_EXPAND_LISTS
)
add_custom_target(app_version_h DEPENDS ${PROJECT_BINARY_DIR}/include/generated/app_version.h)
add_custom_target(
app_version_h
DEPENDS ${PROJECT_BINARY_DIR}/include/generated/zephyr/app_version.h)
add_dependencies(zephyr_interface app_version_h)
endif()
@ -622,8 +633,8 @@ set(ZEPHYR_CURRENT_CMAKE_DIR) @@ -622,8 +633,8 @@ set(ZEPHYR_CURRENT_CMAKE_DIR)
get_property(LIBC_LINK_LIBRARIES TARGET zephyr_interface PROPERTY LIBC_LINK_LIBRARIES)
zephyr_link_libraries(${LIBC_LINK_LIBRARIES})
set(syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscall_list.h)
set(edk_syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/edk/include/generated/syscall_list.h)
set(syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/include/generated/zephyr/syscall_list.h)
set(edk_syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/edk/include/generated/zephyr/syscall_list.h)
set(syscalls_json ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/syscalls.json)
set(struct_tags_json ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/struct_tags.json)
@ -761,7 +772,7 @@ add_custom_target(${SYSCALL_LIST_H_TARGET} DEPENDS ${syscall_list_h} ${picolibc_ @@ -761,7 +772,7 @@ add_custom_target(${SYSCALL_LIST_H_TARGET} DEPENDS ${syscall_list_h} ${picolibc_
set_property(TARGET ${SYSCALL_LIST_H_TARGET}
APPEND PROPERTY
ADDITIONAL_CLEAN_FILES
${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscalls
${CMAKE_CURRENT_BINARY_DIR}/include/generated/zephyr/syscalls
)
add_custom_target(${PARSE_SYSCALLS_TARGET}
@ -781,19 +792,30 @@ if(CONFIG_TIMEOUT_64BIT) @@ -781,19 +792,30 @@ if(CONFIG_TIMEOUT_64BIT)
set(SYSCALL_SPLIT_TIMEOUT_ARG --split-type k_timeout_t --split-type k_ticks_t)
endif()
# percepio/TraceRecorder/kernelports/Zephyr/scripts/tz_parse_syscalls.py hardcodes the path
# to the `syscall_list.h`, make a copy of the generated file so that percepio is able to build
if(CONFIG_LEGACY_GENERATED_INCLUDE_PATH)
set(LEGACY_SYSCALL_LIST_H_ARGS
${CMAKE_COMMAND} -E copy
${syscall_list_h}
${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscall_list.h)
endif()
add_custom_command(OUTPUT include/generated/syscall_dispatch.c ${syscall_list_h}
# Also, some files are written to include/generated/syscalls/
# Also, some files are written to include/generated/zephyr/syscalls/
COMMAND
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/build/gen_syscalls.py
--json-file ${syscalls_json} # Read this file
--base-output include/generated/syscalls # Write to this dir
--base-output include/generated/zephyr/syscalls # Write to this dir
--syscall-dispatch include/generated/syscall_dispatch.c # Write this file
--syscall-export-llext include/generated/syscall_export_llext.c
--syscall-list ${syscall_list_h}
$<$<BOOL:${CONFIG_USERSPACE}>:--gen-mrsh-files>
${SYSCALL_LONG_REGISTERS_ARG}
${SYSCALL_SPLIT_TIMEOUT_ARG}
COMMAND
${LEGACY_SYSCALL_LIST_H_ARGS}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${PARSE_SYSCALLS_TARGET}
)
@ -801,7 +823,7 @@ add_custom_command(OUTPUT include/generated/syscall_dispatch.c ${syscall_list_h} @@ -801,7 +823,7 @@ add_custom_command(OUTPUT include/generated/syscall_dispatch.c ${syscall_list_h}
# This is passed into all calls to the gen_kobject_list.py script.
set(gen_kobject_list_include_args --include-subsystem-list ${struct_tags_json})
set(DRV_VALIDATION ${PROJECT_BINARY_DIR}/include/generated/driver-validation.h)
set(DRV_VALIDATION ${PROJECT_BINARY_DIR}/include/generated/zephyr/driver-validation.h)
add_custom_command(
OUTPUT ${DRV_VALIDATION}
COMMAND
@ -834,7 +856,7 @@ add_dependencies(zephyr_generated_headers @@ -834,7 +856,7 @@ add_dependencies(zephyr_generated_headers
set(OFFSETS_LIB offsets)
set(OFFSETS_C_PATH ${ARCH_DIR}/${ARCH}/core/offsets/offsets.c)
set(OFFSETS_H_PATH ${PROJECT_BINARY_DIR}/include/generated/offsets.h)
set(OFFSETS_H_PATH ${PROJECT_BINARY_DIR}/include/generated/zephyr/offsets.h)
add_library( ${OFFSETS_LIB} OBJECT ${OFFSETS_C_PATH})
target_include_directories(${OFFSETS_LIB} PRIVATE
@ -1197,7 +1219,7 @@ if(CONFIG_USERSPACE) @@ -1197,7 +1219,7 @@ if(CONFIG_USERSPACE)
PUBLIC $<TARGET_PROPERTY:zephyr_interface,INTERFACE_SYSTEM_INCLUDE_DIRECTORIES>
)
set(KOBJECT_LINKER_HEADER_DATA "${PROJECT_BINARY_DIR}/include/generated/linker-kobject-prebuilt-data.h")
set(KOBJECT_LINKER_HEADER_DATA "${PROJECT_BINARY_DIR}/include/generated/zephyr/linker-kobject-prebuilt-data.h")
add_custom_command(
OUTPUT ${KOBJECT_LINKER_HEADER_DATA}
@ -1205,7 +1227,7 @@ if(CONFIG_USERSPACE) @@ -1205,7 +1227,7 @@ if(CONFIG_USERSPACE)
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/build/gen_kobject_placeholders.py
--object $<TARGET_OBJECTS:kobj_prebuilt_hash_output_lib>
--outdir ${PROJECT_BINARY_DIR}/include/generated
--outdir ${PROJECT_BINARY_DIR}/include/generated/zephyr
--datapct ${CONFIG_KOBJECT_DATA_AREA_RESERVE_EXTRA_PERCENT}
--rodata ${CONFIG_KOBJECT_RODATA_AREA_EXTRA_BYTES}
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
@ -1962,7 +1984,7 @@ if(LOG_DICT_DB_NAME_ARG) @@ -1962,7 +1984,7 @@ if(LOG_DICT_DB_NAME_ARG)
${ZEPHYR_BASE}/scripts/logging/dictionary/database_gen.py
${KERNEL_ELF_NAME}
${LOG_DICT_DB_NAME_ARG}=${LOG_DICT_DB_NAME}
--build-header ${PROJECT_BINARY_DIR}/include/generated/version.h
--build-header ${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
COMMENT "Generating logging dictionary database: ${LOG_DICT_DB_NAME}"
DEPENDS ${logical_target_for_zephyr_elf}
@ -2093,12 +2115,12 @@ add_custom_command( @@ -2093,12 +2115,12 @@ add_custom_command(
OUTPUT ${llext_edk_file}
# Regenerate syscalls in case CONFIG_LLEXT_EDK_USERSPACE_ONLY
COMMAND ${CMAKE_COMMAND}
-E make_directory edk/include/generated
-E make_directory edk/include/generated/zephyr
COMMAND
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/build/gen_syscalls.py
--json-file ${syscalls_json} # Read this file
--base-output edk/include/generated/syscalls # Write to this dir
--base-output edk/include/generated/zephyr/syscalls # Write to this dir
--syscall-dispatch edk/include/generated/syscall_dispatch.c # Write this file
--syscall-list ${edk_syscall_list_h}
$<$<BOOL:${CONFIG_LLEXT_EDK_USERSPACE_ONLY}>:--userspace-only>

17
Kconfig.zephyr

@ -1048,3 +1048,20 @@ config BOOTLOADER_BOSSA_ADAFRUIT_UF2 @@ -1048,3 +1048,20 @@ config BOOTLOADER_BOSSA_ADAFRUIT_UF2
endchoice
endmenu
menu "Compatibility"
config LEGACY_GENERATED_INCLUDE_PATH
bool "Legacy include path for generated headers"
default y
help
Allow applications and libraries to use the Zephyr legacy include
path for the generated headers which does not use the `zephyr/` prefix.
From now on, i.e., the preferred way to include the `version.h` header is to
use <zephyr/version.h>, this Kconfig is currently enabled by default so that
user applications won't immediately fail to compile.
This Kconfig will be deprecated and eventually removed in the future releases.
endmenu

2
arch/arc/include/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
/* kernel */

2
arch/arm/include/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
/* kernel */

2
arch/arm64/core/reset.S

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/arch/cpu.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#include "boot.h"
#include "macro_priv.inc"

2
arch/arm64/core/vector_table.S

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/arch/arm64/tpidrro_el0.h>
#include <offsets_short.h>

2
arch/arm64/include/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
#define _thread_offset_to_exception_depth \
(___thread_t_arch_OFFSET + ___thread_arch_t_exception_depth_OFFSET)

2
arch/mips/include/offsets_short_arch.h

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#ifndef ZEPHYR_ARCH_MIPS_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_MIPS_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
#define _thread_offset_to_sp \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_sp_OFFSET)

2
arch/nios2/include/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
/* kernel */

2
arch/posix/include/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
/* kernel */

2
arch/riscv/core/fatal.c

@ -263,6 +263,6 @@ static void z_vrfy_user_fault(unsigned int reason) @@ -263,6 +263,6 @@ static void z_vrfy_user_fault(unsigned int reason)
z_impl_user_fault(reason);
}
#include <syscalls/user_fault_mrsh.c>
#include <zephyr/syscalls/user_fault_mrsh.c>
#endif /* CONFIG_USERSPACE */

2
arch/riscv/core/fpu.S

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#ifdef CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION
#define LOAD fld

2
arch/riscv/core/reset.S

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
#include <zephyr/toolchain.h>
#include <zephyr/linker/sections.h>
#include <zephyr/arch/cpu.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#include "asm_macros.inc"
/* exports */

2
arch/riscv/include/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_RISCV_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_RISCV_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
#define _thread_offset_to_sp \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_sp_OFFSET)

2
arch/sparc/include/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
#define _thread_offset_to_y \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_y_OFFSET)

2
arch/x86/include/ia32/offsets_short_arch.h

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#ifndef ZEPHYR_ARCH_X86_INCLUDE_IA32_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_X86_INCLUDE_IA32_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
/* kernel */

2
arch/x86/include/intel64/offsets_short_arch.h

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#ifndef ZEPHYR_ARCH_X86_INCLUDE_INTEL64_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_X86_INCLUDE_INTEL64_OFFSETS_SHORT_ARCH_H_
#include <offsets.h>
#include <zephyr/offsets.h>
#define _thread_offset_to_rsp \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_rsp_OFFSET)

4
arch/xtensa/core/CMakeLists.txt

@ -48,7 +48,7 @@ add_subdirectory(startup) @@ -48,7 +48,7 @@ add_subdirectory(startup)
# are the official places where we find core-isa.h. (Also that we
# undefine __XCC_ because that compiler actually trips an error trying
# to build this file to protect against mismatched versions.)
set(CORE_ISA_DM ${CMAKE_BINARY_DIR}/zephyr/include/generated/core-isa-dM.h)
set(CORE_ISA_DM ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/core-isa-dM.h)
set(CORE_ISA_IN ${CMAKE_BINARY_DIR}/zephyr/include/generated/core-isa-dM.c)
file(WRITE ${CORE_ISA_IN} "#include <xtensa/config/core-isa.h>\n")
add_custom_command(OUTPUT ${CORE_ISA_DM}
@ -73,7 +73,7 @@ else() @@ -73,7 +73,7 @@ else()
endif()
# Generates a list of device-specific scratch register choices
set(ZSR_H ${CMAKE_BINARY_DIR}/zephyr/include/generated/zsr.h)
set(ZSR_H ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/zsr.h)
add_custom_command(OUTPUT ${ZSR_H} DEPENDS ${CORE_ISA_DM}
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/gen_zsr.py
$<$<BOOL:${CONFIG_XTENSA_MMU}>:--mmu>

2
arch/xtensa/core/coredump.c

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
#include <string.h>
#include <zephyr/debug/coredump.h>
#include <xtensa_asm2_context.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#define ARCH_HDR_VER 1
#define XTENSA_BLOCK_HDR_VER 2

2
arch/xtensa/core/debug_helpers_asm.S

@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
#include <xtensa/hal.h>
#include <xtensa_asm2_context.h>
#include <offsets.h>
#include <zephyr/offsets.h>
.section .iram1, "ax"
.align 4

2
arch/xtensa/core/fatal.c

@ -154,6 +154,6 @@ static void z_vrfy_xtensa_user_fault(unsigned int reason) @@ -154,6 +154,6 @@ static void z_vrfy_xtensa_user_fault(unsigned int reason)
z_impl_xtensa_user_fault(reason);
}
#include <syscalls/xtensa_user_fault_mrsh.c>
#include <zephyr/syscalls/xtensa_user_fault_mrsh.c>
#endif /* CONFIG_USERSPACE */

2
arch/xtensa/core/irq_offload.c

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
#include <zephyr/kernel.h>
#include <zephyr/irq_offload.h>
#include <zsr.h>
#include <zephyr/zsr.h>
#include <zephyr/irq.h>
static struct {

4
arch/xtensa/core/userspace.S

@ -5,10 +5,10 @@ @@ -5,10 +5,10 @@
*/
#include <xtensa_asm2_s.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#include <offsets_short.h>
#include <zephyr/syscall.h>
#include <zsr.h>
#include <zephyr/zsr.h>
#include <xtensa/config/core-isa.h>

4
arch/xtensa/core/vector_handlers.c

@ -12,8 +12,8 @@ @@ -12,8 +12,8 @@
#include <kswap.h>
#include <zephyr/toolchain.h>
#include <zephyr/logging/log.h>
#include <offsets.h>
#include <zsr.h>
#include <zephyr/offsets.h>
#include <zephyr/zsr.h>
#include <zephyr/arch/common/exc_handle.h>
#ifdef CONFIG_XTENSA_GEN_HANDLERS

2
arch/xtensa/core/window_vectors.S

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <xtensa/coreasm.h>
#include <zsr.h>
#include <zephyr/zsr.h>
/* WINDOW OVERFLOW AND UNDERFLOW EXCEPTION VECTORS AND ALLOCA EXCEPTION
* HANDLER

4
arch/xtensa/core/xtensa_asm2_util.S

@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <xtensa_asm2_s.h>
#include <offsets.h>
#include <zsr.h>
#include <zephyr/offsets.h>
#include <zephyr/zsr.h>
#if defined(CONFIG_SIMULATOR_XTENSA) || defined(XT_SIMULATOR)
#include <xtensa/simcall.h>

2
arch/xtensa/core/xtensa_hifi.S

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <offsets.h>
#include <zephyr/offsets.h>
#include <xtensa/config/tie.h>
#include <xtensa/config/tie-asm.h>

2
arch/xtensa/include/kernel_arch_func.h

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
#include <kernel_internal.h>
#include <string.h>
#include <zephyr/cache.h>
#include <zsr.h>
#include <zephyr/zsr.h>
#ifdef __cplusplus
extern "C" {

4
arch/xtensa/include/xtensa_asm2_s.h

@ -7,10 +7,10 @@ @@ -7,10 +7,10 @@
#ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H
#define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H
#include <zsr.h>
#include <zephyr/zsr.h>
#include "xtensa_asm2_context.h"
#include <offsets.h>
#include <zephyr/offsets.h>
/* Assembler header! This file contains macros designed to be included
* only by the assembler.

2
boards/qemu/x86/qemu_x86_tiny.ld

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
*/
#include <zephyr/devicetree.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/linker/linker-tool.h>
#include <zephyr/sys/util.h>

10
cmake/ide/eclipse_cdt4_generator_amendment.cmake

@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
#
# Solution:
# The amendment function generates a macro header file
# ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h
# ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h
# based on INTERFACE_COMPILE_DEFINITIONS and appends the
# defines from the file to
# CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS.
@ -88,7 +88,7 @@ else(${_param_defs} EQUAL 1) @@ -88,7 +88,7 @@ else(${_param_defs} EQUAL 1)
message(" ${_work_mode}")
endif(${_param_defs} EQUAL 1)
set(OUTPUT_FILE ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h)
set(OUTPUT_FILE ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h)
file(WRITE ${OUTPUT_FILE} "/* Generated by eclipse_cd4_generator_amendment.cmake */\n")
file(APPEND ${OUTPUT_FILE} "/* The header contains the defines collected from the */\n")
file(APPEND ${OUTPUT_FILE} "/* INTERFACE_COMPILE_DEFINITIONS target property */\n")
@ -104,7 +104,7 @@ if (${_work_mode} STREQUAL "C and CXX includes, defines in Eclipse with project @@ -104,7 +104,7 @@ if (${_work_mode} STREQUAL "C and CXX includes, defines in Eclipse with project
message(" -------------------------------------------------------------------------")
message(" Add the following two command line parameters:")
message("")
message(" -imacros ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h")
message(" -imacros ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h")
message(" -imacros ${AUTOCONF_H}")
message("")
message(" to 'CDT cross GCC Built-in Compiler Settings' provider command definition")
@ -125,7 +125,7 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERI @@ -125,7 +125,7 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERI
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider-reference id=\"org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider\" ref=\"shared-provider\"/>\n")
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider-reference id=\"org.eclipse.cdt.core.PathEntryScannerInfoLanguageSettingsProvider\" ref=\"shared-provider\"/>\n")
if (${_work_mode} STREQUAL "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]")
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider class=\"org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector\" console=\"false\" id=\"org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector\" keep-relative-paths=\"false\" name=\"Zephyr autoconf and SDK Compiler Settings\" parameter=\"${CROSS_COMPILE}\${COMMAND} \${FLAGS} -imacros ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h -imacros ${AUTOCONF_H} -E -P -v -dD &quot;\${INPUTS}&quot;\" store-entries-with-project=\"true\">\n")
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider class=\"org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector\" console=\"false\" id=\"org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector\" keep-relative-paths=\"false\" name=\"Zephyr autoconf and SDK Compiler Settings\" parameter=\"${CROSS_COMPILE}\${COMMAND} \${FLAGS} -imacros ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h -imacros ${AUTOCONF_H} -E -P -v -dD &quot;\${INPUTS}&quot;\" store-entries-with-project=\"true\">\n")
else ()
file(APPEND ${OUTPUT_FILE} "\t\t\t<provider class=\"org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector\" console=\"false\" id=\"org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetector\" keep-relative-paths=\"false\" name=\"Zephyr autoconf and SDK Compiler Settings\" parameter=\"${CROSS_COMPILE}\${COMMAND} \${FLAGS} -E -P -v -dD &quot;\${INPUTS}&quot;\" store-entries-with-project=\"true\">\n")
endif ()
@ -167,7 +167,7 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without _ @@ -167,7 +167,7 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without _
endif()
file(STRINGS ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h _int_comp_def)
file(STRINGS ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h _int_comp_def)
set (_resultDefines "${CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS}")
foreach( d ${_int_comp_def} )
string(REGEX MATCH "^#define +([A-Za-z_][A-Za-z0-9_]*) *(.*) *$" _dummy "${d}")

5
cmake/kobj.cmake

@ -2,9 +2,9 @@ @@ -2,9 +2,9 @@
function(gen_kobj gen_dir_out)
if (PROJECT_BINARY_DIR)
set(gen_dir ${PROJECT_BINARY_DIR}/include/generated)
set(gen_dir ${PROJECT_BINARY_DIR}/include/generated/zephyr)
else ()
set(gen_dir ${CMAKE_BINARY_DIR}/include/generated)
set(gen_dir ${CMAKE_BINARY_DIR}/include/generated/zephyr)
endif ()
set(KOBJ_TYPES ${gen_dir}/kobj-types-enum.h)
@ -30,6 +30,7 @@ function(gen_kobj gen_dir_out) @@ -30,6 +30,7 @@ function(gen_kobj gen_dir_out)
)
add_custom_target(${KOBJ_TYPES_H_TARGET} DEPENDS ${KOBJ_TYPES} ${KOBJ_OTYPE})
cmake_path(GET gen_dir PARENT_PATH gen_dir)
set(${gen_dir_out} ${gen_dir} PARENT_SCOPE)
endfunction ()

4
cmake/modules/generated_file_directories.cmake

@ -7,7 +7,7 @@ include_guard(GLOBAL) @@ -7,7 +7,7 @@ include_guard(GLOBAL)
#
# Outcome:
# - BINARY_DIR_INCLUDE is set to ${PROJECT_BINARY_DIR}/include
# - BINARY_DIR_INCLUDE_GENERATED is set to ${BINARY_DIR_INCLUDE}/generated
# - BINARY_DIR_INCLUDE_GENERATED is set to ${BINARY_DIR_INCLUDE}/generated/zephyr
# - BINARY_DIR_INCLUDE_GENERATED is a directory
#
# Required variables:
@ -20,5 +20,5 @@ include_guard(GLOBAL) @@ -20,5 +20,5 @@ include_guard(GLOBAL)
# None
set(BINARY_DIR_INCLUDE ${PROJECT_BINARY_DIR}/include)
set(BINARY_DIR_INCLUDE_GENERATED ${BINARY_DIR_INCLUDE}/generated)
set(BINARY_DIR_INCLUDE_GENERATED ${BINARY_DIR_INCLUDE}/generated/zephyr)
file(MAKE_DIRECTORY ${BINARY_DIR_INCLUDE_GENERATED})

3
cmake/modules/kconfig.cmake

@ -5,7 +5,8 @@ include_guard(GLOBAL) @@ -5,7 +5,8 @@ include_guard(GLOBAL)
include(extensions)
include(python)
# autoconf.h is generated by Kconfig and placed in <build>/zephyr/include/generated/autoconf.h.
# autoconf.h is generated by Kconfig and placed in
# <build>/zephyr/include/generated/autoconf.h.
# A project may request a custom location by setting AUTOCONF_H explicitly before
# calling 'find_package(Zephyr)' or loading this module.
set_ifndef(AUTOCONF_H ${PROJECT_BINARY_DIR}/include/generated/autoconf.h)

2
cmake/modules/unittest.cmake

@ -59,7 +59,7 @@ add_dependencies(test_interface ${KOBJ_TYPES_H_TARGET}) @@ -59,7 +59,7 @@ add_dependencies(test_interface ${KOBJ_TYPES_H_TARGET})
gen_kobj(KOBJ_GEN_DIR)
# Generates empty header files to build
set(INCL_GENERATED_DIR ${APPLICATION_BINARY_DIR}/zephyr/include/generated)
set(INCL_GENERATED_DIR ${APPLICATION_BINARY_DIR}/zephyr/include/generated/zephyr)
set(INCL_GENERATED_SYSCALL_DIR ${INCL_GENERATED_DIR}/syscalls)
list(APPEND INCL_GENERATED_HEADERS
${INCL_GENERATED_DIR}/devicetree_generated.h

2
doc/build/cmake/index.rst vendored

@ -88,7 +88,7 @@ Devicetree @@ -88,7 +88,7 @@ Devicetree
The preprocessed devicetree sources are parsed by
:zephyr_file:`gen_defines.py <scripts/dts/gen_defines.py>` to generate a
:file:`build/zephyr/include/generated/devicetree_generated.h` header with
:file:`build/zephyr/include/generated/zephyr/devicetree_generated.h` header with
preprocessor macros.
Source code should access preprocessor macros generated from devicetree by

2
doc/build/dts/howtos.rst vendored

@ -42,7 +42,7 @@ CMake prints the input and output file locations like this: @@ -42,7 +42,7 @@ CMake prints the input and output file locations like this:
-- Found BOARD.dts: .../zephyr/boards/arm/qemu_cortex_m3/qemu_cortex_m3.dts
-- Generated zephyr.dts: .../zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: .../zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Generated devicetree_generated.h: .../zephyr/build/zephyr/include/generated/zephyr/devicetree_generated.h
The :file:`zephyr.dts` file is the final devicetree in DTS format.

2
doc/build/dts/intro-input-output.rst vendored

@ -129,7 +129,7 @@ These are created in your application's build directory. @@ -129,7 +129,7 @@ These are created in your application's build directory.
input to :file:`gen_defines.py` and used to create :file:`zephyr.dts` and
:file:`devicetree_generated.h`.
:file:`<build>/zephyr/include/generated/devicetree_generated.h`
:file:`<build>/zephyr/include/generated/zephyr/devicetree_generated.h`
The generated macros and additional comments describing the devicetree.
Included by ``devicetree.h``.

2
doc/build/dts/troubleshooting.rst vendored

@ -66,7 +66,7 @@ Below, ``<build>`` means your build directory. @@ -66,7 +66,7 @@ Below, ``<build>`` means your build directory.
To find the devicetree node you need to check, use the number ``<N>`` from the
linker error. Look for this number in the list of nodes at the top of
:file:`<build>/zephyr/include/generated/devicetree_generated.h`. For example, if
:file:`<build>/zephyr/include/generated/zephyr/devicetree_generated.h`. For example, if
``<N>`` is 15, and your :file:`devicetree_generated.h` file looks like this,
the node you are interested in is ``/soc/i2c@deadbeef``:

2
doc/build/dts/zephyr_dt_inputs_outputs.svg generated vendored

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

4
doc/kernel/drivers/index.rst

@ -203,7 +203,7 @@ A device-specific API definition typically looks like this: @@ -203,7 +203,7 @@ A device-specific API definition typically looks like this:
__syscall int specific_from_user(const struct device *dev, int bar);
/* Only needed when extensions include syscalls */
#include <syscalls/specific.h>
#include <zephyr/syscalls/specific.h>
A driver implementing extensions to the subsystem will define the real
implementation of both the subsystem API and the specific APIs:
@ -243,7 +243,7 @@ implementation of both the subsystem API and the specific APIs: @@ -243,7 +243,7 @@ implementation of both the subsystem API and the specific APIs:
return z_impl_specific_do_that(dev, bar)
}
#include <syscalls/specific_from_user_mrsh.c>
#include <zephyr/syscalls/specific_from_user_mrsh.c>
#endif /* CONFIG_USERSPACE */

8
doc/kernel/usermode/syscalls.rst

@ -87,7 +87,7 @@ bottom of ``include/sensor.h``: @@ -87,7 +87,7 @@ bottom of ``include/sensor.h``:
.. code-block:: c
#include <syscalls/sensor.h>
#include <zephyr/syscalls/sensor.h>
C prototype functions must be declared in one of the directories
listed in the CMake variable ``SYSCALL_INCLUDE_DIRS``. This list
@ -143,7 +143,7 @@ C and header files by the :ref:`gen_syscalls.py` script, all of which can be fou @@ -143,7 +143,7 @@ C and header files by the :ref:`gen_syscalls.py` script, all of which can be fou
the project out directory under ``include/generated/``:
* The system call is added to the enumerated type of system call IDs,
which is expressed in ``include/generated/syscall_list.h``. It is the name
which is expressed in ``include/generated/zephyr/syscall_list.h``. It is the name
of the API in uppercase, prefixed with ``K_SYSCALL_``.
* An entry for the system call is created in the dispatch table
@ -172,7 +172,7 @@ The body of the API is created in the generated system header. Using the @@ -172,7 +172,7 @@ The body of the API is created in the generated system header. Using the
example of :c:func:`k_sem_init()`, this API is declared in
``include/kernel.h``. At the bottom of ``include/kernel.h`` is::
#include <syscalls/kernel.h>
#include <zephyr/syscalls/kernel.h>
Inside this header is the body of :c:func:`k_sem_init()`::
@ -362,7 +362,7 @@ For example: @@ -362,7 +362,7 @@ For example:
K_OOPS(K_SYSCALL_OBJ(sem, K_OBJ_SEM));
return z_impl_k_sem_take(sem, timeout);
}
#include <syscalls/k_sem_take_mrsh.c>
#include <zephyr/syscalls/k_sem_take_mrsh.c>
Verification Memory Access Policies

2
doc/services/retention/blinfo.rst

@ -122,7 +122,7 @@ this mode: @@ -122,7 +122,7 @@ this mode:
#include <bootutil/boot_status.h>
#include <bootutil/image.h>
#include <mcuboot_version.h>
#include <zephyr/mcuboot_version.h>
#include <zephyr/settings/settings.h>
API Reference

6
drivers/adc/adc_handlers.c

@ -21,7 +21,7 @@ static inline int z_vrfy_adc_channel_setup(const struct device *dev, @@ -21,7 +21,7 @@ static inline int z_vrfy_adc_channel_setup(const struct device *dev,
return z_impl_adc_channel_setup((const struct device *)dev,
&channel_cfg);
}
#include <syscalls/adc_channel_setup_mrsh.c>
#include <zephyr/syscalls/adc_channel_setup_mrsh.c>
static bool copy_sequence(struct adc_sequence *dst,
struct adc_sequence_options *options,
@ -66,7 +66,7 @@ static inline int z_vrfy_adc_read(const struct device *dev, @@ -66,7 +66,7 @@ static inline int z_vrfy_adc_read(const struct device *dev,
return z_impl_adc_read((const struct device *)dev, &sequence);
}
#include <syscalls/adc_read_mrsh.c>
#include <zephyr/syscalls/adc_read_mrsh.c>
#ifdef CONFIG_ADC_ASYNC
static inline int z_vrfy_adc_read_async(const struct device *dev,
@ -89,5 +89,5 @@ static inline int z_vrfy_adc_read_async(const struct device *dev, @@ -89,5 +89,5 @@ static inline int z_vrfy_adc_read_async(const struct device *dev,
return z_impl_adc_read_async((const struct device *)dev, &sequence,
(struct k_poll_signal *)async);
}
#include <syscalls/adc_read_async_mrsh.c>
#include <zephyr/syscalls/adc_read_async_mrsh.c>
#endif /* CONFIG_ADC_ASYNC */

38
drivers/auxdisplay/auxdisplay_handlers.c

@ -12,21 +12,21 @@ static inline int z_vrfy_auxdisplay_display_on(const struct device *dev) @@ -12,21 +12,21 @@ 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 <syscalls/auxdisplay_display_on_mrsh.c>
#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 <syscalls/auxdisplay_display_off_mrsh.c>
#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 <syscalls/auxdisplay_cursor_set_enabled_mrsh.c>
#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)
@ -34,7 +34,7 @@ static inline int z_vrfy_auxdisplay_position_blinking_set_enabled(const struct d @@ -34,7 +34,7 @@ static inline int z_vrfy_auxdisplay_position_blinking_set_enabled(const struct d
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_position_blinking_set_enabled(dev, enabled);
}
#include <syscalls/auxdisplay_position_blinking_set_enabled_mrsh.c>
#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)
@ -42,7 +42,7 @@ static inline int z_vrfy_auxdisplay_cursor_shift_set(const struct device *dev, u @@ -42,7 +42,7 @@ static inline int z_vrfy_auxdisplay_cursor_shift_set(const struct device *dev, u
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_cursor_shift_set(dev, direction, display_shift);
}
#include <syscalls/auxdisplay_cursor_shift_set_mrsh.c>
#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,
@ -51,7 +51,7 @@ static inline int z_vrfy_auxdisplay_cursor_position_set(const struct device *dev @@ -51,7 +51,7 @@ static inline int z_vrfy_auxdisplay_cursor_position_set(const struct device *dev
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_cursor_position_set(dev, type, x, y);
}
#include <syscalls/auxdisplay_cursor_position_set_mrsh.c>
#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)
@ -59,7 +59,7 @@ static inline int z_vrfy_auxdisplay_cursor_position_get(const struct device *dev @@ -59,7 +59,7 @@ static inline int z_vrfy_auxdisplay_cursor_position_get(const struct device *dev
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_cursor_position_get(dev, x, y);
}
#include <syscalls/auxdisplay_cursor_position_get_mrsh.c>
#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,
@ -68,7 +68,7 @@ static inline int z_vrfy_auxdisplay_display_position_set(const struct device *de @@ -68,7 +68,7 @@ static inline int z_vrfy_auxdisplay_display_position_set(const struct device *de
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_display_position_set(dev, type, x, y);
}
#include <syscalls/auxdisplay_display_position_set_mrsh.c>
#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)
@ -76,7 +76,7 @@ static inline int z_vrfy_auxdisplay_display_position_get(const struct device *de @@ -76,7 +76,7 @@ static inline int z_vrfy_auxdisplay_display_position_get(const struct device *de
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_display_position_get(dev, x, y);
}
#include <syscalls/auxdisplay_display_position_get_mrsh.c>
#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)
@ -84,14 +84,14 @@ static inline int z_vrfy_auxdisplay_capabilities_get(const struct device *dev, @@ -84,14 +84,14 @@ static inline int z_vrfy_auxdisplay_capabilities_get(const struct device *dev,
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_capabilities_get(dev, capabilities);
}
#include <syscalls/auxdisplay_capabilities_get_mrsh.c>
#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 <syscalls/auxdisplay_clear_mrsh.c>
#include <zephyr/syscalls/auxdisplay_clear_mrsh.c>
static inline int z_vrfy_auxdisplay_brightness_get(const struct device *dev,
uint8_t *brightness)
@ -99,7 +99,7 @@ static inline int z_vrfy_auxdisplay_brightness_get(const struct device *dev, @@ -99,7 +99,7 @@ static inline int z_vrfy_auxdisplay_brightness_get(const struct device *dev,
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_brightness_get(dev, brightness);
}
#include <syscalls/auxdisplay_brightness_get_mrsh.c>
#include <zephyr/syscalls/auxdisplay_brightness_get_mrsh.c>
static inline int z_vrfy_auxdisplay_brightness_set(const struct device *dev,
uint8_t brightness)
@ -107,7 +107,7 @@ static inline int z_vrfy_auxdisplay_brightness_set(const struct device *dev, @@ -107,7 +107,7 @@ static inline int z_vrfy_auxdisplay_brightness_set(const struct device *dev,
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_brightness_set(dev, brightness);
}
#include <syscalls/auxdisplay_brightness_set_mrsh.c>
#include <zephyr/syscalls/auxdisplay_brightness_set_mrsh.c>
static inline int z_vrfy_auxdisplay_backlight_get(const struct device *dev,
uint8_t *backlight)
@ -115,7 +115,7 @@ static inline int z_vrfy_auxdisplay_backlight_get(const struct device *dev, @@ -115,7 +115,7 @@ static inline int z_vrfy_auxdisplay_backlight_get(const struct device *dev,
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_backlight_get(dev, backlight);
}
#include <syscalls/auxdisplay_backlight_get_mrsh.c>
#include <zephyr/syscalls/auxdisplay_backlight_get_mrsh.c>
static inline int z_vrfy_auxdisplay_backlight_set(const struct device *dev,
uint8_t backlight)
@ -123,14 +123,14 @@ static inline int z_vrfy_auxdisplay_backlight_set(const struct device *dev, @@ -123,14 +123,14 @@ static inline int z_vrfy_auxdisplay_backlight_set(const struct device *dev,
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_backlight_set(dev, backlight);
}
#include <syscalls/auxdisplay_backlight_set_mrsh.c>
#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 <syscalls/auxdisplay_is_busy_mrsh.c>
#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)
@ -138,7 +138,7 @@ static inline int z_vrfy_auxdisplay_custom_character_set(const struct device *de @@ -138,7 +138,7 @@ static inline int z_vrfy_auxdisplay_custom_character_set(const struct device *de
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_custom_character_set(dev, character);
}
#include <syscalls/auxdisplay_custom_character_set_mrsh.c>
#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)
@ -146,7 +146,7 @@ static inline int z_vrfy_auxdisplay_write(const struct device *dev, const uint8_ @@ -146,7 +146,7 @@ static inline int z_vrfy_auxdisplay_write(const struct device *dev, const uint8_
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_write(dev, data, len);
}
#include <syscalls/auxdisplay_write_mrsh.c>
#include <zephyr/syscalls/auxdisplay_write_mrsh.c>
static inline int z_vrfy_auxdisplay_custom_command(const struct device *dev,
struct auxdisplay_custom_data *data)
@ -154,4 +154,4 @@ static inline int z_vrfy_auxdisplay_custom_command(const struct device *dev, @@ -154,4 +154,4 @@ static inline int z_vrfy_auxdisplay_custom_command(const struct device *dev,
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY));
return z_impl_auxdisplay_custom_command(dev, data);
}
#include <syscalls/auxdisplay_custom_command_mrsh.c>
#include <zephyr/syscalls/auxdisplay_custom_command_mrsh.c>

12
drivers/bbram/bbram_handlers.c

@ -12,21 +12,21 @@ static inline int z_vrfy_bbram_check_invalid(const struct device *dev) @@ -12,21 +12,21 @@ static inline int z_vrfy_bbram_check_invalid(const struct device *dev)
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
return z_impl_bbram_check_invalid(dev);
}
#include <syscalls/bbram_check_invalid_mrsh.c>
#include <zephyr/syscalls/bbram_check_invalid_mrsh.c>
static inline int z_vrfy_bbram_check_standby_power(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
return z_impl_bbram_check_standby_power(dev);
}
#include <syscalls/bbram_check_standby_power_mrsh.c>
#include <zephyr/syscalls/bbram_check_standby_power_mrsh.c>
static inline int z_vrfy_bbram_check_power(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM));
return z_impl_bbram_check_power(dev);
}
#include <syscalls/bbram_check_power_mrsh.c>
#include <zephyr/syscalls/bbram_check_power_mrsh.c>
static inline int z_vrfy_bbram_get_size(const struct device *dev, size_t *size)
{
@ -34,7 +34,7 @@ static inline int z_vrfy_bbram_get_size(const struct device *dev, size_t *size) @@ -34,7 +34,7 @@ static inline int z_vrfy_bbram_get_size(const struct device *dev, size_t *size)
K_OOPS(K_SYSCALL_MEMORY_WRITE(size, sizeof(size_t)));
return z_impl_bbram_get_size(dev, size);
}
#include <syscalls/bbram_get_size_mrsh.c>
#include <zephyr/syscalls/bbram_get_size_mrsh.c>
static inline int z_vrfy_bbram_read(const struct device *dev, size_t offset,
size_t size, uint8_t *data)
@ -43,7 +43,7 @@ static inline int z_vrfy_bbram_read(const struct device *dev, size_t offset, @@ -43,7 +43,7 @@ static inline int z_vrfy_bbram_read(const struct device *dev, size_t offset,
K_OOPS(K_SYSCALL_MEMORY_WRITE(data, size));
return z_impl_bbram_read(dev, offset, size, data);
}
#include <syscalls/bbram_read_mrsh.c>
#include <zephyr/syscalls/bbram_read_mrsh.c>
static inline int z_vrfy_bbram_write(const struct device *dev, size_t offset,
size_t size, const uint8_t *data)
@ -52,4 +52,4 @@ static inline int z_vrfy_bbram_write(const struct device *dev, size_t offset, @@ -52,4 +52,4 @@ static inline int z_vrfy_bbram_write(const struct device *dev, size_t offset,
K_OOPS(K_SYSCALL_MEMORY_READ(data, size));
return z_impl_bbram_write(dev, offset, size, data);
}
#include <syscalls/bbram_write_mrsh.c>
#include <zephyr/syscalls/bbram_write_mrsh.c>

6
drivers/cache/cache_handlers.c vendored

@ -13,7 +13,7 @@ static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size) @@ -13,7 +13,7 @@ static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size)
return z_impl_sys_cache_data_flush_range(addr, size);
}
#include <syscalls/sys_cache_data_flush_range_mrsh.c>
#include <zephyr/syscalls/sys_cache_data_flush_range_mrsh.c>
static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size)
{
@ -21,7 +21,7 @@ static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size) @@ -21,7 +21,7 @@ static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size)
return z_impl_sys_cache_data_invd_range(addr, size);
}
#include <syscalls/sys_cache_data_invd_range_mrsh.c>
#include <zephyr/syscalls/sys_cache_data_invd_range_mrsh.c>
static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t size)
{
@ -29,4 +29,4 @@ static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t @@ -29,4 +29,4 @@ static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t
return z_impl_sys_cache_data_flush_and_invd_range(addr, size);
}
#include <syscalls/sys_cache_data_flush_and_invd_range_mrsh.c>
#include <zephyr/syscalls/sys_cache_data_flush_and_invd_range_mrsh.c>

66
drivers/can/can_handlers.c

@ -21,7 +21,7 @@ static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *r @@ -21,7 +21,7 @@ static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *r
return err;
}
#include <syscalls/can_calc_timing_mrsh.c>
#include <zephyr/syscalls/can_calc_timing_mrsh.c>
static inline int z_vrfy_can_set_timing(const struct device *dev,
const struct can_timing *timing)
@ -33,7 +33,7 @@ static inline int z_vrfy_can_set_timing(const struct device *dev, @@ -33,7 +33,7 @@ static inline int z_vrfy_can_set_timing(const struct device *dev,
return z_impl_can_set_timing(dev, &timing_copy);
}
#include <syscalls/can_set_timing_mrsh.c>
#include <zephyr/syscalls/can_set_timing_mrsh.c>
static inline int z_vrfy_can_get_core_clock(const struct device *dev,
uint32_t *rate)
@ -43,7 +43,7 @@ static inline int z_vrfy_can_get_core_clock(const struct device *dev, @@ -43,7 +43,7 @@ static inline int z_vrfy_can_get_core_clock(const struct device *dev,
return z_impl_can_get_core_clock(dev, rate);
}
#include <syscalls/can_get_core_clock_mrsh.c>
#include <zephyr/syscalls/can_get_core_clock_mrsh.c>
static inline uint32_t z_vrfy_can_get_bitrate_min(const struct device *dev)
{
@ -51,7 +51,7 @@ static inline uint32_t z_vrfy_can_get_bitrate_min(const struct device *dev) @@ -51,7 +51,7 @@ static inline uint32_t z_vrfy_can_get_bitrate_min(const struct device *dev)
return z_impl_can_get_bitrate_min(dev);
}
#include <syscalls/can_get_bitrate_min_mrsh.c>
#include <zephyr/syscalls/can_get_bitrate_min_mrsh.c>
static inline uint32_t z_vrfy_can_get_bitrate_max(const struct device *dev)
{
@ -59,7 +59,7 @@ static inline uint32_t z_vrfy_can_get_bitrate_max(const struct device *dev) @@ -59,7 +59,7 @@ static inline uint32_t z_vrfy_can_get_bitrate_max(const struct device *dev)
return z_impl_can_get_bitrate_max(dev);
}
#include <syscalls/can_get_bitrate_max_mrsh.c>
#include <zephyr/syscalls/can_get_bitrate_max_mrsh.c>
static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct device *dev)
{
@ -67,7 +67,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct de @@ -67,7 +67,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct de
return z_impl_can_get_timing_min(dev);
}
#include <syscalls/can_get_timing_min_mrsh.c>
#include <zephyr/syscalls/can_get_timing_min_mrsh.c>
static inline const struct can_timing *z_vrfy_can_get_timing_max(const struct device *dev)
{
@ -75,7 +75,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_max(const struct de @@ -75,7 +75,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_max(const struct de
return z_impl_can_get_timing_max(dev);
}
#include <syscalls/can_get_timing_max_mrsh.c>
#include <zephyr/syscalls/can_get_timing_max_mrsh.c>
#ifdef CONFIG_CAN_FD_MODE
@ -93,7 +93,7 @@ static int z_vrfy_can_calc_timing_data(const struct device *dev, struct can_timi @@ -93,7 +93,7 @@ static int z_vrfy_can_calc_timing_data(const struct device *dev, struct can_timi
return err;
}
#include <syscalls/can_calc_timing_data_mrsh.c>
#include <zephyr/syscalls/can_calc_timing_data_mrsh.c>
static inline const struct can_timing *z_vrfy_can_get_timing_data_min(const struct device *dev)
{
@ -101,7 +101,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_data_min(const stru @@ -101,7 +101,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_data_min(const stru
return z_impl_can_get_timing_data_min(dev);
}
#include <syscalls/can_get_timing_data_min_mrsh.c>
#include <zephyr/syscalls/can_get_timing_data_min_mrsh.c>
static inline const struct can_timing *z_vrfy_can_get_timing_data_max(const struct device *dev)
{
@ -109,7 +109,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_data_max(const stru @@ -109,7 +109,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_data_max(const stru
return z_impl_can_get_timing_data_max(dev);
}
#include <syscalls/can_get_timing_data_max_mrsh.c>
#include <zephyr/syscalls/can_get_timing_data_max_mrsh.c>
static inline int z_vrfy_can_set_timing_data(const struct device *dev,
const struct can_timing *timing_data)
@ -121,7 +121,7 @@ static inline int z_vrfy_can_set_timing_data(const struct device *dev, @@ -121,7 +121,7 @@ static inline int z_vrfy_can_set_timing_data(const struct device *dev,
return z_impl_can_set_timing_data(dev, &timing_data_copy);
}
#include <syscalls/can_set_timing_data_mrsh.c>
#include <zephyr/syscalls/can_set_timing_data_mrsh.c>
static inline int z_vrfy_can_set_bitrate_data(const struct device *dev,
uint32_t bitrate_data)
@ -130,7 +130,7 @@ static inline int z_vrfy_can_set_bitrate_data(const struct device *dev, @@ -130,7 +130,7 @@ static inline int z_vrfy_can_set_bitrate_data(const struct device *dev,
return z_impl_can_set_bitrate_data(dev, bitrate_data);
}
#include <syscalls/can_set_bitrate_data_mrsh.c>
#include <zephyr/syscalls/can_set_bitrate_data_mrsh.c>
#endif /* CONFIG_CAN_FD_MODE */
@ -141,7 +141,7 @@ static inline int z_vrfy_can_get_max_filters(const struct device *dev, bool ide) @@ -141,7 +141,7 @@ static inline int z_vrfy_can_get_max_filters(const struct device *dev, bool ide)
return z_impl_can_get_max_filters(dev, ide);
}
#include <syscalls/can_get_max_filters_mrsh.c>
#include <zephyr/syscalls/can_get_max_filters_mrsh.c>
static inline int z_vrfy_can_get_capabilities(const struct device *dev, can_mode_t *cap)
{
@ -150,7 +150,7 @@ static inline int z_vrfy_can_get_capabilities(const struct device *dev, can_mode @@ -150,7 +150,7 @@ static inline int z_vrfy_can_get_capabilities(const struct device *dev, can_mode
return z_impl_can_get_capabilities(dev, cap);
}
#include <syscalls/can_get_capabilities_mrsh.c>
#include <zephyr/syscalls/can_get_capabilities_mrsh.c>
static inline const struct device *z_vrfy_can_get_transceiver(const struct device *dev)
{
@ -158,7 +158,7 @@ static inline const struct device *z_vrfy_can_get_transceiver(const struct devic @@ -158,7 +158,7 @@ static inline const struct device *z_vrfy_can_get_transceiver(const struct devic
return z_impl_can_get_transceiver(dev);
}
#include <syscalls/can_get_transceiver_mrsh.c>
#include <zephyr/syscalls/can_get_transceiver_mrsh.c>
static inline int z_vrfy_can_start(const struct device *dev)
{
@ -166,7 +166,7 @@ static inline int z_vrfy_can_start(const struct device *dev) @@ -166,7 +166,7 @@ static inline int z_vrfy_can_start(const struct device *dev)
return z_impl_can_start(dev);
}
#include <syscalls/can_start_mrsh.c>
#include <zephyr/syscalls/can_start_mrsh.c>
static inline int z_vrfy_can_stop(const struct device *dev)
{
@ -174,7 +174,7 @@ static inline int z_vrfy_can_stop(const struct device *dev) @@ -174,7 +174,7 @@ static inline int z_vrfy_can_stop(const struct device *dev)
return z_impl_can_stop(dev);
}
#include <syscalls/can_stop_mrsh.c>
#include <zephyr/syscalls/can_stop_mrsh.c>
static inline int z_vrfy_can_set_mode(const struct device *dev, can_mode_t mode)
{
@ -182,7 +182,7 @@ static inline int z_vrfy_can_set_mode(const struct device *dev, can_mode_t mode) @@ -182,7 +182,7 @@ static inline int z_vrfy_can_set_mode(const struct device *dev, can_mode_t mode)
return z_impl_can_set_mode(dev, mode);
}
#include <syscalls/can_set_mode_mrsh.c>
#include <zephyr/syscalls/can_set_mode_mrsh.c>
static inline can_mode_t z_vrfy_can_get_mode(const struct device *dev)
{
@ -190,7 +190,7 @@ static inline can_mode_t z_vrfy_can_get_mode(const struct device *dev) @@ -190,7 +190,7 @@ static inline can_mode_t z_vrfy_can_get_mode(const struct device *dev)
return z_impl_can_get_mode(dev);
}
#include <syscalls/can_get_mode_mrsh.c>
#include <zephyr/syscalls/can_get_mode_mrsh.c>
static inline int z_vrfy_can_set_bitrate(const struct device *dev, uint32_t bitrate)
{
@ -198,7 +198,7 @@ static inline int z_vrfy_can_set_bitrate(const struct device *dev, uint32_t bitr @@ -198,7 +198,7 @@ static inline int z_vrfy_can_set_bitrate(const struct device *dev, uint32_t bitr
return z_impl_can_set_bitrate(dev, bitrate);
}
#include <syscalls/can_set_bitrate_mrsh.c>
#include <zephyr/syscalls/can_set_bitrate_mrsh.c>
static inline int z_vrfy_can_send(const struct device *dev,
const struct can_frame *frame,
@ -214,7 +214,7 @@ static inline int z_vrfy_can_send(const struct device *dev, @@ -214,7 +214,7 @@ static inline int z_vrfy_can_send(const struct device *dev,
return z_impl_can_send(dev, &frame_copy, timeout, callback, user_data);
}
#include <syscalls/can_send_mrsh.c>
#include <zephyr/syscalls/can_send_mrsh.c>
static inline int z_vrfy_can_add_rx_filter_msgq(const struct device *dev,
struct k_msgq *msgq,
@ -228,7 +228,7 @@ static inline int z_vrfy_can_add_rx_filter_msgq(const struct device *dev, @@ -228,7 +228,7 @@ static inline int z_vrfy_can_add_rx_filter_msgq(const struct device *dev,
return z_impl_can_add_rx_filter_msgq(dev, msgq, &filter_copy);
}
#include <syscalls/can_add_rx_filter_msgq_mrsh.c>
#include <zephyr/syscalls/can_add_rx_filter_msgq_mrsh.c>
static inline void z_vrfy_can_remove_rx_filter(const struct device *dev, int filter_id)
{
@ -236,7 +236,7 @@ static inline void z_vrfy_can_remove_rx_filter(const struct device *dev, int fil @@ -236,7 +236,7 @@ static inline void z_vrfy_can_remove_rx_filter(const struct device *dev, int fil
z_impl_can_remove_rx_filter(dev, filter_id);
}
#include <syscalls/can_remove_rx_filter_mrsh.c>
#include <zephyr/syscalls/can_remove_rx_filter_mrsh.c>
static inline int z_vrfy_can_get_state(const struct device *dev, enum can_state *state,
struct can_bus_err_cnt *err_cnt)
@ -253,7 +253,7 @@ static inline int z_vrfy_can_get_state(const struct device *dev, enum can_state @@ -253,7 +253,7 @@ static inline int z_vrfy_can_get_state(const struct device *dev, enum can_state
return z_impl_can_get_state(dev, state, err_cnt);
}
#include <syscalls/can_get_state_mrsh.c>
#include <zephyr/syscalls/can_get_state_mrsh.c>
#ifdef CONFIG_CAN_MANUAL_RECOVERY_MODE
static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeout)
@ -263,7 +263,7 @@ static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeo @@ -263,7 +263,7 @@ static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeo
return z_impl_can_recover(dev, timeout);
}
#include <syscalls/can_recover_mrsh.c>
#include <zephyr/syscalls/can_recover_mrsh.c>
#endif /* CONFIG_CAN_MANUAL_RECOVERY_MODE */
#ifdef CONFIG_CAN_STATS
@ -274,7 +274,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit_errors(const struct device *dev) @@ -274,7 +274,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit_errors(const struct device *dev)
return z_impl_can_stats_get_bit_errors(dev);
}
#include <syscalls/can_stats_get_bit_errors_mrsh.c>
#include <zephyr/syscalls/can_stats_get_bit_errors_mrsh.c>
static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev)
{
@ -282,7 +282,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev @@ -282,7 +282,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev
return z_impl_can_stats_get_bit0_errors(dev);
}
#include <syscalls/can_stats_get_bit0_errors_mrsh.c>
#include <zephyr/syscalls/can_stats_get_bit0_errors_mrsh.c>
static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev)
{
@ -290,7 +290,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev @@ -290,7 +290,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev
return z_impl_can_stats_get_bit1_errors(dev);
}
#include <syscalls/can_stats_get_bit1_errors_mrsh.c>
#include <zephyr/syscalls/can_stats_get_bit1_errors_mrsh.c>
static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *dev)
{
@ -298,7 +298,7 @@ static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *de @@ -298,7 +298,7 @@ static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *de
return z_impl_can_stats_get_stuff_errors(dev);
}
#include <syscalls/can_stats_get_stuff_errors_mrsh.c>
#include <zephyr/syscalls/can_stats_get_stuff_errors_mrsh.c>
static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev)
{
@ -306,7 +306,7 @@ static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev) @@ -306,7 +306,7 @@ static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev)
return z_impl_can_stats_get_crc_errors(dev);
}
#include <syscalls/can_stats_get_crc_errors_mrsh.c>
#include <zephyr/syscalls/can_stats_get_crc_errors_mrsh.c>
static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev)
{
@ -314,7 +314,7 @@ static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev @@ -314,7 +314,7 @@ static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev
return z_impl_can_stats_get_form_errors(dev);
}
#include <syscalls/can_stats_get_form_errors_mrsh.c>
#include <zephyr/syscalls/can_stats_get_form_errors_mrsh.c>
static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev)
{
@ -322,7 +322,7 @@ static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev) @@ -322,7 +322,7 @@ static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev)
return z_impl_can_stats_get_ack_errors(dev);
}
#include <syscalls/can_stats_get_ack_errors_mrsh.c>
#include <zephyr/syscalls/can_stats_get_ack_errors_mrsh.c>
static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev)
{
@ -330,6 +330,6 @@ static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev @@ -330,6 +330,6 @@ static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev
return z_impl_can_stats_get_rx_overruns(dev);
}
#include <syscalls/can_stats_get_rx_overruns_mrsh.c>
#include <zephyr/syscalls/can_stats_get_rx_overruns_mrsh.c>
#endif /* CONFIG_CAN_STATS */

6
drivers/charger/charger_handlers.c

@ -21,7 +21,7 @@ static inline int z_vrfy_charger_get_prop(const struct device *dev, const charge @@ -21,7 +21,7 @@ static inline int z_vrfy_charger_get_prop(const struct device *dev, const charge
return ret;
}
#include <syscalls/charger_get_prop_mrsh.c>
#include <zephyr/syscalls/charger_get_prop_mrsh.c>
static inline int z_vrfy_charger_set_prop(const struct device *dev, const charger_prop_t prop,
const union charger_propval *val)
@ -35,7 +35,7 @@ static inline int z_vrfy_charger_set_prop(const struct device *dev, const charge @@ -35,7 +35,7 @@ static inline int z_vrfy_charger_set_prop(const struct device *dev, const charge
return z_impl_charger_set_prop(dev, prop, &k_val);
}
#include <syscalls/charger_set_prop_mrsh.c>
#include <zephyr/syscalls/charger_set_prop_mrsh.c>
static inline int z_vrfy_charger_charge_enable(const struct device *dev, const bool enable)
{
@ -44,4 +44,4 @@ static inline int z_vrfy_charger_charge_enable(const struct device *dev, const b @@ -44,4 +44,4 @@ static inline int z_vrfy_charger_charge_enable(const struct device *dev, const b
return z_impl_charger_charge_enable(dev, enable);
}
#include <syscalls/charger_charge_enable_mrsh.c>
#include <zephyr/syscalls/charger_charge_enable_mrsh.c>

2
drivers/console/uart_mux.c

@ -739,7 +739,7 @@ static inline const struct device *z_vrfy_uart_mux_find(int dlci_address) @@ -739,7 +739,7 @@ static inline const struct device *z_vrfy_uart_mux_find(int dlci_address)
{
return z_impl_uart_mux_find(dlci_address);
}
#include <syscalls/uart_mux_find_mrsh.c>
#include <zephyr/syscalls/uart_mux_find_mrsh.c>
#endif /* CONFIG_USERSPACE */
const struct device *z_impl_uart_mux_find(int dlci_address)

32
drivers/counter/counter_handlers.c

@ -21,30 +21,30 @@ COUNTER_HANDLER(get_pending_int) @@ -21,30 +21,30 @@ COUNTER_HANDLER(get_pending_int)
COUNTER_HANDLER(stop)
COUNTER_HANDLER(start)
#include <syscalls/counter_get_pending_int_mrsh.c>
#include <syscalls/counter_stop_mrsh.c>
#include <syscalls/counter_start_mrsh.c>
#include <zephyr/syscalls/counter_get_pending_int_mrsh.c>
#include <zephyr/syscalls/counter_stop_mrsh.c>
#include <zephyr/syscalls/counter_start_mrsh.c>
static inline bool z_vrfy_counter_is_counting_up(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER));
return z_impl_counter_is_counting_up((const struct device *)dev);
}
#include <syscalls/counter_is_counting_up_mrsh.c>
#include <zephyr/syscalls/counter_is_counting_up_mrsh.c>
static inline uint8_t z_vrfy_counter_get_num_of_channels(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER));
return z_impl_counter_get_num_of_channels((const struct device *)dev);
}
#include <syscalls/counter_get_num_of_channels_mrsh.c>
#include <zephyr/syscalls/counter_get_num_of_channels_mrsh.c>
static inline uint32_t z_vrfy_counter_get_frequency(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER));
return z_impl_counter_get_frequency((const struct device *)dev);
}
#include <syscalls/counter_get_frequency_mrsh.c>
#include <zephyr/syscalls/counter_get_frequency_mrsh.c>
static inline uint32_t z_vrfy_counter_us_to_ticks(const struct device *dev,
uint64_t us)
@ -53,7 +53,7 @@ static inline uint32_t z_vrfy_counter_us_to_ticks(const struct device *dev, @@ -53,7 +53,7 @@ static inline uint32_t z_vrfy_counter_us_to_ticks(const struct device *dev,
return z_impl_counter_us_to_ticks((const struct device *)dev,
(uint64_t)us);
}
#include <syscalls/counter_us_to_ticks_mrsh.c>
#include <zephyr/syscalls/counter_us_to_ticks_mrsh.c>
static inline uint64_t z_vrfy_counter_ticks_to_us(const struct device *dev,
uint32_t ticks)
@ -62,7 +62,7 @@ static inline uint64_t z_vrfy_counter_ticks_to_us(const struct device *dev, @@ -62,7 +62,7 @@ static inline uint64_t z_vrfy_counter_ticks_to_us(const struct device *dev,
return z_impl_counter_ticks_to_us((const struct device *)dev,
(uint32_t)ticks);
}
#include <syscalls/counter_ticks_to_us_mrsh.c>
#include <zephyr/syscalls/counter_ticks_to_us_mrsh.c>
static inline int z_vrfy_counter_get_value(const struct device *dev,
uint32_t *ticks)
@ -80,7 +80,7 @@ static inline int z_vrfy_counter_get_value_64(const struct device *dev, @@ -80,7 +80,7 @@ static inline int z_vrfy_counter_get_value_64(const struct device *dev,
return z_impl_counter_get_value_64((const struct device *)dev, ticks);
}
#include <syscalls/counter_get_value_mrsh.c>
#include <zephyr/syscalls/counter_get_value_mrsh.c>
static inline int z_vrfy_counter_set_channel_alarm(const struct device *dev,
uint8_t chan_id,
@ -97,7 +97,7 @@ static inline int z_vrfy_counter_set_channel_alarm(const struct device *dev, @@ -97,7 +97,7 @@ static inline int z_vrfy_counter_set_channel_alarm(const struct device *dev,
(const struct counter_alarm_cfg *)&cfg_copy);
}
#include <syscalls/counter_set_channel_alarm_mrsh.c>
#include <zephyr/syscalls/counter_set_channel_alarm_mrsh.c>
static inline int z_vrfy_counter_cancel_channel_alarm(const struct device *dev,
uint8_t chan_id)
@ -106,7 +106,7 @@ static inline int z_vrfy_counter_cancel_channel_alarm(const struct device *dev, @@ -106,7 +106,7 @@ static inline int z_vrfy_counter_cancel_channel_alarm(const struct device *dev,
return z_impl_counter_cancel_channel_alarm((const struct device *)dev,
(uint8_t)chan_id);
}
#include <syscalls/counter_cancel_channel_alarm_mrsh.c>
#include <zephyr/syscalls/counter_cancel_channel_alarm_mrsh.c>
static inline int z_vrfy_counter_set_top_value(const struct device *dev,
const struct counter_top_cfg
@ -122,21 +122,21 @@ static inline int z_vrfy_counter_set_top_value(const struct device *dev, @@ -122,21 +122,21 @@ static inline int z_vrfy_counter_set_top_value(const struct device *dev,
(const struct counter_top_cfg *)
&cfg_copy);
}
#include <syscalls/counter_set_top_value_mrsh.c>
#include <zephyr/syscalls/counter_set_top_value_mrsh.c>
static inline uint32_t z_vrfy_counter_get_top_value(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_COUNTER(dev, get_top_value));
return z_impl_counter_get_top_value((const struct device *)dev);
}
#include <syscalls/counter_get_top_value_mrsh.c>
#include <zephyr/syscalls/counter_get_top_value_mrsh.c>
static inline uint32_t z_vrfy_counter_get_max_top_value(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER));
return z_impl_counter_get_max_top_value((const struct device *)dev);
}
#include <syscalls/counter_get_max_top_value_mrsh.c>
#include <zephyr/syscalls/counter_get_max_top_value_mrsh.c>
static inline uint32_t z_vrfy_counter_get_guard_period(const struct device *dev,
uint32_t flags)
@ -145,7 +145,7 @@ static inline uint32_t z_vrfy_counter_get_guard_period(const struct device *dev, @@ -145,7 +145,7 @@ static inline uint32_t z_vrfy_counter_get_guard_period(const struct device *dev,
return z_impl_counter_get_guard_period((const struct device *)dev,
flags);
}
#include <syscalls/counter_get_guard_period_mrsh.c>
#include <zephyr/syscalls/counter_get_guard_period_mrsh.c>
static inline int z_vrfy_counter_set_guard_period(const struct device *dev,
uint32_t ticks, uint32_t flags)
@ -155,4 +155,4 @@ static inline int z_vrfy_counter_set_guard_period(const struct device *dev, @@ -155,4 +155,4 @@ static inline int z_vrfy_counter_set_guard_period(const struct device *dev,
ticks,
flags);
}
#include <syscalls/counter_set_guard_period_mrsh.c>
#include <zephyr/syscalls/counter_set_guard_period_mrsh.c>

4
drivers/counter/maxim_ds3231.c

@ -1321,7 +1321,7 @@ int z_vrfy_maxim_ds3231_get_syncpoint(const struct device *dev, @@ -1321,7 +1321,7 @@ int z_vrfy_maxim_ds3231_get_syncpoint(const struct device *dev,
return rv;
}
#include <syscalls/maxim_ds3231_get_syncpoint_mrsh.c>
#include <zephyr/syscalls/maxim_ds3231_get_syncpoint_mrsh.c>
int z_vrfy_maxim_ds3231_req_syncpoint(const struct device *dev,
struct k_poll_signal *sig)
@ -1334,6 +1334,6 @@ int z_vrfy_maxim_ds3231_req_syncpoint(const struct device *dev, @@ -1334,6 +1334,6 @@ int z_vrfy_maxim_ds3231_req_syncpoint(const struct device *dev,
return z_impl_maxim_ds3231_req_syncpoint(dev, sig);
}
#include <syscalls/maxim_ds3231_req_syncpoint_mrsh.c>
#include <zephyr/syscalls/maxim_ds3231_req_syncpoint_mrsh.c>
#endif /* CONFIG_USERSPACE */

4
drivers/dac/dac_handlers.c

@ -21,7 +21,7 @@ static inline int z_vrfy_dac_channel_setup(const struct device *dev, @@ -21,7 +21,7 @@ static inline int z_vrfy_dac_channel_setup(const struct device *dev,
return z_impl_dac_channel_setup((const struct device *)dev,
&channel_cfg);
}
#include <syscalls/dac_channel_setup_mrsh.c>
#include <zephyr/syscalls/dac_channel_setup_mrsh.c>
static inline int z_vrfy_dac_write_value(const struct device *dev,
uint8_t channel, uint32_t value)
@ -31,4 +31,4 @@ static inline int z_vrfy_dac_write_value(const struct device *dev, @@ -31,4 +31,4 @@ static inline int z_vrfy_dac_write_value(const struct device *dev,
return z_impl_dac_write_value((const struct device *)dev, channel,
value);
}
#include <syscalls/dac_write_value_mrsh.c>
#include <zephyr/syscalls/dac_write_value_mrsh.c>

4
drivers/dma/dma_handlers.c

@ -16,11 +16,11 @@ static inline int z_vrfy_dma_start(const struct device *dev, uint32_t channel) @@ -16,11 +16,11 @@ static inline int z_vrfy_dma_start(const struct device *dev, uint32_t channel)
K_OOPS(K_SYSCALL_DRIVER_DMA(dev, start));
return z_impl_dma_start((const struct device *)dev, channel);
}
#include <syscalls/dma_start_mrsh.c>
#include <zephyr/syscalls/dma_start_mrsh.c>
static inline int z_vrfy_dma_stop(const struct device *dev, uint32_t channel)
{
K_OOPS(K_SYSCALL_DRIVER_DMA(dev, stop));
return z_impl_dma_stop((const struct device *)dev, channel);
}
#include <syscalls/dma_stop_mrsh.c>
#include <zephyr/syscalls/dma_stop_mrsh.c>

6
drivers/eeprom/eeprom_handlers.c

@ -16,7 +16,7 @@ static inline int z_vrfy_eeprom_read(const struct device *dev, off_t offset, @@ -16,7 +16,7 @@ static inline int z_vrfy_eeprom_read(const struct device *dev, off_t offset,
(void *)data,
len);
}
#include <syscalls/eeprom_read_mrsh.c>
#include <zephyr/syscalls/eeprom_read_mrsh.c>
static inline int z_vrfy_eeprom_write(const struct device *dev, off_t offset,
const void *data, size_t len)
@ -26,11 +26,11 @@ static inline int z_vrfy_eeprom_write(const struct device *dev, off_t offset, @@ -26,11 +26,11 @@ static inline int z_vrfy_eeprom_write(const struct device *dev, off_t offset,
return z_impl_eeprom_write((const struct device *)dev, offset,
(const void *)data, len);
}
#include <syscalls/eeprom_write_mrsh.c>
#include <zephyr/syscalls/eeprom_write_mrsh.c>
static inline size_t z_vrfy_eeprom_get_size(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_EEPROM(dev, size));
return z_impl_eeprom_get_size((const struct device *)dev);
}
#include <syscalls/eeprom_get_size_mrsh.c>
#include <zephyr/syscalls/eeprom_get_size_mrsh.c>

2
drivers/entropy/entropy_handlers.c

@ -17,4 +17,4 @@ static inline int z_vrfy_entropy_get_entropy(const struct device *dev, @@ -17,4 +17,4 @@ static inline int z_vrfy_entropy_get_entropy(const struct device *dev,
(uint8_t *)buffer,
len);
}
#include <syscalls/entropy_get_entropy_mrsh.c>
#include <zephyr/syscalls/entropy_get_entropy_mrsh.c>

26
drivers/espi/espi_handlers.c

@ -19,7 +19,7 @@ static inline int z_vrfy_espi_config(const struct device *dev, @@ -19,7 +19,7 @@ static inline int z_vrfy_espi_config(const struct device *dev,
return z_impl_espi_config(dev, &cfg_copy);
}
#include <syscalls/espi_config_mrsh.c>
#include <zephyr/syscalls/espi_config_mrsh.c>
static inline bool z_vrfy_espi_get_channel_status(const struct device *dev,
enum espi_channel ch)
@ -28,7 +28,7 @@ static inline bool z_vrfy_espi_get_channel_status(const struct device *dev, @@ -28,7 +28,7 @@ static inline bool z_vrfy_espi_get_channel_status(const struct device *dev,
return z_impl_espi_get_channel_status(dev, ch);
}
#include <syscalls/espi_get_channel_status_mrsh.c>
#include <zephyr/syscalls/espi_get_channel_status_mrsh.c>
static inline int z_vrfy_espi_read_lpc_request(const struct device *dev,
enum lpc_peripheral_opcode op,
@ -44,7 +44,7 @@ static inline int z_vrfy_espi_read_lpc_request(const struct device *dev, @@ -44,7 +44,7 @@ static inline int z_vrfy_espi_read_lpc_request(const struct device *dev,
return ret;
}
#include <syscalls/espi_read_lpc_request_mrsh.c>
#include <zephyr/syscalls/espi_read_lpc_request_mrsh.c>
static inline int z_vrfy_espi_write_lpc_request(const struct device *dev,
enum lpc_peripheral_opcode op,
@ -57,7 +57,7 @@ static inline int z_vrfy_espi_write_lpc_request(const struct device *dev, @@ -57,7 +57,7 @@ static inline int z_vrfy_espi_write_lpc_request(const struct device *dev,
return z_impl_espi_write_lpc_request(dev, op, &data_copy);
}
#include <syscalls/espi_write_lpc_request_mrsh.c>
#include <zephyr/syscalls/espi_write_lpc_request_mrsh.c>
static inline int z_vrfy_espi_send_vwire(const struct device *dev,
enum espi_vwire_signal signal,
@ -67,7 +67,7 @@ static inline int z_vrfy_espi_send_vwire(const struct device *dev, @@ -67,7 +67,7 @@ static inline int z_vrfy_espi_send_vwire(const struct device *dev,
return z_impl_espi_send_vwire(dev, signal, level);
}
#include <syscalls/espi_send_vwire_mrsh.c>
#include <zephyr/syscalls/espi_send_vwire_mrsh.c>
static inline int z_vrfy_espi_receive_vwire(const struct device *dev,
enum espi_vwire_signal signal,
@ -83,7 +83,7 @@ static inline int z_vrfy_espi_receive_vwire(const struct device *dev, @@ -83,7 +83,7 @@ static inline int z_vrfy_espi_receive_vwire(const struct device *dev,
return ret;
}
#include <syscalls/espi_receive_vwire_mrsh.c>
#include <zephyr/syscalls/espi_receive_vwire_mrsh.c>
static inline int z_vrfy_espi_read_request(const struct device *dev,
struct espi_request_packet *req)
@ -103,7 +103,7 @@ static inline int z_vrfy_espi_read_request(const struct device *dev, @@ -103,7 +103,7 @@ static inline int z_vrfy_espi_read_request(const struct device *dev,
return ret;
}
#include <syscalls/espi_read_request_mrsh.c>
#include <zephyr/syscalls/espi_read_request_mrsh.c>
static inline int z_vrfy_espi_write_request(const struct device *dev,
struct espi_request_packet *req)
@ -120,7 +120,7 @@ static inline int z_vrfy_espi_write_request(const struct device *dev, @@ -120,7 +120,7 @@ static inline int z_vrfy_espi_write_request(const struct device *dev,
return ret;
}
#include <syscalls/espi_write_request_mrsh.c>
#include <zephyr/syscalls/espi_write_request_mrsh.c>
static inline int z_vrfy_espi_send_oob(const struct device *dev,
struct espi_oob_packet *pckt)
@ -137,7 +137,7 @@ static inline int z_vrfy_espi_send_oob(const struct device *dev, @@ -137,7 +137,7 @@ static inline int z_vrfy_espi_send_oob(const struct device *dev,
return ret;
}
#include <syscalls/espi_send_oob_mrsh.c>
#include <zephyr/syscalls/espi_send_oob_mrsh.c>
static inline int z_vrfy_espi_receive_oob(const struct device *dev,
struct espi_oob_packet *pckt)
@ -156,7 +156,7 @@ static inline int z_vrfy_espi_receive_oob(const struct device *dev, @@ -156,7 +156,7 @@ static inline int z_vrfy_espi_receive_oob(const struct device *dev,
return ret;
}
#include <syscalls/espi_receive_oob_mrsh.c>
#include <zephyr/syscalls/espi_receive_oob_mrsh.c>
static inline int z_vrfy_espi_read_flash(const struct device *dev,
struct espi_flash_packet *pckt)
@ -175,7 +175,7 @@ static inline int z_vrfy_espi_read_flash(const struct device *dev, @@ -175,7 +175,7 @@ static inline int z_vrfy_espi_read_flash(const struct device *dev,
return ret;
}
#include <syscalls/espi_read_flash_mrsh.c>
#include <zephyr/syscalls/espi_read_flash_mrsh.c>
static inline int z_vrfy_espi_write_flash(const struct device *dev,
struct espi_flash_packet *pckt)
@ -192,7 +192,7 @@ static inline int z_vrfy_espi_write_flash(const struct device *dev, @@ -192,7 +192,7 @@ static inline int z_vrfy_espi_write_flash(const struct device *dev,
return ret;
}
#include <syscalls/espi_write_flash_mrsh.c>
#include <zephyr/syscalls/espi_write_flash_mrsh.c>
static inline int z_vrfy_espi_flash_erase(const struct device *dev,
struct espi_flash_packet *pckt)
@ -209,4 +209,4 @@ static inline int z_vrfy_espi_flash_erase(const struct device *dev, @@ -209,4 +209,4 @@ static inline int z_vrfy_espi_flash_erase(const struct device *dev,
return ret;
}
#include <syscalls/espi_flash_erase_mrsh.c>
#include <zephyr/syscalls/espi_flash_erase_mrsh.c>

22
drivers/flash/flash_handlers.c

@ -16,7 +16,7 @@ static inline int z_vrfy_flash_read(const struct device *dev, off_t offset, @@ -16,7 +16,7 @@ static inline int z_vrfy_flash_read(const struct device *dev, off_t offset,
(void *)data,
len);
}
#include <syscalls/flash_read_mrsh.c>
#include <zephyr/syscalls/flash_read_mrsh.c>
static inline int z_vrfy_flash_write(const struct device *dev, off_t offset,
const void *data, size_t len)
@ -26,7 +26,7 @@ static inline int z_vrfy_flash_write(const struct device *dev, off_t offset, @@ -26,7 +26,7 @@ static inline int z_vrfy_flash_write(const struct device *dev, off_t offset,
return z_impl_flash_write((const struct device *)dev, offset,
(const void *)data, len);
}
#include <syscalls/flash_write_mrsh.c>
#include <zephyr/syscalls/flash_write_mrsh.c>
static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset,
size_t size)
@ -34,21 +34,21 @@ static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset, @@ -34,21 +34,21 @@ static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset,
K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, erase));
return z_impl_flash_erase((const struct device *)dev, offset, size);
}
#include <syscalls/flash_erase_mrsh.c>
#include <zephyr/syscalls/flash_erase_mrsh.c>
static inline size_t z_vrfy_flash_get_write_block_size(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH));
return z_impl_flash_get_write_block_size(dev);
}
#include <syscalls/flash_get_write_block_size_mrsh.c>
#include <zephyr/syscalls/flash_get_write_block_size_mrsh.c>
static inline const struct flash_parameters *z_vrfy_flash_get_parameters(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, get_parameters));
return z_impl_flash_get_parameters(dev);
}
#include <syscalls/flash_get_parameters_mrsh.c>
#include <zephyr/syscalls/flash_get_parameters_mrsh.c>
#ifdef CONFIG_FLASH_PAGE_LAYOUT
static inline int z_vrfy_flash_get_page_info_by_offs(const struct device *dev,
@ -61,7 +61,7 @@ static inline int z_vrfy_flash_get_page_info_by_offs(const struct device *dev, @@ -61,7 +61,7 @@ static inline int z_vrfy_flash_get_page_info_by_offs(const struct device *dev,
offs,
(struct flash_pages_info *)info);
}
#include <syscalls/flash_get_page_info_by_offs_mrsh.c>
#include <zephyr/syscalls/flash_get_page_info_by_offs_mrsh.c>
static inline int z_vrfy_flash_get_page_info_by_idx(const struct device *dev,
uint32_t idx,
@ -73,14 +73,14 @@ static inline int z_vrfy_flash_get_page_info_by_idx(const struct device *dev, @@ -73,14 +73,14 @@ static inline int z_vrfy_flash_get_page_info_by_idx(const struct device *dev,
idx,
(struct flash_pages_info *)info);
}
#include <syscalls/flash_get_page_info_by_idx_mrsh.c>
#include <zephyr/syscalls/flash_get_page_info_by_idx_mrsh.c>
static inline size_t z_vrfy_flash_get_page_count(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, page_layout));
return z_impl_flash_get_page_count((const struct device *)dev);
}
#include <syscalls/flash_get_page_count_mrsh.c>
#include <zephyr/syscalls/flash_get_page_count_mrsh.c>
#endif /* CONFIG_FLASH_PAGE_LAYOUT */
@ -94,7 +94,7 @@ static inline int z_vrfy_flash_sfdp_read(const struct device *dev, @@ -94,7 +94,7 @@ static inline int z_vrfy_flash_sfdp_read(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_WRITE(data, len));
return z_impl_flash_sfdp_read(dev, offset, data, len);
}
#include <syscalls/flash_sfdp_read_mrsh.c>
#include <zephyr/syscalls/flash_sfdp_read_mrsh.c>
static inline int z_vrfy_flash_read_jedec_id(const struct device *dev,
uint8_t *id)
@ -103,7 +103,7 @@ static inline int z_vrfy_flash_read_jedec_id(const struct device *dev, @@ -103,7 +103,7 @@ static inline int z_vrfy_flash_read_jedec_id(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_WRITE(id, 3));
return z_impl_flash_read_jedec_id(dev, id);
}
#include <syscalls/flash_read_jedec_id_mrsh.c>
#include <zephyr/syscalls/flash_read_jedec_id_mrsh.c>
#endif /* CONFIG_FLASH_JESD216_API */
@ -122,6 +122,6 @@ static inline int z_vrfy_flash_ex_op(const struct device *dev, uint16_t code, @@ -122,6 +122,6 @@ static inline int z_vrfy_flash_ex_op(const struct device *dev, uint16_t code,
return z_impl_flash_ex_op(dev, code, in, out);
}
#include <syscalls/flash_ex_op_mrsh.c>
#include <zephyr/syscalls/flash_ex_op_mrsh.c>
#endif /* CONFIG_FLASH_EX_OP_ENABLED */

2
drivers/flash/flash_simulator.c

@ -491,6 +491,6 @@ void *z_vrfy_flash_simulator_get_memory(const struct device *dev, @@ -491,6 +491,6 @@ void *z_vrfy_flash_simulator_get_memory(const struct device *dev,
return z_impl_flash_simulator_get_memory(dev, mock_size);
}
#include <syscalls/flash_simulator_get_memory_mrsh.c>
#include <zephyr/syscalls/flash_simulator_get_memory_mrsh.c>
#endif /* CONFIG_USERSPACE */

2
drivers/flash/nrf_qspi_nor.c

@ -1366,7 +1366,7 @@ void z_vrfy_nrf_qspi_nor_xip_enable(const struct device *dev, bool enable) @@ -1366,7 +1366,7 @@ void z_vrfy_nrf_qspi_nor_xip_enable(const struct device *dev, bool enable)
z_impl_nrf_qspi_nor_xip_enable(dev, enable);
}
#include <syscalls/nrf_qspi_nor_xip_enable_mrsh.c>
#include <zephyr/syscalls/nrf_qspi_nor_xip_enable_mrsh.c>
#endif /* CONFIG_USERSPACE */
static struct qspi_nor_data qspi_nor_dev_data = {

2
drivers/fpga/fpga_shell.c

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
#include <zephyr/sys/printk.h>
#include <zephyr/shell/shell.h>
#include <version.h>
#include <zephyr/version.h>
#include <stdlib.h>
#include <zephyr/drivers/fpga.h>

4
drivers/fuel_gauge/emul_fuel_gauge_syscall_handlers.c

@ -14,7 +14,7 @@ static inline int z_vrfy_emul_fuel_gauge_is_battery_cutoff(const struct emul *ta @@ -14,7 +14,7 @@ static inline int z_vrfy_emul_fuel_gauge_is_battery_cutoff(const struct emul *ta
return z_impl_emul_fuel_gauge_is_battery_cutoff(target, cutoff);
}
#include <syscalls/emul_fuel_gauge_is_battery_cutoff_mrsh.c>
#include <zephyr/syscalls/emul_fuel_gauge_is_battery_cutoff_mrsh.c>
static inline int z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul *target,
uint32_t uV, int uA)
@ -22,4 +22,4 @@ static inline int z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul @@ -22,4 +22,4 @@ static inline int z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul
return z_impl_emul_fuel_gauge_set_battery_charging(target, uV, uA);
}
#include <syscalls/emul_fuel_gauge_set_battery_charging_mrsh.c>
#include <zephyr/syscalls/emul_fuel_gauge_set_battery_charging_mrsh.c>

12
drivers/fuel_gauge/fuel_gauge_syscall_handlers.c

@ -24,7 +24,7 @@ static inline int z_vrfy_fuel_gauge_get_prop(const struct device *dev, fuel_gaug @@ -24,7 +24,7 @@ static inline int z_vrfy_fuel_gauge_get_prop(const struct device *dev, fuel_gaug
return ret;
}
#include <syscalls/fuel_gauge_get_prop_mrsh.c>
#include <zephyr/syscalls/fuel_gauge_get_prop_mrsh.c>
static inline int z_vrfy_fuel_gauge_get_props(const struct device *dev, fuel_gauge_prop_t *props,
union fuel_gauge_prop_val *vals, size_t len)
@ -44,7 +44,7 @@ static inline int z_vrfy_fuel_gauge_get_props(const struct device *dev, fuel_gau @@ -44,7 +44,7 @@ static inline int z_vrfy_fuel_gauge_get_props(const struct device *dev, fuel_gau
return ret;
}
#include <syscalls/fuel_gauge_get_props_mrsh.c>
#include <zephyr/syscalls/fuel_gauge_get_props_mrsh.c>
static inline int z_vrfy_fuel_gauge_set_prop(const struct device *dev, fuel_gauge_prop_t prop,
union fuel_gauge_prop_val val)
@ -56,7 +56,7 @@ static inline int z_vrfy_fuel_gauge_set_prop(const struct device *dev, fuel_gaug @@ -56,7 +56,7 @@ static inline int z_vrfy_fuel_gauge_set_prop(const struct device *dev, fuel_gaug
return ret;
}
#include <syscalls/fuel_gauge_set_prop_mrsh.c>
#include <zephyr/syscalls/fuel_gauge_set_prop_mrsh.c>
static inline int z_vrfy_fuel_gauge_set_props(const struct device *dev, fuel_gauge_prop_t *props,
union fuel_gauge_prop_val *vals, size_t len)
@ -77,7 +77,7 @@ static inline int z_vrfy_fuel_gauge_set_props(const struct device *dev, fuel_gau @@ -77,7 +77,7 @@ static inline int z_vrfy_fuel_gauge_set_props(const struct device *dev, fuel_gau
return ret;
}
#include <syscalls/fuel_gauge_set_props_mrsh.c>
#include <zephyr/syscalls/fuel_gauge_set_props_mrsh.c>
static inline int z_vrfy_fuel_gauge_get_buffer_prop(const struct device *dev,
fuel_gauge_prop_t prop, void *dst,
@ -92,7 +92,7 @@ static inline int z_vrfy_fuel_gauge_get_buffer_prop(const struct device *dev, @@ -92,7 +92,7 @@ static inline int z_vrfy_fuel_gauge_get_buffer_prop(const struct device *dev,
return ret;
}
#include <syscalls/fuel_gauge_get_buffer_prop_mrsh.c>
#include <zephyr/syscalls/fuel_gauge_get_buffer_prop_mrsh.c>
static inline int z_vrfy_fuel_gauge_battery_cutoff(const struct device *dev)
{
@ -101,4 +101,4 @@ static inline int z_vrfy_fuel_gauge_battery_cutoff(const struct device *dev) @@ -101,4 +101,4 @@ static inline int z_vrfy_fuel_gauge_battery_cutoff(const struct device *dev)
return z_impl_fuel_gauge_battery_cutoff(dev);
}
#include <syscalls/fuel_gauge_battery_cutoff_mrsh.c>
#include <zephyr/syscalls/fuel_gauge_battery_cutoff_mrsh.c>

20
drivers/gpio/gpio_handlers.c

@ -16,7 +16,7 @@ static inline int z_vrfy_gpio_pin_configure(const struct device *port, @@ -16,7 +16,7 @@ static inline int z_vrfy_gpio_pin_configure(const struct device *port,
pin,
flags);
}
#include <syscalls/gpio_pin_configure_mrsh.c>
#include <zephyr/syscalls/gpio_pin_configure_mrsh.c>
#ifdef CONFIG_GPIO_GET_CONFIG
static inline int z_vrfy_gpio_pin_get_config(const struct device *port,
@ -28,7 +28,7 @@ static inline int z_vrfy_gpio_pin_get_config(const struct device *port, @@ -28,7 +28,7 @@ static inline int z_vrfy_gpio_pin_get_config(const struct device *port,
return z_impl_gpio_pin_get_config(port, pin, flags);
}
#include <syscalls/gpio_pin_get_config_mrsh.c>
#include <zephyr/syscalls/gpio_pin_get_config_mrsh.c>
#endif
static inline int z_vrfy_gpio_port_get_raw(const struct device *port,
@ -39,7 +39,7 @@ static inline int z_vrfy_gpio_port_get_raw(const struct device *port, @@ -39,7 +39,7 @@ static inline int z_vrfy_gpio_port_get_raw(const struct device *port,
return z_impl_gpio_port_get_raw((const struct device *)port,
(gpio_port_value_t *)value);
}
#include <syscalls/gpio_port_get_raw_mrsh.c>
#include <zephyr/syscalls/gpio_port_get_raw_mrsh.c>
static inline int z_vrfy_gpio_port_set_masked_raw(const struct device *port,
gpio_port_pins_t mask,
@ -50,7 +50,7 @@ static inline int z_vrfy_gpio_port_set_masked_raw(const struct device *port, @@ -50,7 +50,7 @@ static inline int z_vrfy_gpio_port_set_masked_raw(const struct device *port,
mask,
value);
}
#include <syscalls/gpio_port_set_masked_raw_mrsh.c>
#include <zephyr/syscalls/gpio_port_set_masked_raw_mrsh.c>
static inline int z_vrfy_gpio_port_set_bits_raw(const struct device *port,
gpio_port_pins_t pins)
@ -59,7 +59,7 @@ static inline int z_vrfy_gpio_port_set_bits_raw(const struct device *port, @@ -59,7 +59,7 @@ static inline int z_vrfy_gpio_port_set_bits_raw(const struct device *port,
return z_impl_gpio_port_set_bits_raw((const struct device *)port,
pins);
}
#include <syscalls/gpio_port_set_bits_raw_mrsh.c>
#include <zephyr/syscalls/gpio_port_set_bits_raw_mrsh.c>
static inline int z_vrfy_gpio_port_clear_bits_raw(const struct device *port,
gpio_port_pins_t pins)
@ -68,7 +68,7 @@ static inline int z_vrfy_gpio_port_clear_bits_raw(const struct device *port, @@ -68,7 +68,7 @@ static inline int z_vrfy_gpio_port_clear_bits_raw(const struct device *port,
return z_impl_gpio_port_clear_bits_raw((const struct device *)port,
pins);
}
#include <syscalls/gpio_port_clear_bits_raw_mrsh.c>
#include <zephyr/syscalls/gpio_port_clear_bits_raw_mrsh.c>
static inline int z_vrfy_gpio_port_toggle_bits(const struct device *port,
gpio_port_pins_t pins)
@ -76,7 +76,7 @@ static inline int z_vrfy_gpio_port_toggle_bits(const struct device *port, @@ -76,7 +76,7 @@ static inline int z_vrfy_gpio_port_toggle_bits(const struct device *port,
K_OOPS(K_SYSCALL_DRIVER_GPIO(port, port_toggle_bits));
return z_impl_gpio_port_toggle_bits((const struct device *)port, pins);
}
#include <syscalls/gpio_port_toggle_bits_mrsh.c>
#include <zephyr/syscalls/gpio_port_toggle_bits_mrsh.c>
static inline int z_vrfy_gpio_pin_interrupt_configure(const struct device *port,
gpio_pin_t pin,
@ -87,7 +87,7 @@ static inline int z_vrfy_gpio_pin_interrupt_configure(const struct device *port, @@ -87,7 +87,7 @@ static inline int z_vrfy_gpio_pin_interrupt_configure(const struct device *port,
pin,
flags);
}
#include <syscalls/gpio_pin_interrupt_configure_mrsh.c>
#include <zephyr/syscalls/gpio_pin_interrupt_configure_mrsh.c>
static inline int z_vrfy_gpio_get_pending_int(const struct device *dev)
{
@ -95,7 +95,7 @@ static inline int z_vrfy_gpio_get_pending_int(const struct device *dev) @@ -95,7 +95,7 @@ static inline int z_vrfy_gpio_get_pending_int(const struct device *dev)
return z_impl_gpio_get_pending_int((const struct device *)dev);
}
#include <syscalls/gpio_get_pending_int_mrsh.c>
#include <zephyr/syscalls/gpio_get_pending_int_mrsh.c>
#ifdef CONFIG_GPIO_GET_DIRECTION
static inline int z_vrfy_gpio_port_get_direction(const struct device *dev, gpio_port_pins_t map,
@ -114,5 +114,5 @@ static inline int z_vrfy_gpio_port_get_direction(const struct device *dev, gpio_ @@ -114,5 +114,5 @@ static inline int z_vrfy_gpio_port_get_direction(const struct device *dev, gpio_
return z_impl_gpio_port_get_direction(dev, map, inputs, outputs);
}
#include <syscalls/gpio_port_get_direction_mrsh.c>
#include <zephyr/syscalls/gpio_port_get_direction_mrsh.c>
#endif /* CONFIG_GPIO_GET_DIRECTION */

10
drivers/hwinfo/hwinfo_handlers.c

@ -13,7 +13,7 @@ ssize_t z_vrfy_hwinfo_get_device_id(uint8_t *buffer, size_t length) @@ -13,7 +13,7 @@ ssize_t z_vrfy_hwinfo_get_device_id(uint8_t *buffer, size_t length)
return z_impl_hwinfo_get_device_id((uint8_t *)buffer, (size_t)length);
}
#include <syscalls/hwinfo_get_device_id_mrsh.c>
#include <zephyr/syscalls/hwinfo_get_device_id_mrsh.c>
ssize_t z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer)
{
@ -21,7 +21,7 @@ ssize_t z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer) @@ -21,7 +21,7 @@ ssize_t z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer)
return z_impl_hwinfo_get_device_eui64((uint8_t *)buffer);
}
#include <syscalls/hwinfo_get_device_eui64_mrsh.c>
#include <zephyr/syscalls/hwinfo_get_device_eui64_mrsh.c>
int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause)
{
@ -33,14 +33,14 @@ int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause) @@ -33,14 +33,14 @@ int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause)
return ret;
}
#include <syscalls/hwinfo_get_reset_cause_mrsh.c>
#include <zephyr/syscalls/hwinfo_get_reset_cause_mrsh.c>
int z_vrfy_hwinfo_clear_reset_cause(void)
{
return z_impl_hwinfo_clear_reset_cause();
}
#include <syscalls/hwinfo_clear_reset_cause_mrsh.c>
#include <zephyr/syscalls/hwinfo_clear_reset_cause_mrsh.c>
int z_vrfy_hwinfo_get_supported_reset_cause(uint32_t *supported)
{
@ -52,4 +52,4 @@ int z_vrfy_hwinfo_get_supported_reset_cause(uint32_t *supported) @@ -52,4 +52,4 @@ int z_vrfy_hwinfo_get_supported_reset_cause(uint32_t *supported)
return ret;
}
#include <syscalls/hwinfo_get_supported_reset_cause_mrsh.c>
#include <zephyr/syscalls/hwinfo_get_supported_reset_cause_mrsh.c>

8
drivers/hwspinlock/hwspinlock_handlers.c

@ -13,7 +13,7 @@ static inline int z_vrfy_hwspinlock_trylock(const struct device *dev, uint32_t i @@ -13,7 +13,7 @@ static inline int z_vrfy_hwspinlock_trylock(const struct device *dev, uint32_t i
return z_impl_hwspinlock_trylock(dev, id);
}
#include <syscalls/hwspinlock_trylock_mrsh.c>
#include <zephyr/syscalls/hwspinlock_trylock_mrsh.c>
static inline void z_vrfy_hwspinlock_lock(const struct device *dev, uint32_t id)
{
@ -21,7 +21,7 @@ static inline void z_vrfy_hwspinlock_lock(const struct device *dev, uint32_t id) @@ -21,7 +21,7 @@ static inline void z_vrfy_hwspinlock_lock(const struct device *dev, uint32_t id)
z_impl_hwspinlock_lock(dev, id);
}
#include <syscalls/hwspinlock_lock_mrsh.c>
#include <zephyr/syscalls/hwspinlock_lock_mrsh.c>
static inline void z_vrfy_hwspinlock_unlock(const struct device *dev, uint32_t id)
{
@ -29,7 +29,7 @@ static inline void z_vrfy_hwspinlock_unlock(const struct device *dev, uint32_t i @@ -29,7 +29,7 @@ static inline void z_vrfy_hwspinlock_unlock(const struct device *dev, uint32_t i
z_impl_hwspinlock_unlock(dev, id);
}
#include <syscalls/hwspinlock_unlock_mrsh.c>
#include <zephyr/syscalls/hwspinlock_unlock_mrsh.c>
static inline uint32_t z_vrfy_hwspinlock_get_max_id(const struct device *dev)
{
@ -37,4 +37,4 @@ static inline uint32_t z_vrfy_hwspinlock_get_max_id(const struct device *dev) @@ -37,4 +37,4 @@ static inline uint32_t z_vrfy_hwspinlock_get_max_id(const struct device *dev)
return z_impl_hwspinlock_get_max_id(dev);
}
#include <syscalls/hwspinlock_get_max_id_mrsh.c>
#include <zephyr/syscalls/hwspinlock_get_max_id_mrsh.c>

12
drivers/i2c/i2c_handlers.c

@ -14,7 +14,7 @@ static inline int z_vrfy_i2c_configure(const struct device *dev, @@ -14,7 +14,7 @@ static inline int z_vrfy_i2c_configure(const struct device *dev,
K_OOPS(K_SYSCALL_DRIVER_I2C(dev, configure));
return z_impl_i2c_configure((const struct device *)dev, dev_config);
}
#include <syscalls/i2c_configure_mrsh.c>
#include <zephyr/syscalls/i2c_configure_mrsh.c>
static inline int z_vrfy_i2c_get_config(const struct device *dev,
uint32_t *dev_config)
@ -24,7 +24,7 @@ static inline int z_vrfy_i2c_get_config(const struct device *dev, @@ -24,7 +24,7 @@ static inline int z_vrfy_i2c_get_config(const struct device *dev,
return z_impl_i2c_get_config(dev, dev_config);
}
#include <syscalls/i2c_get_config_mrsh.c>
#include <zephyr/syscalls/i2c_get_config_mrsh.c>
static uint32_t copy_msgs_and_transfer(const struct device *dev,
const struct i2c_msg *msgs,
@ -69,25 +69,25 @@ static inline int z_vrfy_i2c_transfer(const struct device *dev, @@ -69,25 +69,25 @@ static inline int z_vrfy_i2c_transfer(const struct device *dev,
(struct i2c_msg *)msgs,
(uint8_t)num_msgs, (uint16_t)addr);
}
#include <syscalls/i2c_transfer_mrsh.c>
#include <zephyr/syscalls/i2c_transfer_mrsh.c>
static inline int z_vrfy_i2c_target_driver_register(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_I2C));
return z_impl_i2c_target_driver_register(dev);
}
#include <syscalls/i2c_target_driver_register_mrsh.c>
#include <zephyr/syscalls/i2c_target_driver_register_mrsh.c>
static inline int z_vrfy_i2c_target_driver_unregister(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_I2C));
return z_impl_i2c_target_driver_unregister(dev);
}
#include <syscalls/i2c_target_driver_unregister_mrsh.c>
#include <zephyr/syscalls/i2c_target_driver_unregister_mrsh.c>
static inline int z_vrfy_i2c_recover_bus(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_I2C));
return z_impl_i2c_recover_bus(dev);
}
#include <syscalls/i2c_recover_bus_mrsh.c>
#include <zephyr/syscalls/i2c_recover_bus_mrsh.c>

8
drivers/i2s/i2s_handlers.c

@ -41,7 +41,7 @@ static inline int z_vrfy_i2s_configure(const struct device *dev, @@ -41,7 +41,7 @@ static inline int z_vrfy_i2s_configure(const struct device *dev,
out:
return ret;
}
#include <syscalls/i2s_configure_mrsh.c>
#include <zephyr/syscalls/i2s_configure_mrsh.c>
static inline int z_vrfy_i2s_buf_read(const struct device *dev,
void *buf, size_t *size)
@ -74,7 +74,7 @@ static inline int z_vrfy_i2s_buf_read(const struct device *dev, @@ -74,7 +74,7 @@ static inline int z_vrfy_i2s_buf_read(const struct device *dev,
return ret;
}
#include <syscalls/i2s_buf_read_mrsh.c>
#include <zephyr/syscalls/i2s_buf_read_mrsh.c>
static inline int z_vrfy_i2s_buf_write(const struct device *dev,
void *buf, size_t size)
@ -111,7 +111,7 @@ static inline int z_vrfy_i2s_buf_write(const struct device *dev, @@ -111,7 +111,7 @@ static inline int z_vrfy_i2s_buf_write(const struct device *dev,
return ret;
}
#include <syscalls/i2s_buf_write_mrsh.c>
#include <zephyr/syscalls/i2s_buf_write_mrsh.c>
static inline int z_vrfy_i2s_trigger(const struct device *dev,
enum i2s_dir dir,
@ -121,4 +121,4 @@ static inline int z_vrfy_i2s_trigger(const struct device *dev, @@ -121,4 +121,4 @@ static inline int z_vrfy_i2s_trigger(const struct device *dev,
return z_impl_i2s_trigger((const struct device *)dev, dir, cmd);
}
#include <syscalls/i2s_trigger_mrsh.c>
#include <zephyr/syscalls/i2s_trigger_mrsh.c>

4
drivers/i3c/i3c_handlers.c

@ -35,7 +35,7 @@ static inline int z_vrfy_i3c_do_ccc(const struct device *dev, @@ -35,7 +35,7 @@ static inline int z_vrfy_i3c_do_ccc(const struct device *dev,
return z_impl_i3c_do_ccc(dev, payload);
}
#include <syscalls/i3c_do_ccc_mrsh.c>
#include <zephyr/syscalls/i3c_do_ccc_mrsh.c>
static uint32_t copy_i3c_msgs_and_transfer(struct i3c_device_desc *target,
const struct i3c_msg *msgs,
@ -79,4 +79,4 @@ static inline int z_vrfy_i3c_transfer(struct i3c_device_desc *target, @@ -79,4 +79,4 @@ static inline int z_vrfy_i3c_transfer(struct i3c_device_desc *target,
(struct i3c_msg *)msgs,
(uint8_t)num_msgs);
}
#include <syscalls/i3c_transfer_mrsh.c>
#include <zephyr/syscalls/i3c_transfer_mrsh.c>

8
drivers/ipm/ipm_handlers.c

@ -16,25 +16,25 @@ static inline int z_vrfy_ipm_send(const struct device *dev, int wait, @@ -16,25 +16,25 @@ static inline int z_vrfy_ipm_send(const struct device *dev, int wait,
return z_impl_ipm_send((const struct device *)dev, wait, id,
(const void *)data, size);
}
#include <syscalls/ipm_send_mrsh.c>
#include <zephyr/syscalls/ipm_send_mrsh.c>
static inline int z_vrfy_ipm_max_data_size_get(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_IPM(dev, max_data_size_get));
return z_impl_ipm_max_data_size_get((const struct device *)dev);
}
#include <syscalls/ipm_max_data_size_get_mrsh.c>
#include <zephyr/syscalls/ipm_max_data_size_get_mrsh.c>
static inline uint32_t z_vrfy_ipm_max_id_val_get(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_IPM(dev, max_id_val_get));
return z_impl_ipm_max_id_val_get((const struct device *)dev);
}
#include <syscalls/ipm_max_id_val_get_mrsh.c>
#include <zephyr/syscalls/ipm_max_id_val_get_mrsh.c>
static inline int z_vrfy_ipm_set_enabled(const struct device *dev, int enable)
{
K_OOPS(K_SYSCALL_DRIVER_IPM(dev, set_enabled));
return z_impl_ipm_set_enabled((const struct device *)dev, enable);
}
#include <syscalls/ipm_set_enabled_mrsh.c>
#include <zephyr/syscalls/ipm_set_enabled_mrsh.c>

6
drivers/kscan/kscan_handlers.c

@ -15,7 +15,7 @@ static inline int z_vrfy_kscan_config(const struct device *dev, @@ -15,7 +15,7 @@ static inline int z_vrfy_kscan_config(const struct device *dev,
"callback cannot be set from user mode"));
return z_impl_kscan_config((const struct device *)dev, callback_isr);
}
#include <syscalls/kscan_config_mrsh.c>
#include <zephyr/syscalls/kscan_config_mrsh.c>
static inline int z_vrfy_kscan_disable_callback(const struct device *dev)
{
@ -23,7 +23,7 @@ static inline int z_vrfy_kscan_disable_callback(const struct device *dev) @@ -23,7 +23,7 @@ static inline int z_vrfy_kscan_disable_callback(const struct device *dev)
return z_impl_kscan_disable_callback((const struct device *)dev);
}
#include <syscalls/kscan_disable_callback_mrsh.c>
#include <zephyr/syscalls/kscan_disable_callback_mrsh.c>
static int z_vrfy_kscan_enable_callback(const struct device *dev)
{
@ -31,4 +31,4 @@ static int z_vrfy_kscan_enable_callback(const struct device *dev) @@ -31,4 +31,4 @@ static int z_vrfy_kscan_enable_callback(const struct device *dev)
return z_impl_kscan_enable_callback((const struct device *)dev);
}
#include <syscalls/kscan_enable_callback_mrsh.c>
#include <zephyr/syscalls/kscan_enable_callback_mrsh.c>

16
drivers/led/led_handlers.c

@ -14,7 +14,7 @@ static inline int z_vrfy_led_blink(const struct device *dev, uint32_t led, @@ -14,7 +14,7 @@ static inline int z_vrfy_led_blink(const struct device *dev, uint32_t led,
return z_impl_led_blink((const struct device *)dev, led, delay_on,
delay_off);
}
#include <syscalls/led_blink_mrsh.c>
#include <zephyr/syscalls/led_blink_mrsh.c>
static inline int z_vrfy_led_get_info(const struct device *dev, uint32_t led,
const struct led_info **info)
@ -23,7 +23,7 @@ static inline int z_vrfy_led_get_info(const struct device *dev, uint32_t led, @@ -23,7 +23,7 @@ static inline int z_vrfy_led_get_info(const struct device *dev, uint32_t led,
K_OOPS(K_SYSCALL_MEMORY_WRITE(info, sizeof(*info)));
return z_impl_led_get_info(dev, led, info);
}
#include <syscalls/led_get_info_mrsh.c>
#include <zephyr/syscalls/led_get_info_mrsh.c>
static inline int z_vrfy_led_set_brightness(const struct device *dev,
uint32_t led,
@ -33,7 +33,7 @@ static inline int z_vrfy_led_set_brightness(const struct device *dev, @@ -33,7 +33,7 @@ static inline int z_vrfy_led_set_brightness(const struct device *dev,
return z_impl_led_set_brightness((const struct device *)dev, led,
value);
}
#include <syscalls/led_set_brightness_mrsh.c>
#include <zephyr/syscalls/led_set_brightness_mrsh.c>
static inline int
z_vrfy_led_write_channels(const struct device *dev, uint32_t start_channel,
@ -43,7 +43,7 @@ z_vrfy_led_write_channels(const struct device *dev, uint32_t start_channel, @@ -43,7 +43,7 @@ z_vrfy_led_write_channels(const struct device *dev, uint32_t start_channel,
K_OOPS(K_SYSCALL_MEMORY_READ(buf, num_channels));
return z_impl_led_write_channels(dev, start_channel, num_channels, buf);
}
#include <syscalls/led_write_channels_mrsh.c>
#include <zephyr/syscalls/led_write_channels_mrsh.c>
static inline int z_vrfy_led_set_channel(const struct device *dev,
uint32_t channel, uint8_t value)
@ -51,7 +51,7 @@ static inline int z_vrfy_led_set_channel(const struct device *dev, @@ -51,7 +51,7 @@ static inline int z_vrfy_led_set_channel(const struct device *dev,
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_LED));
return z_impl_led_set_channel(dev, channel, value);
}
#include <syscalls/led_set_channel_mrsh.c>
#include <zephyr/syscalls/led_set_channel_mrsh.c>
static inline int z_vrfy_led_set_color(const struct device *dev, uint32_t led,
uint8_t num_colors, const uint8_t *color)
@ -60,18 +60,18 @@ static inline int z_vrfy_led_set_color(const struct device *dev, uint32_t led, @@ -60,18 +60,18 @@ static inline int z_vrfy_led_set_color(const struct device *dev, uint32_t led,
K_OOPS(K_SYSCALL_MEMORY_READ(color, num_colors));
return z_impl_led_set_color(dev, led, num_colors, color);
}
#include <syscalls/led_set_color_mrsh.c>
#include <zephyr/syscalls/led_set_color_mrsh.c>
static inline int z_vrfy_led_on(const struct device *dev, uint32_t led)
{
K_OOPS(K_SYSCALL_DRIVER_LED(dev, on));
return z_impl_led_on((const struct device *)dev, led);
}
#include <syscalls/led_on_mrsh.c>
#include <zephyr/syscalls/led_on_mrsh.c>
static inline int z_vrfy_led_off(const struct device *dev, uint32_t led)
{
K_OOPS(K_SYSCALL_DRIVER_LED(dev, off));
return z_impl_led_off((const struct device *)dev, led);
}
#include <syscalls/led_off_mrsh.c>
#include <zephyr/syscalls/led_off_mrsh.c>

8
drivers/mbox/mbox_handlers.c

@ -17,7 +17,7 @@ static inline int z_vrfy_mbox_send(const struct device *dev, @@ -17,7 +17,7 @@ static inline int z_vrfy_mbox_send(const struct device *dev,
return z_impl_mbox_send(dev, channel_id, msg);
}
#include <syscalls/mbox_send_mrsh.c>
#include <zephyr/syscalls/mbox_send_mrsh.c>
static inline int z_vrfy_mbox_mtu_get(const struct device *dev)
{
@ -25,7 +25,7 @@ static inline int z_vrfy_mbox_mtu_get(const struct device *dev) @@ -25,7 +25,7 @@ static inline int z_vrfy_mbox_mtu_get(const struct device *dev)
return z_impl_mbox_mtu_get(dev);
}
#include <syscalls/mbox_mtu_get_mrsh.c>
#include <zephyr/syscalls/mbox_mtu_get_mrsh.c>
static inline uint32_t z_vrfy_mbox_max_channels_get(const struct device *dev)
{
@ -33,7 +33,7 @@ static inline uint32_t z_vrfy_mbox_max_channels_get(const struct device *dev) @@ -33,7 +33,7 @@ static inline uint32_t z_vrfy_mbox_max_channels_get(const struct device *dev)
return z_impl_mbox_max_channels_get(dev);
}
#include <syscalls/mbox_max_channels_get_mrsh.c>
#include <zephyr/syscalls/mbox_max_channels_get_mrsh.c>
static inline int z_vrfy_mbox_set_enabled(const struct device *dev,
mbox_channel_id_t channel_id,
@ -43,4 +43,4 @@ static inline int z_vrfy_mbox_set_enabled(const struct device *dev, @@ -43,4 +43,4 @@ static inline int z_vrfy_mbox_set_enabled(const struct device *dev,
return z_impl_mbox_set_enabled(dev, channel_id, enabled);
}
#include <syscalls/mbox_set_enabled_mrsh.c>
#include <zephyr/syscalls/mbox_set_enabled_mrsh.c>

4
drivers/misc/devmux/devmux.c

@ -94,7 +94,7 @@ ssize_t z_vrfy_devmux_select_get(const struct device *dev) @@ -94,7 +94,7 @@ ssize_t z_vrfy_devmux_select_get(const struct device *dev)
{
return z_impl_devmux_select_get(dev);
}
#include <syscalls/devmux_select_get_mrsh.c>
#include <zephyr/syscalls/devmux_select_get_mrsh.c>
#endif
int z_impl_devmux_select_set(struct device *dev, size_t index)
@ -124,7 +124,7 @@ int z_vrfy_devmux_select_set(struct device *dev, size_t index) @@ -124,7 +124,7 @@ int z_vrfy_devmux_select_set(struct device *dev, size_t index)
{
return z_impl_devmux_select_set(dev, index);
}
#include <syscalls/devmux_select_set_mrsh.c>
#include <zephyr/syscalls/devmux_select_set_mrsh.c>
#endif
static int devmux_init(struct device *const dev)

12
drivers/misc/timeaware_gpio/timeaware_gpio_handlers.c

@ -12,7 +12,7 @@ static inline int z_vrfy_tgpio_port_get_time(const struct device *port, uint64_t @@ -12,7 +12,7 @@ static inline int z_vrfy_tgpio_port_get_time(const struct device *port, uint64_t
K_OOPS(Z_SYSCALL_MEMORY_WRITE(current_time, sizeof(uint64_t)));
return z_impl_tgpio_port_get_time((const struct device *)port, (uint64_t *)current_time);
}
#include <syscalls/tgpio_port_get_time_mrsh.c>
#include <zephyr/syscalls/tgpio_port_get_time_mrsh.c>
static inline int z_vrfy_tgpio_port_get_cycles_per_second(const struct device *port,
uint32_t *cycles)
@ -22,7 +22,7 @@ static inline int z_vrfy_tgpio_port_get_cycles_per_second(const struct device *p @@ -22,7 +22,7 @@ static inline int z_vrfy_tgpio_port_get_cycles_per_second(const struct device *p
return z_impl_tgpio_port_get_cycles_per_second((const struct device *)port,
(uint32_t *)cycles);
}
#include <syscalls/tgpio_port_get_cycles_per_second_mrsh.c>
#include <zephyr/syscalls/tgpio_port_get_cycles_per_second_mrsh.c>
static inline int z_vrfy_tgpio_pin_periodic_output(const struct device *port, uint32_t pin,
uint64_t start_time, uint64_t repeat_interval,
@ -32,14 +32,14 @@ static inline int z_vrfy_tgpio_pin_periodic_output(const struct device *port, ui @@ -32,14 +32,14 @@ static inline int z_vrfy_tgpio_pin_periodic_output(const struct device *port, ui
return z_impl_tgpio_pin_periodic_output((const struct device *)port, pin, start_time,
repeat_interval, periodic_enable);
}
#include <syscalls/tgpio_pin_periodic_output_mrsh.c>
#include <zephyr/syscalls/tgpio_pin_periodic_output_mrsh.c>
static inline int z_vrfy_tgpio_pin_disable(const struct device *port, uint32_t pin)
{
K_OOPS(Z_SYSCALL_DRIVER_TGPIO(port, pin_disable));
return z_impl_tgpio_pin_disable((const struct device *)port, pin);
}
#include <syscalls/tgpio_pin_disable_mrsh.c>
#include <zephyr/syscalls/tgpio_pin_disable_mrsh.c>
static inline int z_vrfy_tgpio_pin_config_ext_timestamp(const struct device *port, uint32_t pin,
uint32_t event_polarity)
@ -48,7 +48,7 @@ static inline int z_vrfy_tgpio_pin_config_ext_timestamp(const struct device *por @@ -48,7 +48,7 @@ static inline int z_vrfy_tgpio_pin_config_ext_timestamp(const struct device *por
return z_impl_tgpio_pin_config_ext_timestamp((const struct device *)port, pin,
event_polarity);
}
#include <syscalls/tgpio_pin_config_ext_timestamp_mrsh.c>
#include <zephyr/syscalls/tgpio_pin_config_ext_timestamp_mrsh.c>
static inline int z_vrfy_tgpio_pin_read_ts_ec(const struct device *port, uint32_t pin,
uint64_t *timestamp, uint64_t *event_count)
@ -57,4 +57,4 @@ static inline int z_vrfy_tgpio_pin_read_ts_ec(const struct device *port, uint32_ @@ -57,4 +57,4 @@ static inline int z_vrfy_tgpio_pin_read_ts_ec(const struct device *port, uint32_
return z_impl_tgpio_pin_read_ts_ec((const struct device *)port, pin, (uint64_t *)timestamp,
(uint64_t *)event_count);
}
#include <syscalls/tgpio_pin_read_ts_ec_mrsh.c>
#include <zephyr/syscalls/tgpio_pin_read_ts_ec_mrsh.c>

8
drivers/peci/peci_handlers.c

@ -15,7 +15,7 @@ static inline int z_vrfy_peci_config(const struct device *dev, @@ -15,7 +15,7 @@ static inline int z_vrfy_peci_config(const struct device *dev,
return z_impl_peci_config(dev, bitrate);
}
#include <syscalls/peci_config_mrsh.c>
#include <zephyr/syscalls/peci_config_mrsh.c>
static inline int z_vrfy_peci_enable(const struct device *dev)
{
@ -23,7 +23,7 @@ static inline int z_vrfy_peci_enable(const struct device *dev) @@ -23,7 +23,7 @@ static inline int z_vrfy_peci_enable(const struct device *dev)
return z_impl_peci_enable(dev);
}
#include <syscalls/peci_enable_mrsh.c>
#include <zephyr/syscalls/peci_enable_mrsh.c>
static inline int z_vrfy_peci_disable(const struct device *dev)
{
@ -31,7 +31,7 @@ static inline int z_vrfy_peci_disable(const struct device *dev) @@ -31,7 +31,7 @@ static inline int z_vrfy_peci_disable(const struct device *dev)
return z_impl_peci_disable(dev);
}
#include <syscalls/peci_disable_mrsh.c>
#include <zephyr/syscalls/peci_disable_mrsh.c>
static inline int z_vrfy_peci_transfer(const struct device *dev,
struct peci_msg *msg)
@ -43,4 +43,4 @@ static inline int z_vrfy_peci_transfer(const struct device *dev, @@ -43,4 +43,4 @@ static inline int z_vrfy_peci_transfer(const struct device *dev,
return z_impl_peci_transfer(dev, &msg_copy);
}
#include <syscalls/peci_transfer_mrsh.c>
#include <zephyr/syscalls/peci_transfer_mrsh.c>

10
drivers/ps2/ps2_handlers.c

@ -15,14 +15,14 @@ static inline int z_vrfy_ps2_config(const struct device *dev, @@ -15,14 +15,14 @@ static inline int z_vrfy_ps2_config(const struct device *dev,
"callback not be set from user mode"));
return z_impl_ps2_config(dev, callback_isr);
}
#include <syscalls/ps2_config_mrsh.c>
#include <zephyr/syscalls/ps2_config_mrsh.c>
static inline int z_vrfy_ps2_write(const struct device *dev, uint8_t value)
{
K_OOPS(K_SYSCALL_DRIVER_PS2(dev, write));
return z_impl_ps2_write(dev, value);
}
#include <syscalls/ps2_write_mrsh.c>
#include <zephyr/syscalls/ps2_write_mrsh.c>
static inline int z_vrfy_ps2_read(const struct device *dev, uint8_t *value)
{
@ -30,18 +30,18 @@ static inline int z_vrfy_ps2_read(const struct device *dev, uint8_t *value) @@ -30,18 +30,18 @@ static inline int z_vrfy_ps2_read(const struct device *dev, uint8_t *value)
K_OOPS(K_SYSCALL_MEMORY_WRITE(value, sizeof(uint8_t)));
return z_impl_ps2_read(dev, value);
}
#include <syscalls/ps2_read_mrsh.c>
#include <zephyr/syscalls/ps2_read_mrsh.c>
static inline int z_vrfy_ps2_enable_callback(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_PS2(dev, enable_callback));
return z_impl_ps2_enable_callback(dev);
}
#include <syscalls/ps2_enable_callback_mrsh.c>
#include <zephyr/syscalls/ps2_enable_callback_mrsh.c>
static inline int z_vrfy_ps2_disable_callback(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_PS2(dev, disable_callback));
return z_impl_ps2_disable_callback(dev);
}
#include <syscalls/ps2_disable_callback_mrsh.c>
#include <zephyr/syscalls/ps2_disable_callback_mrsh.c>

2
drivers/ptp_clock/ptp_clock.c

@ -28,5 +28,5 @@ int z_vrfy_ptp_clock_get(const struct device *dev, @@ -28,5 +28,5 @@ int z_vrfy_ptp_clock_get(const struct device *dev,
return ret;
}
#include <syscalls/ptp_clock_get_mrsh.c>
#include <zephyr/syscalls/ptp_clock_get_mrsh.c>
#endif /* CONFIG_USERSPACE */

10
drivers/pwm/pwm_handlers.c

@ -16,7 +16,7 @@ static inline int z_vrfy_pwm_set_cycles(const struct device *dev, @@ -16,7 +16,7 @@ static inline int z_vrfy_pwm_set_cycles(const struct device *dev,
return z_impl_pwm_set_cycles((const struct device *)dev, channel,
period, pulse, flags);
}
#include <syscalls/pwm_set_cycles_mrsh.c>
#include <zephyr/syscalls/pwm_set_cycles_mrsh.c>
static inline int z_vrfy_pwm_get_cycles_per_sec(const struct device *dev,
uint32_t channel,
@ -27,7 +27,7 @@ static inline int z_vrfy_pwm_get_cycles_per_sec(const struct device *dev, @@ -27,7 +27,7 @@ static inline int z_vrfy_pwm_get_cycles_per_sec(const struct device *dev,
return z_impl_pwm_get_cycles_per_sec((const struct device *)dev,
channel, (uint64_t *)cycles);
}
#include <syscalls/pwm_get_cycles_per_sec_mrsh.c>
#include <zephyr/syscalls/pwm_get_cycles_per_sec_mrsh.c>
#ifdef CONFIG_PWM_CAPTURE
@ -37,7 +37,7 @@ static inline int z_vrfy_pwm_enable_capture(const struct device *dev, @@ -37,7 +37,7 @@ static inline int z_vrfy_pwm_enable_capture(const struct device *dev,
K_OOPS(K_SYSCALL_DRIVER_PWM(dev, enable_capture));
return z_impl_pwm_enable_capture((const struct device *)dev, channel);
}
#include <syscalls/pwm_enable_capture_mrsh.c>
#include <zephyr/syscalls/pwm_enable_capture_mrsh.c>
static inline int z_vrfy_pwm_disable_capture(const struct device *dev,
uint32_t channel)
@ -45,7 +45,7 @@ static inline int z_vrfy_pwm_disable_capture(const struct device *dev, @@ -45,7 +45,7 @@ static inline int z_vrfy_pwm_disable_capture(const struct device *dev,
K_OOPS(K_SYSCALL_DRIVER_PWM(dev, disable_capture));
return z_impl_pwm_disable_capture((const struct device *)dev, channel);
}
#include <syscalls/pwm_disable_capture_mrsh.c>
#include <zephyr/syscalls/pwm_disable_capture_mrsh.c>
static inline int z_vrfy_pwm_capture_cycles(const struct device *dev,
uint32_t channel, pwm_flags_t flags,
@ -75,6 +75,6 @@ static inline int z_vrfy_pwm_capture_cycles(const struct device *dev, @@ -75,6 +75,6 @@ static inline int z_vrfy_pwm_capture_cycles(const struct device *dev,
return err;
}
#include <syscalls/pwm_capture_cycles_mrsh.c>
#include <zephyr/syscalls/pwm_capture_cycles_mrsh.c>
#endif /* CONFIG_PWM_CAPTURE */

8
drivers/retained_mem/retained_mem_handlers.c

@ -12,7 +12,7 @@ static inline ssize_t z_vrfy_retained_mem_size(const struct device *dev) @@ -12,7 +12,7 @@ static inline ssize_t z_vrfy_retained_mem_size(const struct device *dev)
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_RETAINED_MEM));
return z_impl_retained_mem_size(dev);
}
#include <syscalls/retained_mem_size_mrsh.c>
#include <zephyr/syscalls/retained_mem_size_mrsh.c>
static inline int z_vrfy_retained_mem_read(const struct device *dev, off_t offset,
uint8_t *buffer, size_t size)
@ -21,7 +21,7 @@ static inline int z_vrfy_retained_mem_read(const struct device *dev, off_t offse @@ -21,7 +21,7 @@ static inline int z_vrfy_retained_mem_read(const struct device *dev, off_t offse
K_OOPS(K_SYSCALL_MEMORY_WRITE(buffer, size));
return z_impl_retained_mem_read(dev, offset, buffer, size);
}
#include <syscalls/retained_mem_read_mrsh.c>
#include <zephyr/syscalls/retained_mem_read_mrsh.c>
static inline int z_vrfy_retained_mem_write(const struct device *dev, off_t offset,
const uint8_t *buffer, size_t size)
@ -30,11 +30,11 @@ static inline int z_vrfy_retained_mem_write(const struct device *dev, off_t offs @@ -30,11 +30,11 @@ static inline int z_vrfy_retained_mem_write(const struct device *dev, off_t offs
K_OOPS(K_SYSCALL_MEMORY_READ(buffer, size));
return z_impl_retained_mem_write(dev, offset, buffer, size);
}
#include <syscalls/retained_mem_write_mrsh.c>
#include <zephyr/syscalls/retained_mem_write_mrsh.c>
static inline int z_vrfy_retained_mem_clear(const struct device *dev)
{
K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_RETAINED_MEM));
return z_impl_retained_mem_clear(dev);
}
#include <syscalls/retained_mem_clear_mrsh.c>
#include <zephyr/syscalls/retained_mem_clear_mrsh.c>

16
drivers/rtc/rtc_handlers.c

@ -13,7 +13,7 @@ static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc @@ -13,7 +13,7 @@ static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc
K_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time)));
return z_impl_rtc_set_time(dev, timeptr);
}
#include <syscalls/rtc_set_time_mrsh.c>
#include <zephyr/syscalls/rtc_set_time_mrsh.c>
static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time *timeptr)
{
@ -21,7 +21,7 @@ static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time @@ -21,7 +21,7 @@ static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time
K_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time)));
return z_impl_rtc_get_time(dev, timeptr);
}
#include <syscalls/rtc_get_time_mrsh.c>
#include <zephyr/syscalls/rtc_get_time_mrsh.c>
#ifdef CONFIG_RTC_ALARM
static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev, uint16_t id,
@ -31,7 +31,7 @@ static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev @@ -31,7 +31,7 @@ static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev
K_OOPS(K_SYSCALL_MEMORY_WRITE(mask, sizeof(uint16_t)));
return z_impl_rtc_alarm_get_supported_fields(dev, id, mask);
}
#include <syscalls/rtc_alarm_get_supported_fields_mrsh.c>
#include <zephyr/syscalls/rtc_alarm_get_supported_fields_mrsh.c>
static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask,
const struct rtc_time *timeptr)
@ -40,7 +40,7 @@ static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t i @@ -40,7 +40,7 @@ static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t i
K_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time)));
return z_impl_rtc_alarm_set_time(dev, id, mask, timeptr);
}
#include <syscalls/rtc_alarm_set_time_mrsh.c>
#include <zephyr/syscalls/rtc_alarm_set_time_mrsh.c>
static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask,
struct rtc_time *timeptr)
@ -50,14 +50,14 @@ static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t i @@ -50,14 +50,14 @@ static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t i
K_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time)));
return z_impl_rtc_alarm_get_time(dev, id, mask, timeptr);
}
#include <syscalls/rtc_alarm_get_time_mrsh.c>
#include <zephyr/syscalls/rtc_alarm_get_time_mrsh.c>
static inline int z_vrfy_rtc_alarm_is_pending(const struct device *dev, uint16_t id)
{
K_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>
#include <zephyr/syscalls/rtc_alarm_is_pending_mrsh.c>
#endif /* CONFIG_RTC_ALARM */
#ifdef CONFIG_RTC_CALIBRATION
@ -67,7 +67,7 @@ static inline int z_vrfy_rtc_set_calibration(const struct device *dev, int32_t c @@ -67,7 +67,7 @@ static inline int z_vrfy_rtc_set_calibration(const struct device *dev, int32_t c
return z_impl_rtc_set_calibration(dev, calibration);
}
#include <syscalls/rtc_set_calibration_mrsh.c>
#include <zephyr/syscalls/rtc_set_calibration_mrsh.c>
static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t *calibration)
{
@ -75,5 +75,5 @@ static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t * @@ -75,5 +75,5 @@ static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t *
K_OOPS(K_SYSCALL_MEMORY_WRITE(calibration, sizeof(int32_t)));
return z_impl_rtc_get_calibration(dev, calibration);
}
#include <syscalls/rtc_get_calibration_mrsh.c>
#include <zephyr/syscalls/rtc_get_calibration_mrsh.c>
#endif /* CONFIG_RTC_CALIBRATION */

14
drivers/sensor/sensor_handlers.c

@ -17,7 +17,7 @@ static inline int z_vrfy_sensor_attr_set(const struct device *dev, @@ -17,7 +17,7 @@ static inline int z_vrfy_sensor_attr_set(const struct device *dev,
return z_impl_sensor_attr_set((const struct device *)dev, chan, attr,
(const struct sensor_value *)val);
}
#include <syscalls/sensor_attr_set_mrsh.c>
#include <zephyr/syscalls/sensor_attr_set_mrsh.c>
static inline int z_vrfy_sensor_attr_get(const struct device *dev,
enum sensor_channel chan,
@ -29,14 +29,14 @@ static inline int z_vrfy_sensor_attr_get(const struct device *dev, @@ -29,14 +29,14 @@ static inline int z_vrfy_sensor_attr_get(const struct device *dev,
return z_impl_sensor_attr_get((const struct device *)dev, chan, attr,
(struct sensor_value *)val);
}
#include <syscalls/sensor_attr_get_mrsh.c>
#include <zephyr/syscalls/sensor_attr_get_mrsh.c>
static inline int z_vrfy_sensor_sample_fetch(const struct device *dev)
{
K_OOPS(K_SYSCALL_DRIVER_SENSOR(dev, sample_fetch));
return z_impl_sensor_sample_fetch((const struct device *)dev);
}
#include <syscalls/sensor_sample_fetch_mrsh.c>
#include <zephyr/syscalls/sensor_sample_fetch_mrsh.c>
static inline int z_vrfy_sensor_sample_fetch_chan(const struct device *dev,
enum sensor_channel type)
@ -45,7 +45,7 @@ static inline int z_vrfy_sensor_sample_fetch_chan(const struct device *dev, @@ -45,7 +45,7 @@ static inline int z_vrfy_sensor_sample_fetch_chan(const struct device *dev,
return z_impl_sensor_sample_fetch_chan((const struct device *)dev,
type);
}
#include <syscalls/sensor_sample_fetch_chan_mrsh.c>
#include <zephyr/syscalls/sensor_sample_fetch_chan_mrsh.c>
static inline int z_vrfy_sensor_channel_get(const struct device *dev,
enum sensor_channel chan,
@ -56,7 +56,7 @@ static inline int z_vrfy_sensor_channel_get(const struct device *dev, @@ -56,7 +56,7 @@ static inline int z_vrfy_sensor_channel_get(const struct device *dev,
return z_impl_sensor_channel_get((const struct device *)dev, chan,
(struct sensor_value *)val);
}
#include <syscalls/sensor_channel_get_mrsh.c>
#include <zephyr/syscalls/sensor_channel_get_mrsh.c>
#ifdef CONFIG_SENSOR_ASYNC_API
static inline int z_vrfy_sensor_get_decoder(const struct device *dev,
@ -66,7 +66,7 @@ static inline int z_vrfy_sensor_get_decoder(const struct device *dev, @@ -66,7 +66,7 @@ static inline int z_vrfy_sensor_get_decoder(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_READ(decoder, sizeof(struct sensor_decoder_api)));
return z_impl_sensor_get_decoder(dev, decoder);
}
#include <syscalls/sensor_get_decoder_mrsh.c>
#include <zephyr/syscalls/sensor_get_decoder_mrsh.c>
static inline int z_vrfy_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev,
const struct device *sensor,
@ -78,5 +78,5 @@ static inline int z_vrfy_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev, @@ -78,5 +78,5 @@ static inline int z_vrfy_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev,
K_OOPS(K_SYSCALL_MEMORY_READ(channels, sizeof(enum sensor_channel) * num_channels));
return z_impl_sensor_reconfigure_read_iodev(iodev, sensor, channels, num_channels);
}
#include <syscalls/sensor_reconfigure_read_iodev_mrsh.c>
#include <zephyr/syscalls/sensor_reconfigure_read_iodev_mrsh.c>
#endif

48
drivers/serial/uart_handlers.c

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
}
UART_SIMPLE(err_check)
#include <syscalls/uart_err_check_mrsh.c>
#include <zephyr/syscalls/uart_err_check_mrsh.c>
static inline int z_vrfy_uart_poll_in(const struct device *dev,
unsigned char *p_char)
@ -31,7 +31,7 @@ static inline int z_vrfy_uart_poll_in(const struct device *dev, @@ -31,7 +31,7 @@ static inline int z_vrfy_uart_poll_in(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_WRITE(p_char, sizeof(unsigned char)));
return z_impl_uart_poll_in(dev, p_char);
}
#include <syscalls/uart_poll_in_mrsh.c>
#include <zephyr/syscalls/uart_poll_in_mrsh.c>
static inline int z_vrfy_uart_poll_in_u16(const struct device *dev,
uint16_t *p_u16)
@ -40,7 +40,7 @@ static inline int z_vrfy_uart_poll_in_u16(const struct device *dev, @@ -40,7 +40,7 @@ static inline int z_vrfy_uart_poll_in_u16(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_WRITE(p_u16, sizeof(uint16_t)));
return z_impl_uart_poll_in_u16(dev, p_u16);
}
#include <syscalls/uart_poll_in_u16_mrsh.c>
#include <zephyr/syscalls/uart_poll_in_u16_mrsh.c>
static inline void z_vrfy_uart_poll_out(const struct device *dev,
unsigned char out_char)
@ -48,7 +48,7 @@ static inline void z_vrfy_uart_poll_out(const struct device *dev, @@ -48,7 +48,7 @@ static inline void z_vrfy_uart_poll_out(const struct device *dev,
K_OOPS(K_SYSCALL_DRIVER_UART(dev, poll_out));
z_impl_uart_poll_out((const struct device *)dev, out_char);
}
#include <syscalls/uart_poll_out_mrsh.c>
#include <zephyr/syscalls/uart_poll_out_mrsh.c>
static inline void z_vrfy_uart_poll_out_u16(const struct device *dev,
uint16_t out_u16)
@ -56,7 +56,7 @@ static inline void z_vrfy_uart_poll_out_u16(const struct device *dev, @@ -56,7 +56,7 @@ static inline void z_vrfy_uart_poll_out_u16(const struct device *dev,
K_OOPS(K_SYSCALL_DRIVER_UART(dev, poll_out));
z_impl_uart_poll_out_u16((const struct device *)dev, out_u16);
}
#include <syscalls/uart_poll_out_u16_mrsh.c>
#include <zephyr/syscalls/uart_poll_out_u16_mrsh.c>
#ifdef CONFIG_UART_USE_RUNTIME_CONFIGURE
static inline int z_vrfy_uart_config_get(const struct device *dev,
@ -67,7 +67,7 @@ static inline int z_vrfy_uart_config_get(const struct device *dev, @@ -67,7 +67,7 @@ static inline int z_vrfy_uart_config_get(const struct device *dev,
return z_impl_uart_config_get(dev, cfg);
}
#include <syscalls/uart_config_get_mrsh.c>
#include <zephyr/syscalls/uart_config_get_mrsh.c>
static inline int z_vrfy_uart_configure(const struct device *dev,
const struct uart_config *cfg)
@ -77,7 +77,7 @@ static inline int z_vrfy_uart_configure(const struct device *dev, @@ -77,7 +77,7 @@ static inline int z_vrfy_uart_configure(const struct device *dev,
return z_impl_uart_configure(dev, cfg);
}
#include <syscalls/uart_configure_mrsh.c>
#include <zephyr/syscalls/uart_configure_mrsh.c>
#endif
#ifdef CONFIG_UART_ASYNC_API
@ -94,7 +94,7 @@ static inline int z_vrfy_uart_tx(const struct device *dev, const uint8_t *buf, @@ -94,7 +94,7 @@ static inline int z_vrfy_uart_tx(const struct device *dev, const uint8_t *buf,
K_OOPS(K_SYSCALL_MEMORY_READ(buf, len));
return z_impl_uart_tx(dev, buf, len, timeout);
}
#include <syscalls/uart_tx_mrsh.c>
#include <zephyr/syscalls/uart_tx_mrsh.c>
#ifdef CONFIG_UART_WIDE_DATA
static inline int z_vrfy_uart_tx_u16(const struct device *dev,
@ -105,11 +105,11 @@ static inline int z_vrfy_uart_tx_u16(const struct device *dev, @@ -105,11 +105,11 @@ static inline int z_vrfy_uart_tx_u16(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(buf, len, sizeof(uint16_t)));
return z_impl_uart_tx_u16(dev, buf, len, timeout);
}
#include <syscalls/uart_tx_u16_mrsh.c>
#include <zephyr/syscalls/uart_tx_u16_mrsh.c>
#endif
UART_SIMPLE(tx_abort);
#include <syscalls/uart_tx_abort_mrsh.c>
#include <zephyr/syscalls/uart_tx_abort_mrsh.c>
static inline int z_vrfy_uart_rx_enable(const struct device *dev,
uint8_t *buf,
@ -119,7 +119,7 @@ static inline int z_vrfy_uart_rx_enable(const struct device *dev, @@ -119,7 +119,7 @@ static inline int z_vrfy_uart_rx_enable(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_WRITE(buf, len));
return z_impl_uart_rx_enable(dev, buf, len, timeout);
}
#include <syscalls/uart_rx_enable_mrsh.c>
#include <zephyr/syscalls/uart_rx_enable_mrsh.c>
#ifdef CONFIG_UART_WIDE_DATA
static inline int z_vrfy_uart_rx_enable_u16(const struct device *dev,
@ -130,11 +130,11 @@ static inline int z_vrfy_uart_rx_enable_u16(const struct device *dev, @@ -130,11 +130,11 @@ static inline int z_vrfy_uart_rx_enable_u16(const struct device *dev,
K_OOPS(K_SYSCALL_MEMORY_ARRAY_WRITE(buf, len, sizeof(uint16_t)));
return z_impl_uart_rx_enable_u16(dev, buf, len, timeout);
}
#include <syscalls/uart_rx_enable_u16_mrsh.c>
#include <zephyr/syscalls/uart_rx_enable_u16_mrsh.c>
#endif
UART_SIMPLE(rx_disable);
#include <syscalls/uart_rx_disable_mrsh.c>
#include <zephyr/syscalls/uart_rx_disable_mrsh.c>
#endif /* CONFIG_UART_ASYNC_API */
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
@ -146,14 +146,14 @@ UART_SIMPLE_VOID(irq_err_enable) @@ -146,14 +146,14 @@ UART_SIMPLE_VOID(irq_err_enable)
UART_SIMPLE_VOID(irq_err_disable)
UART_SIMPLE(irq_is_pending)
UART_SIMPLE(irq_update)
#include <syscalls/uart_irq_tx_enable_mrsh.c>
#include <syscalls/uart_irq_tx_disable_mrsh.c>
#include <syscalls/uart_irq_rx_enable_mrsh.c>
#include <syscalls/uart_irq_rx_disable_mrsh.c>
#include <syscalls/uart_irq_err_enable_mrsh.c>
#include <syscalls/uart_irq_err_disable_mrsh.c>
#include <syscalls/uart_irq_is_pending_mrsh.c>
#include <syscalls/uart_irq_update_mrsh.c>
#include <zephyr/syscalls/uart_irq_tx_enable_mrsh.c>
#include <zephyr/syscalls/uart_irq_tx_disable_mrsh.c>
#include <zephyr/syscalls/uart_irq_rx_enable_mrsh.c>
#include <zephyr/syscalls/uart_irq_rx_disable_mrsh.c>
#include <zephyr/syscalls/uart_irq_err_enable_mrsh.c>
#include <zephyr/syscalls/uart_irq_err_disable_mrsh.c>
#include <zephyr/syscalls/uart_irq_is_pending_mrsh.c>
#include <zephyr/syscalls/uart_irq_update_mrsh.c>
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
#ifdef CONFIG_UART_LINE_CTRL
@ -164,7 +164,7 @@ static inline int z_vrfy_uart_line_ctrl_set(const struct device *dev, @@ -164,7 +164,7 @@ static inline int z_vrfy_uart_line_ctrl_set(const struct device *dev,
return z_impl_uart_line_ctrl_set((const struct device *)dev, ctrl,
val);
}
#include <syscalls/uart_line_ctrl_set_mrsh.c>
#include <zephyr/syscalls/uart_line_ctrl_set_mrsh.c>
static inline int z_vrfy_uart_line_ctrl_get(const struct device *dev,
uint32_t ctrl, uint32_t *val)
@ -174,7 +174,7 @@ static inline int z_vrfy_uart_line_ctrl_get(const struct device *dev, @@ -174,7 +174,7 @@ static inline int z_vrfy_uart_line_ctrl_get(const struct device *dev,
return z_impl_uart_line_ctrl_get((const struct device *)dev, ctrl,
(uint32_t *)val);
}
#include <syscalls/uart_line_ctrl_get_mrsh.c>
#include <zephyr/syscalls/uart_line_ctrl_get_mrsh.c>
#endif /* CONFIG_UART_LINE_CTRL */
#ifdef CONFIG_UART_DRV_CMD
@ -184,5 +184,5 @@ static inline int z_vrfy_uart_drv_cmd(const struct device *dev, uint32_t cmd, @@ -184,5 +184,5 @@ static inline int z_vrfy_uart_drv_cmd(const struct device *dev, uint32_t cmd,
K_OOPS(K_SYSCALL_DRIVER_UART(dev, drv_cmd));
return z_impl_uart_drv_cmd((const struct device *)dev, cmd, p);
}
#include <syscalls/uart_drv_cmd_mrsh.c>
#include <zephyr/syscalls/uart_drv_cmd_mrsh.c>
#endif /* CONFIG_UART_DRV_CMD */

30
drivers/smbus/smbus_handlers.c

@ -15,7 +15,7 @@ static inline int z_vrfy_smbus_configure(const struct device *dev, @@ -15,7 +15,7 @@ static inline int z_vrfy_smbus_configure(const struct device *dev,
return z_impl_smbus_configure(dev, dev_config);
}
#include <syscalls/smbus_configure_mrsh.c>
#include <zephyr/syscalls/smbus_configure_mrsh.c>
static inline int z_vrfy_smbus_get_config(const struct device *dev,
uint32_t *dev_config)
@ -25,7 +25,7 @@ static inline int z_vrfy_smbus_get_config(const struct device *dev, @@ -25,7 +25,7 @@ static inline int z_vrfy_smbus_get_config(const struct device *dev,
return z_impl_smbus_get_config(dev, dev_config);
}
#include <syscalls/smbus_get_config_mrsh.c>
#include <zephyr/syscalls/smbus_get_config_mrsh.c>
static inline int z_vrfy_smbus_quick(const struct device *dev, uint16_t addr,
enum smbus_direction rw)
@ -34,7 +34,7 @@ static inline int z_vrfy_smbus_quick(const struct device *dev, uint16_t addr, @@ -34,7 +34,7 @@ static inline int z_vrfy_smbus_quick(const struct device *dev, uint16_t addr,
return z_impl_smbus_quick(dev, addr, rw);
}
#include <syscalls/smbus_quick_mrsh.c>
#include <zephyr/syscalls/smbus_quick_mrsh.c>
static inline int z_vrfy_smbus_byte_write(const struct device *dev,
uint16_t addr, uint8_t byte)
@ -43,7 +43,7 @@ static inline int z_vrfy_smbus_byte_write(const struct device *dev, @@ -43,7 +43,7 @@ static inline int z_vrfy_smbus_byte_write(const struct device *dev,
return z_impl_smbus_byte_write(dev, addr, byte);
}
#include <syscalls/smbus_byte_write_mrsh.c>
#include <zephyr/syscalls/smbus_byte_write_mrsh.c>
static inline int z_vrfy_smbus_byte_read(const struct device *dev,
uint16_t addr, uint8_t *byte)
@ -53,7 +53,7 @@ static inline int z_vrfy_smbus_byte_read(const struct device *dev, @@ -53,7 +53,7 @@ static inline int z_vrfy_smbus_byte_read(const struct device *dev,
return z_impl_smbus_byte_read(dev, addr, byte);
}
#include <syscalls/smbus_byte_read_mrsh.c>
#include <zephyr/syscalls/smbus_byte_read_mrsh.c>
static inline int z_vrfy_smbus_byte_data_write(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -63,7 +63,7 @@ static inline int z_vrfy_smbus_byte_data_write(const struct device *dev, @@ -63,7 +63,7 @@ static inline int z_vrfy_smbus_byte_data_write(const struct device *dev,
return z_impl_smbus_byte_data_write(dev, addr, cmd, byte);
}
#include <syscalls/smbus_byte_data_write_mrsh.c>
#include <zephyr/syscalls/smbus_byte_data_write_mrsh.c>
static inline int z_vrfy_smbus_byte_data_read(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -74,7 +74,7 @@ static inline int z_vrfy_smbus_byte_data_read(const struct device *dev, @@ -74,7 +74,7 @@ static inline int z_vrfy_smbus_byte_data_read(const struct device *dev,
return z_impl_smbus_byte_data_read(dev, addr, cmd, byte);
}
#include <syscalls/smbus_byte_data_read_mrsh.c>
#include <zephyr/syscalls/smbus_byte_data_read_mrsh.c>
static inline int z_vrfy_smbus_word_data_write(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -84,7 +84,7 @@ static inline int z_vrfy_smbus_word_data_write(const struct device *dev, @@ -84,7 +84,7 @@ static inline int z_vrfy_smbus_word_data_write(const struct device *dev,
return z_impl_smbus_word_data_write(dev, addr, cmd, word);
}
#include <syscalls/smbus_word_data_write_mrsh.c>
#include <zephyr/syscalls/smbus_word_data_write_mrsh.c>
static inline int z_vrfy_smbus_word_data_read(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -95,7 +95,7 @@ static inline int z_vrfy_smbus_word_data_read(const struct device *dev, @@ -95,7 +95,7 @@ static inline int z_vrfy_smbus_word_data_read(const struct device *dev,
return z_impl_smbus_word_data_read(dev, addr, cmd, word);
}
#include <syscalls/smbus_word_data_read_mrsh.c>
#include <zephyr/syscalls/smbus_word_data_read_mrsh.c>
static inline int z_vrfy_smbus_pcall(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -106,7 +106,7 @@ static inline int z_vrfy_smbus_pcall(const struct device *dev, @@ -106,7 +106,7 @@ static inline int z_vrfy_smbus_pcall(const struct device *dev,
return z_impl_smbus_pcall(dev, addr, cmd, send_word, recv_word);
}
#include <syscalls/smbus_pcall_mrsh.c>
#include <zephyr/syscalls/smbus_pcall_mrsh.c>
static inline int z_vrfy_smbus_block_write(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -117,7 +117,7 @@ static inline int z_vrfy_smbus_block_write(const struct device *dev, @@ -117,7 +117,7 @@ static inline int z_vrfy_smbus_block_write(const struct device *dev,
return z_impl_smbus_block_write(dev, addr, cmd, count, buf);
}
#include <syscalls/smbus_block_write_mrsh.c>
#include <zephyr/syscalls/smbus_block_write_mrsh.c>
static inline int z_vrfy_smbus_block_read(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -128,7 +128,7 @@ static inline int z_vrfy_smbus_block_read(const struct device *dev, @@ -128,7 +128,7 @@ static inline int z_vrfy_smbus_block_read(const struct device *dev,
return z_impl_smbus_block_read(dev, addr, cmd, count, buf);
}
#include <syscalls/smbus_block_read_mrsh.c>
#include <zephyr/syscalls/smbus_block_read_mrsh.c>
static inline int z_vrfy_smbus_block_pcall(const struct device *dev,
uint16_t addr, uint8_t cmd,
@ -142,7 +142,7 @@ static inline int z_vrfy_smbus_block_pcall(const struct device *dev, @@ -142,7 +142,7 @@ static inline int z_vrfy_smbus_block_pcall(const struct device *dev,
return z_impl_smbus_block_pcall(dev, addr, cmd, snd_count, snd_buf,
rcv_count, rcv_buf);
}
#include <syscalls/smbus_block_pcall_mrsh.c>
#include <zephyr/syscalls/smbus_block_pcall_mrsh.c>
static inline int z_vrfy_smbus_smbalert_remove_cb(const struct device *dev,
struct smbus_callback *cb)
@ -151,7 +151,7 @@ static inline int z_vrfy_smbus_smbalert_remove_cb(const struct device *dev, @@ -151,7 +151,7 @@ static inline int z_vrfy_smbus_smbalert_remove_cb(const struct device *dev,
return z_impl_smbus_smbalert_remove_cb(dev, cb);
}
#include <syscalls/smbus_smbalert_remove_cb_mrsh.c>
#include <zephyr/syscalls/smbus_smbalert_remove_cb_mrsh.c>
static inline int z_vrfy_smbus_host_notify_remove_cb(const struct device *dev,
struct smbus_callback *cb)
@ -160,4 +160,4 @@ static inline int z_vrfy_smbus_host_notify_remove_cb(const struct device *dev, @@ -160,4 +160,4 @@ static inline int z_vrfy_smbus_host_notify_remove_cb(const struct device *dev,
return z_impl_smbus_host_notify_remove_cb(dev, cb);
}
#include <syscalls/smbus_host_notify_remove_cb_mrsh.c>
#include <zephyr/syscalls/smbus_host_notify_remove_cb_mrsh.c>

4
drivers/spi/spi_handlers.c

@ -114,7 +114,7 @@ static inline int z_vrfy_spi_transceive(const struct device *dev, @@ -114,7 +114,7 @@ static inline int z_vrfy_spi_transceive(const struct device *dev,
&tx_bufs_copy,
&rx_bufs_copy);
}
#include <syscalls/spi_transceive_mrsh.c>
#include <zephyr/syscalls/spi_transceive_mrsh.c>
static inline int z_vrfy_spi_release(const struct device *dev,
const struct spi_config *config)
@ -123,4 +123,4 @@ static inline int z_vrfy_spi_release(const struct device *dev, @@ -123,4 +123,4 @@ static inline int z_vrfy_spi_release(const struct device *dev,
K_OOPS(K_SYSCALL_DRIVER_SPI(dev, release));
return z_impl_spi_release((const struct device *)dev, config);
}
#include <syscalls/spi_release_mrsh.c>
#include <zephyr/syscalls/spi_release_mrsh.c>

24
drivers/virtualization/virt_ivshmem_handlers.c

@ -16,7 +16,7 @@ static inline size_t z_vrfy_ivshmem_get_mem(const struct device *dev, @@ -16,7 +16,7 @@ static inline size_t z_vrfy_ivshmem_get_mem(const struct device *dev,
return z_impl_ivshmem_get_mem(dev, memmap);
}
#include <syscalls/ivshmem_get_mem_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_mem_mrsh.c>
static inline uint32_t z_vrfy_ivshmem_get_id(const struct device *dev)
{
@ -24,7 +24,7 @@ static inline uint32_t z_vrfy_ivshmem_get_id(const struct device *dev) @@ -24,7 +24,7 @@ static inline uint32_t z_vrfy_ivshmem_get_id(const struct device *dev)
return z_impl_ivshmem_get_id(dev);
}
#include <syscalls/ivshmem_get_id_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_id_mrsh.c>
static inline uint16_t z_vrfy_ivshmem_get_vectors(const struct device *dev)
{
@ -32,7 +32,7 @@ static inline uint16_t z_vrfy_ivshmem_get_vectors(const struct device *dev) @@ -32,7 +32,7 @@ static inline uint16_t z_vrfy_ivshmem_get_vectors(const struct device *dev)
return z_impl_ivshmem_get_vectors(dev);
}
#include <syscalls/ivshmem_get_vectors_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_vectors_mrsh.c>
static inline int z_vrfy_ivshmem_int_peer(const struct device *dev,
uint32_t peer_id, uint16_t vector)
@ -41,7 +41,7 @@ static inline int z_vrfy_ivshmem_int_peer(const struct device *dev, @@ -41,7 +41,7 @@ static inline int z_vrfy_ivshmem_int_peer(const struct device *dev,
return z_impl_ivshmem_int_peer(dev, peer_id, vector);
}
#include <syscalls/ivshmem_int_peer_mrsh.c>
#include <zephyr/syscalls/ivshmem_int_peer_mrsh.c>
static inline int z_vrfy_ivshmem_register_handler(const struct device *dev,
struct k_poll_signal *signal,
@ -52,7 +52,7 @@ static inline int z_vrfy_ivshmem_register_handler(const struct device *dev, @@ -52,7 +52,7 @@ static inline int z_vrfy_ivshmem_register_handler(const struct device *dev,
return z_impl_ivshmem_register_handler(dev, signal, vector);
}
#include <syscalls/ivshmem_register_handler_mrsh.c>
#include <zephyr/syscalls/ivshmem_register_handler_mrsh.c>
#ifdef CONFIG_IVSHMEM_V2
@ -64,7 +64,7 @@ static inline size_t z_vrfy_ivshmem_get_rw_mem_section(const struct device *dev, @@ -64,7 +64,7 @@ static inline size_t z_vrfy_ivshmem_get_rw_mem_section(const struct device *dev,
return z_impl_ivshmem_get_rw_mem_section(dev, memmap);
}
#include <syscalls/ivshmem_get_rw_mem_section_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_rw_mem_section_mrsh.c>
static inline size_t z_vrfy_ivshmem_get_output_mem_section(const struct device *dev,
uint32_t peer_id,
@ -75,7 +75,7 @@ static inline size_t z_vrfy_ivshmem_get_output_mem_section(const struct device * @@ -75,7 +75,7 @@ static inline size_t z_vrfy_ivshmem_get_output_mem_section(const struct device *
return z_impl_ivshmem_get_output_mem_section(dev, peer_id, memmap);
}
#include <syscalls/ivshmem_get_output_mem_section_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_output_mem_section_mrsh.c>
static inline uint32_t z_vrfy_ivshmem_get_state(const struct device *dev,
uint32_t peer_id)
@ -84,7 +84,7 @@ static inline uint32_t z_vrfy_ivshmem_get_state(const struct device *dev, @@ -84,7 +84,7 @@ static inline uint32_t z_vrfy_ivshmem_get_state(const struct device *dev,
return z_impl_ivshmem_get_state(dev, peer_id);
}
#include <syscalls/ivshmem_get_state_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_state_mrsh.c>
static inline int z_vrfy_ivshmem_set_state(const struct device *dev,
uint32_t state)
@ -93,7 +93,7 @@ static inline int z_vrfy_ivshmem_set_state(const struct device *dev, @@ -93,7 +93,7 @@ static inline int z_vrfy_ivshmem_set_state(const struct device *dev,
return z_impl_ivshmem_set_state(dev, state);
}
#include <syscalls/ivshmem_set_state_mrsh.c>
#include <zephyr/syscalls/ivshmem_set_state_mrsh.c>
static inline uint32_t z_vrfy_ivshmem_get_max_peers(const struct device *dev)
{
@ -101,7 +101,7 @@ static inline uint32_t z_vrfy_ivshmem_get_max_peers(const struct device *dev) @@ -101,7 +101,7 @@ static inline uint32_t z_vrfy_ivshmem_get_max_peers(const struct device *dev)
return z_impl_ivshmem_get_max_peers(dev);
}
#include <syscalls/ivshmem_get_max_peers_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_max_peers_mrsh.c>
static inline uint16_t z_vrfy_ivshmem_get_protocol(const struct device *dev)
{
@ -109,7 +109,7 @@ static inline uint16_t z_vrfy_ivshmem_get_protocol(const struct device *dev) @@ -109,7 +109,7 @@ static inline uint16_t z_vrfy_ivshmem_get_protocol(const struct device *dev)
return z_impl_ivshmem_get_protocol(dev);
}
#include <syscalls/ivshmem_get_protocol_mrsh.c>
#include <zephyr/syscalls/ivshmem_get_protocol_mrsh.c>
static inline int z_vrfy_ivshmem_enable_interrupts(const struct device *dev,
bool enable)
@ -118,6 +118,6 @@ static inline int z_vrfy_ivshmem_enable_interrupts(const struct device *dev, @@ -118,6 +118,6 @@ static inline int z_vrfy_ivshmem_enable_interrupts(const struct device *dev,
return z_impl_ivshmem_enable_interrupts(dev, enable);
}
#include <syscalls/ivshmem_enable_interrupts_mrsh.c>
#include <zephyr/syscalls/ivshmem_enable_interrupts_mrsh.c>
#endif /* CONFIG_IVSHMEM_V2 */

22
drivers/w1/w1_handlers.c

@ -13,7 +13,7 @@ static inline int z_vrfy_w1_reset_bus(const struct device *dev) @@ -13,7 +13,7 @@ static inline int z_vrfy_w1_reset_bus(const struct device *dev)
return z_impl_w1_reset_bus((const struct device *)dev);
}
#include <syscalls/w1_reset_bus_mrsh.c>
#include <zephyr/syscalls/w1_reset_bus_mrsh.c>
static inline int z_vrfy_w1_read_bit(const struct device *dev)
{
@ -21,7 +21,7 @@ static inline int z_vrfy_w1_read_bit(const struct device *dev) @@ -21,7 +21,7 @@ static inline int z_vrfy_w1_read_bit(const struct device *dev)
return z_impl_w1_read_bit((const struct device *)dev);
}
#include <syscalls/w1_read_bit_mrsh.c>
#include <zephyr/syscalls/w1_read_bit_mrsh.c>
static inline int z_vrfy_w1_write_bit(const struct device *dev, bool bit)
{
@ -29,7 +29,7 @@ static inline int z_vrfy_w1_write_bit(const struct device *dev, bool bit) @@ -29,7 +29,7 @@ static inline int z_vrfy_w1_write_bit(const struct device *dev, bool bit)
return z_impl_w1_write_bit((const struct device *)dev, bit);
}
#include <syscalls/w1_write_bit_mrsh.c>
#include <zephyr/syscalls/w1_write_bit_mrsh.c>
static inline int z_vrfy_w1_read_byte(const struct device *dev)
{
@ -37,7 +37,7 @@ static inline int z_vrfy_w1_read_byte(const struct device *dev) @@ -37,7 +37,7 @@ static inline int z_vrfy_w1_read_byte(const struct device *dev)
return z_impl_w1_read_byte((const struct device *)dev);
}
#include <syscalls/w1_read_byte_mrsh.c>
#include <zephyr/syscalls/w1_read_byte_mrsh.c>
static inline int z_vrfy_w1_write_byte(const struct device *dev, uint8_t byte)
{
@ -45,7 +45,7 @@ static inline int z_vrfy_w1_write_byte(const struct device *dev, uint8_t byte) @@ -45,7 +45,7 @@ static inline int z_vrfy_w1_write_byte(const struct device *dev, uint8_t byte)
return z_impl_w1_write_byte((const struct device *)dev, (uint8_t)byte);
}
#include <syscalls/w1_write_byte_mrsh.c>
#include <zephyr/syscalls/w1_write_byte_mrsh.c>
static inline int z_vrfy_w1_read_block(const struct device *dev,
uint8_t *buffer, size_t len)
@ -56,7 +56,7 @@ static inline int z_vrfy_w1_read_block(const struct device *dev, @@ -56,7 +56,7 @@ static inline int z_vrfy_w1_read_block(const struct device *dev,
return z_impl_w1_read_block((const struct device *)dev,
(uint8_t *)buffer, (size_t)len);
}
#include <syscalls/w1_read_block_mrsh.c>
#include <zephyr/syscalls/w1_read_block_mrsh.c>
static inline int z_vrfy_w1_write_block(const struct device *dev,
const uint8_t *buffer, size_t len)
@ -67,7 +67,7 @@ static inline int z_vrfy_w1_write_block(const struct device *dev, @@ -67,7 +67,7 @@ static inline int z_vrfy_w1_write_block(const struct device *dev,
return z_impl_w1_write_block((const struct device *)dev,
(const uint8_t *)buffer, (size_t)len);
}
#include <syscalls/w1_write_block_mrsh.c>
#include <zephyr/syscalls/w1_write_block_mrsh.c>
static inline int z_vrfy_w1_change_bus_lock(const struct device *dev, bool lock)
{
@ -75,7 +75,7 @@ static inline int z_vrfy_w1_change_bus_lock(const struct device *dev, bool lock) @@ -75,7 +75,7 @@ static inline int z_vrfy_w1_change_bus_lock(const struct device *dev, bool lock)
return z_impl_w1_change_bus_lock((const struct device *)dev, lock);
}
#include <syscalls/w1_change_bus_lock_mrsh.c>
#include <zephyr/syscalls/w1_change_bus_lock_mrsh.c>
static inline int z_vrfy_w1_configure(const struct device *dev,
enum w1_settings_type type, uint32_t value)
@ -84,7 +84,7 @@ static inline int z_vrfy_w1_configure(const struct device *dev, @@ -84,7 +84,7 @@ static inline int z_vrfy_w1_configure(const struct device *dev,
return z_impl_w1_configure(dev, type, value);
}
#include <syscalls/w1_configure_mrsh.c>
#include <zephyr/syscalls/w1_configure_mrsh.c>
static inline size_t z_vrfy_w1_get_slave_count(const struct device *dev)
{
@ -92,7 +92,7 @@ static inline size_t z_vrfy_w1_get_slave_count(const struct device *dev) @@ -92,7 +92,7 @@ static inline size_t z_vrfy_w1_get_slave_count(const struct device *dev)
return z_impl_w1_get_slave_count((const struct device *)dev);
}
#include <syscalls/w1_get_slave_count_mrsh.c>
#include <zephyr/syscalls/w1_get_slave_count_mrsh.c>
#if CONFIG_W1_NET
static inline int z_vrfy_w1_search_bus(const struct device *dev,
@ -112,5 +112,5 @@ static inline int z_vrfy_w1_search_bus(const struct device *dev, @@ -112,5 +112,5 @@ static inline int z_vrfy_w1_search_bus(const struct device *dev,
(void *)user_data);
}
#include <syscalls/w1_search_bus_mrsh.c>
#include <zephyr/syscalls/w1_search_bus_mrsh.c>
#endif /* CONFIG_W1_NET */

6
drivers/watchdog/wdt_handlers.c

@ -13,7 +13,7 @@ static inline int z_vrfy_wdt_setup(const struct device *dev, uint8_t options) @@ -13,7 +13,7 @@ static inline int z_vrfy_wdt_setup(const struct device *dev, uint8_t options)
return z_impl_wdt_setup(dev, options);
}
#include <syscalls/wdt_setup_mrsh.c>
#include <zephyr/syscalls/wdt_setup_mrsh.c>
static inline int z_vrfy_wdt_disable(const struct device *dev)
{
@ -21,7 +21,7 @@ static inline int z_vrfy_wdt_disable(const struct device *dev) @@ -21,7 +21,7 @@ static inline int z_vrfy_wdt_disable(const struct device *dev)
return z_impl_wdt_disable(dev);
}
#include <syscalls/wdt_disable_mrsh.c>
#include <zephyr/syscalls/wdt_disable_mrsh.c>
static inline int z_vrfy_wdt_feed(const struct device *dev, int channel_id)
{
@ -29,4 +29,4 @@ static inline int z_vrfy_wdt_feed(const struct device *dev, int channel_id) @@ -29,4 +29,4 @@ static inline int z_vrfy_wdt_feed(const struct device *dev, int channel_id)
return z_impl_wdt_feed(dev, channel_id);
}
#include <syscalls/wdt_feed_mrsh.c>
#include <zephyr/syscalls/wdt_feed_mrsh.c>

2
include/zephyr/arch/riscv/error.h

@ -42,7 +42,7 @@ extern "C" { @@ -42,7 +42,7 @@ extern "C" {
__syscall void user_fault(unsigned int reason);
#include <syscalls/error.h>
#include <zephyr/syscalls/error.h>
#ifdef __cplusplus
}

2
include/zephyr/arch/x86/ia32/linker.ld

@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
*/
#include <zephyr/linker/linker-defs.h>
#include <offsets.h>
#include <zephyr/offsets.h>
#include <zephyr/sys/util.h>
#include <zephyr/kernel/mm.h>

2
include/zephyr/arch/xtensa/arch.h

@ -114,7 +114,7 @@ void xtensa_arch_kernel_oops(int reason_p, void *ssf); @@ -114,7 +114,7 @@ void xtensa_arch_kernel_oops(int reason_p, void *ssf);
__syscall void xtensa_user_fault(unsigned int reason);
#include <syscalls/arch.h>
#include <zephyr/syscalls/arch.h>
/* internal routine documented in C file, needed by IRQ_CONNECT() macro */
void z_irq_priority_set(uint32_t irq, uint32_t prio, uint32_t flags);

2
include/zephyr/arch/xtensa/arch_inlines.h

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
#ifndef _ASMLANGUAGE
#include <zephyr/kernel_structs.h>
#include <zsr.h>
#include <zephyr/zsr.h>
/**
* @brief Read a special register.

2
include/zephyr/cache.h

@ -550,7 +550,7 @@ static ALWAYS_INLINE void sys_cache_flush(void *addr, size_t size) @@ -550,7 +550,7 @@ static ALWAYS_INLINE void sys_cache_flush(void *addr, size_t size)
}
#endif
#include <syscalls/cache.h>
#include <zephyr/syscalls/cache.h>
#ifdef __cplusplus
}
#endif

4
include/zephyr/device.h

@ -96,7 +96,7 @@ typedef int16_t device_handle_t; @@ -96,7 +96,7 @@ typedef int16_t device_handle_t;
* size.
*
* The ordinal used in this name can be mapped to the path by
* examining zephyr/include/generated/devicetree_generated.h.
* examining zephyr/include/generated/zephyr/devicetree_generated.h.
*/
#define Z_DEVICE_DT_DEV_ID(node_id) _CONCAT(dts_ord_, DT_DEP_ORD(node_id))
@ -1085,6 +1085,6 @@ DT_FOREACH_STATUS_OKAY_NODE(Z_MAYBE_DEVICE_DECLARE_INTERNAL) @@ -1085,6 +1085,6 @@ DT_FOREACH_STATUS_OKAY_NODE(Z_MAYBE_DEVICE_DECLARE_INTERNAL)
}
#endif
#include <syscalls/device.h>
#include <zephyr/syscalls/device.h>
#endif /* ZEPHYR_INCLUDE_DEVICE_H_ */

2
include/zephyr/devicetree.h

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
#ifndef DEVICETREE_H
#define DEVICETREE_H
#include <devicetree_generated.h>
#include <zephyr/devicetree_generated.h>
#include <zephyr/irq_multilevel.h>
#if !defined(_LINKER) && !defined(_ASMLANGUAGE)

2
include/zephyr/drivers/adc.h

@ -984,6 +984,6 @@ static inline bool adc_is_ready_dt(const struct adc_dt_spec *spec) @@ -984,6 +984,6 @@ static inline bool adc_is_ready_dt(const struct adc_dt_spec *spec)
}
#endif
#include <syscalls/adc.h>
#include <zephyr/syscalls/adc.h>
#endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_H_ */

2
include/zephyr/drivers/auxdisplay.h

@ -815,6 +815,6 @@ static inline int z_impl_auxdisplay_custom_command(const struct device *dev, @@ -815,6 +815,6 @@ static inline int z_impl_auxdisplay_custom_command(const struct device *dev,
* @}
*/
#include <syscalls/auxdisplay.h>
#include <zephyr/syscalls/auxdisplay.h>
#endif /* ZEPHYR_INCLUDE_DRIVERS_AUXDISPLAY_H_ */

2
include/zephyr/drivers/bbram.h

@ -261,6 +261,6 @@ int bbram_emul_set_power_state(const struct device *dev, bool failure); @@ -261,6 +261,6 @@ int bbram_emul_set_power_state(const struct device *dev, bool failure);
* @}
*/
#include <syscalls/bbram.h>
#include <zephyr/syscalls/bbram.h>
#endif /* ZEPHYR_INCLUDE_DRIVERS_BBRAM_H */

2
include/zephyr/drivers/can.h

@ -1800,6 +1800,6 @@ static inline bool can_frame_matches_filter(const struct can_frame *frame, @@ -1800,6 +1800,6 @@ static inline bool can_frame_matches_filter(const struct can_frame *frame,
}
#endif
#include <syscalls/can.h>
#include <zephyr/syscalls/can.h>
#endif /* ZEPHYR_INCLUDE_DRIVERS_CAN_H_ */

2
include/zephyr/drivers/charger.h

@ -405,6 +405,6 @@ static inline int z_impl_charger_charge_enable(const struct device *dev, const b @@ -405,6 +405,6 @@ static inline int z_impl_charger_charge_enable(const struct device *dev, const b
}
#endif /* __cplusplus */
#include <syscalls/charger.h>
#include <zephyr/syscalls/charger.h>
#endif /* ZEPHYR_INCLUDE_DRIVERS_CHARGER_H_ */

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save