musl: add sgidefs.h
[openwrt.git] / toolchain / musl / include / sgidefs.h
1 /* Copyright (C) 1996, 1997, 1998, 2003, 2004 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
3    Contributed by Ralf Baechle <ralf@gnu.org>.
4
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
14
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18    02111-1307 USA.  */
19
20 #ifndef _SGIDEFS_H
21 #define _SGIDEFS_H      1
22
23 /*
24  * A crude hack to stop <asm/sgidefs.h>
25  */
26 #undef __ASM_SGIDEFS_H
27 #define __ASM_SGIDEFS_H
28
29 /*
30  * And remove any damage it might have already done
31  */
32 #undef _MIPS_ISA_MIPS1
33 #undef _MIPS_ISA_MIPS2
34 #undef _MIPS_ISA_MIPS3
35 #undef _MIPS_ISA_MIPS4
36 #undef _MIPS_ISA_MIPS5
37 #undef _MIPS_ISA_MIPS32
38 #undef _MIPS_ISA_MIPS64
39
40 #undef _MIPS_SIM_ABI32
41 #undef _MIPS_SIM_NABI32
42 #undef _MIPS_SIM_ABI64
43
44 /*
45  * Definitions for the ISA level
46  */
47 #define _MIPS_ISA_MIPS1 1
48 #define _MIPS_ISA_MIPS2 2
49 #define _MIPS_ISA_MIPS3 3
50 #define _MIPS_ISA_MIPS4 4
51 #define _MIPS_ISA_MIPS5 5
52 #define _MIPS_ISA_MIPS32 6
53 #define _MIPS_ISA_MIPS64 7
54
55 /*
56  * Subprogram calling convention
57  */
58 #ifndef _ABIO32
59 # define _ABIO32                1
60 #endif
61 #define _MIPS_SIM_ABI32         _ABIO32
62
63 #ifndef _ABIN32
64 # define _ABIN32                2
65 #endif
66 #define _MIPS_SIM_NABI32        _ABIN32
67
68 #ifndef _ABI64
69 # define _ABI64                 3
70 #endif
71 #define _MIPS_SIM_ABI64         _ABI64
72
73 #endif /* sgidefs.h */