wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 1 | /* |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 2 | * Copyright (C) 1996, 1999, 2001 Ralf Baechle |
| 3 | * Copyright (C) 1999 Silicon Graphics, Inc. |
| 4 | * Copyright (C) 2001 MIPS Technologies, Inc. |
Daniel Schwierzeck | a518653 | 2016-01-12 21:48:27 +0100 | [diff] [blame] | 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0 |
wdenk | 4fc9569 | 2003-02-28 00:49:47 +0000 | [diff] [blame] | 7 | */ |
| 8 | #ifndef __ASM_SGIDEFS_H |
| 9 | #define __ASM_SGIDEFS_H |
| 10 | |
| 11 | /* |
| 12 | * Using a Linux compiler for building Linux seems logic but not to |
| 13 | * everybody. |
| 14 | */ |
| 15 | #if 0 /* ndef __linux__ */ |
| 16 | #error Use a Linux compiler or give up. |
| 17 | #endif |
| 18 | |
| 19 | /* |
| 20 | * Definitions for the ISA levels |
| 21 | * |
| 22 | * With the introduction of MIPS32 / MIPS64 instruction sets definitions |
| 23 | * MIPS ISAs are no longer subsets of each other. Therefore comparisons |
| 24 | * on these symbols except with == may result in unexpected results and |
| 25 | * are forbidden! |
| 26 | */ |
| 27 | #define _MIPS_ISA_MIPS1 1 |
| 28 | #define _MIPS_ISA_MIPS2 2 |
| 29 | #define _MIPS_ISA_MIPS3 3 |
| 30 | #define _MIPS_ISA_MIPS4 4 |
| 31 | #define _MIPS_ISA_MIPS5 5 |
| 32 | #define _MIPS_ISA_MIPS32 6 |
| 33 | #define _MIPS_ISA_MIPS64 7 |
| 34 | |
| 35 | /* |
| 36 | * Subprogram calling convention |
| 37 | */ |
| 38 | #define _MIPS_SIM_ABI32 1 |
| 39 | #define _MIPS_SIM_NABI32 2 |
| 40 | #define _MIPS_SIM_ABI64 3 |
| 41 | |
| 42 | #endif /* __ASM_SGIDEFS_H */ |