162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci#ifndef _UAPI_XTENSA_UNISTD_H 362306a36Sopenharmony_ci#define _UAPI_XTENSA_UNISTD_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/unistd_32.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#define __ARCH_WANT_SYS_OLDUMOUNT 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* 1062306a36Sopenharmony_ci * sysxtensa syscall handler 1162306a36Sopenharmony_ci * 1262306a36Sopenharmony_ci * int sysxtensa (SYS_XTENSA_ATOMIC_SET, ptr, val, unused); 1362306a36Sopenharmony_ci * int sysxtensa (SYS_XTENSA_ATOMIC_ADD, ptr, val, unused); 1462306a36Sopenharmony_ci * int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val, unused); 1562306a36Sopenharmony_ci * int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval); 1662306a36Sopenharmony_ci * a2 a6 a3 a4 a5 1762306a36Sopenharmony_ci */ 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#define SYS_XTENSA_RESERVED 0 /* don't use this */ 2062306a36Sopenharmony_ci#define SYS_XTENSA_ATOMIC_SET 1 /* set variable */ 2162306a36Sopenharmony_ci#define SYS_XTENSA_ATOMIC_EXG_ADD 2 /* exchange memory and add */ 2262306a36Sopenharmony_ci#define SYS_XTENSA_ATOMIC_ADD 3 /* add to memory */ 2362306a36Sopenharmony_ci#define SYS_XTENSA_ATOMIC_CMP_SWP 4 /* compare and swap */ 2462306a36Sopenharmony_ci#define SYS_XTENSA_COUNT 5 /* count */ 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci#endif /* _UAPI_XTENSA_UNISTD_H */ 27