xref: /OK3568_Linux_fs/kernel/arch/mips/include/uapi/asm/siginfo.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
4*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
5*4882a593Smuzhiyun  * for more details.
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Copyright (C) 1998, 1999, 2001, 2003 Ralf Baechle
8*4882a593Smuzhiyun  * Copyright (C) 2000, 2001 Silicon Graphics, Inc.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun #ifndef _UAPI_ASM_SIGINFO_H
11*4882a593Smuzhiyun #define _UAPI_ASM_SIGINFO_H
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #define __ARCH_SIGEV_PREAMBLE_SIZE (sizeof(long) + 2*sizeof(int))
15*4882a593Smuzhiyun #undef __ARCH_SI_TRAPNO /* exception code needs to fill this ...  */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #define __ARCH_HAS_SWAPPED_SIGINFO
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #include <asm-generic/siginfo.h>
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun /*
22*4882a593Smuzhiyun  * si_code values
23*4882a593Smuzhiyun  * Again these have been chosen to be IRIX compatible.
24*4882a593Smuzhiyun  */
25*4882a593Smuzhiyun #undef SI_ASYNCIO
26*4882a593Smuzhiyun #undef SI_TIMER
27*4882a593Smuzhiyun #undef SI_MESGQ
28*4882a593Smuzhiyun #define SI_ASYNCIO	-2	/* sent by AIO completion */
29*4882a593Smuzhiyun #define SI_TIMER	-3	/* sent by timer expiration */
30*4882a593Smuzhiyun #define SI_MESGQ	-4	/* sent by real time mesq state change */
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #endif /* _UAPI_ASM_SIGINFO_H */
33