1/*	$NetBSD: machtype.h,v 1.6 2006/12/22 01:32:37 rumble 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	MACH_SGI_IP6	/* 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, Challenge M */
49#define MACH_SGI_IP24	MACH_SGI_IP22	/* Indy, Challenge S */
50#define MACH_SGI_IP25		25	/* Power Challenge R10K */
51#define MACH_SGI_IP26		26	/* Power Indigo2 R8K ("Teton") */
52#define MACH_SGI_IP27		27	/* Origin 200, Origin 2000, Onyx2 */
53#define MACH_SGI_IP28		28	/* Power Indigo2 R10K ("Pacecar") */
54#define MACH_SGI_IP30		30	/* Octane */
55#define MACH_SGI_IP32		32	/* O2 ("Moosehead") */
56#define MACH_SGI_IP35		35	/* SN1 (?) */
57
58/*
59 * SGI machine subtypes
60 */
61#define MACH_SGI_IP4_4D_50_70		40	/* 4D/50, 4D/70 */
62#define MACH_SGI_IP4_4D_60_80_85	45	/* 4D/60, 4D/80, 4D/85 */
63
64#define MACH_SGI_IP7_4D_3X0		13	/* 4D/3x0 */
65#define MACH_SGI_IP7_4D_4X0		15	/* 4D/4x0 */
66
67#define MACH_SGI_IP12_4D_3X		120	/* Personal Iris 4d/3x */
68#define MACH_SGI_IP12_VIP12		121	/* IP12 on 6U VME card */
69#define MACH_SGI_IP12_HP1		122	/* Hollywood (Indigo R3k) */
70#define MACH_SGI_IP12_HPLC		123	/* Hollywood Light */
71
72#define MACH_SGI_IP22_FULLHOUSE		22	/* Indigo2 */
73#define MACH_SGI_IP22_GUINNESS		24	/* Indy, Challenge S */
74
75extern int mach_type;		/* IPxx type */
76extern int mach_subtype;	/* subtype: eg., Guinness/Fullhouse for IP22 */
77extern int mach_boardrev;	/* machine board revision, in case it matters */
78
79#endif /* __MACHTYPE__ */
80