blob: 1c7a6c2a28c96017b0449e0cc0f1e2874727c626 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
wdenk6069ff22003-02-28 00:49:47 +00002/*
wdenk6069ff22003-02-28 00:49:47 +00003 * Copyright (C) 1996, 1999, 2001 Ralf Baechle
4 * Copyright (C) 1999 Silicon Graphics, Inc.
5 * Copyright (C) 2001 MIPS Technologies, Inc.
wdenk6069ff22003-02-28 00:49:47 +00006 */
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 */