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