xref: /netbsd/sys/arch/sgimips/include/machtype.h (revision bf9ec67e)
1 /*	$NetBSD: machtype.h,v 1.3 2002/03/13 13:12:28 simonb Exp $	*/
2 
3 /*
4  * Copyright (c) 2001 Rafal K. Boni
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. The name of the author may not be used to endorse or promote products
16  *    derived from this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef __MACHTYPE__
31 #define __MACHTYPE__
32 
33 /*
34  * SGI machine types and known subtypes.  Info cribbed from ../README.IPn
35  */
36 #define MACH_SGI_IP2		2	/* IRIS 3000 */
37 #define MACH_SGI_IP4		4	/* Generic 4D/50-85 */
38 #define MACH_SGI_IP5		5	/* 4D/1x0 */
39 #define MACH_SGI_IP6		6	/* 4D/20 */
40 #define MACH_SGI_IP7		7	/* 4D/2x0, 4D/3x0, 4D/4x0 */
41 #define MACH_SGI_IP9		9	/* 4D/210 */
42 #define MACH_SGI_IP10		10	/* 4D/25 */
43 #define MACH_SGI_IP12		12	/* 4D/30, 4D/35, Indigo R3K */
44 #define MACH_SGI_IP17		17	/* Crimson */
45 #define MACH_SGI_IP19		19	/* Onyx, Challenge M/L(/XL?) */
46 #define MACH_SGI_IP20		20	/* Indigo R4K */
47 #define MACH_SGI_IP21		21	/* Power Challenge, Power Onyx */
48 #define MACH_SGI_IP22		22	/* Indigo2, Indy, Challenge S */
49 #define MACH_SGI_IP25		25	/* Power Challenge R10K */
50 #define MACH_SGI_IP26		26	/* Power Indigo2 R8K ("Teton") */
51 #define MACH_SGI_IP27		27	/* Origin 200, Origin 2000, Onyx2 */
52 #define MACH_SGI_IP28		28	/* Power Indigo2 R10K ("Pacecar") */
53 #define MACH_SGI_IP30		30	/* Octane */
54 #define MACH_SGI_IP32		32	/* O2 ("Moosehead") */
55 #define MACH_SGI_IP35		35	/* SN1 (?) */
56 
57 /*
58  * SGI machine subtypes
59  */
60 #define MACH_SGI_IP4_4D_50_70		40	/* 4D/50, 4D/70 */
61 #define MACH_SGI_IP4_4D_60_80_85	45	/* 4D/60, 4D/80, 4D/85 */
62 
63 #define MACH_SGI_IP7_4D_3X0		13	/* 4D/3x0 */
64 #define MACH_SGI_IP7_4D_4X0		15	/* 4D/4x0 */
65 
66 #define MACH_SGI_IP22_FULLHOUSE		22	/* Indigo2 */
67 #define MACH_SGI_IP22_GUINESS		24	/* Indy, Challenge S */
68 
69 extern int mach_type;		/* IPxx type */
70 extern int mach_subtype;	/* subtype: eg., Guiness/Fullhouse for IP22 */
71 extern int mach_boardrev;	/* machine board revision, in case it matters */
72 
73 #endif /* __MACHTYPE__ */
74