cputypes.h revision 36290
1307070Simp/*
2307070Simp * Copyright (c) 1993 Christopher G. Demetriou
3307070Simp * All rights reserved.
4307070Simp *
5307070Simp * Redistribution and use in source and binary forms, with or without
6307070Simp * modification, are permitted provided that the following conditions
7307070Simp * are met:
8307070Simp * 1. Redistributions of source code must retain the above copyright
9307070Simp *    notice, this list of conditions and the following disclaimer.
10307070Simp * 2. Redistributions in binary form must reproduce the above copyright
11307070Simp *    notice, this list of conditions and the following disclaimer in the
12307070Simp *    documentation and/or other materials provided with the distribution.
13307070Simp * 3. The name of the author may not be used to endorse or promote products
14307070Simp *    derived from this software without specific prior written permission
15307070Simp *
16307070Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17307070Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18307070Simp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19307070Simp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20307070Simp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21307070Simp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22307070Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23307070Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24307070Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25307070Simp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26307070Simp *
27307070Simp *	$Id: cputypes.h,v 1.10 1997/10/28 11:43:50 bde Exp $
28307070Simp */
29307070Simp
30307070Simp#ifndef _MACHINE_CPUTYPES_H_
31307070Simp#define	_MACHINE_CPUTYPES_H_
32307070Simp
33307070Simp/*
34307070Simp * Classes of processor.
35307070Simp */
36307070Simp#define	CPUCLASS_286	0
37307070Simp#define	CPUCLASS_386	1
38307070Simp#define	CPUCLASS_486	2
39307070Simp#define	CPUCLASS_586	3
40307070Simp#define	CPUCLASS_686	4
41307070Simp
42307070Simp/*
43307070Simp * Kinds of processor.
44307070Simp */
45307070Simp#define	CPU_286		0	/* Intel 80286 */
46307070Simp#define	CPU_386SX	1	/* Intel 80386SX */
47307070Simp#define	CPU_386		2	/* Intel 80386DX */
48307070Simp#define	CPU_486SX	3	/* Intel 80486SX */
49307070Simp#define	CPU_486		4	/* Intel 80486DX */
50307070Simp#define	CPU_586		5	/* Intel P.....m (I hate lawyers; it's TM) */
51307070Simp#define	CPU_486DLC	6	/* Cyrix 486DLC */
52307070Simp#define	CPU_686		7	/* Pentium Pro */
53307070Simp#define	CPU_M1SC	8	/* Cyrix M1sc (aka 5x86) */
54307070Simp#define	CPU_M1		9	/* Cyrix M1 (aka 6x86) */
55307070Simp#define	CPU_BLUE	10	/* IBM BlueLighting CPU */
56307070Simp#define	CPU_M2		11	/* Cyrix M2 (aka enhanced 6x86 with MMX */
57307070Simp#define	CPU_NX586	12	/* NexGen (now AMD) 586 */
58307070Simp#define	CPU_CY486DX	13	/* Cyrix 486S/DX/DX2/DX4 */
59307070Simp#define CPU_PII		14	/* Intel Pentium II */
60307070Simp
61307070Simp#ifndef LOCORE
62307070Simpstruct cpu_nameclass {
63307070Simp	char	*cpu_name;
64307070Simp	int	cpu_class;
65307070Simp};
66307070Simp
67307070Simpextern int	cpu;
68307070Simpextern int	cpu_class;
69307070Simp#endif
70307070Simp
71307070Simp#endif /* !_MACHINE_CPUTYPES_H_ */
72307070Simp