spi: efm32: Convert to use GPIO descriptors
[linux/fpc-iii.git] / arch / xtensa / include / uapi / asm / unistd.h
blobe67ccdd117d82708803d0269d8bf8f9bd9ab34e6
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_XTENSA_UNISTD_H
3 #define _UAPI_XTENSA_UNISTD_H
5 #include <asm/unistd_32.h>
7 #define __ARCH_WANT_SYS_OLDUMOUNT
9 /*
10 * sysxtensa syscall handler
12 * int sysxtensa (SYS_XTENSA_ATOMIC_SET, ptr, val, unused);
13 * int sysxtensa (SYS_XTENSA_ATOMIC_ADD, ptr, val, unused);
14 * int sysxtensa (SYS_XTENSA_ATOMIC_EXG_ADD, ptr, val, unused);
15 * int sysxtensa (SYS_XTENSA_ATOMIC_CMP_SWP, ptr, oldval, newval);
16 * a2 a6 a3 a4 a5
19 #define SYS_XTENSA_RESERVED 0 /* don't use this */
20 #define SYS_XTENSA_ATOMIC_SET 1 /* set variable */
21 #define SYS_XTENSA_ATOMIC_EXG_ADD 2 /* exchange memory and add */
22 #define SYS_XTENSA_ATOMIC_ADD 3 /* add to memory */
23 #define SYS_XTENSA_ATOMIC_CMP_SWP 4 /* compare and swap */
24 #define SYS_XTENSA_COUNT 5 /* count */
26 #endif /* _UAPI_XTENSA_UNISTD_H */