cputypes.h revision 130036
11590Srgrimes/* 21590Srgrimes * Copyright (c) 1993 Christopher G. Demetriou 31590Srgrimes * All rights reserved. 41590Srgrimes * 51590Srgrimes * Redistribution and use in source and binary forms, with or without 61590Srgrimes * modification, are permitted provided that the following conditions 71590Srgrimes * are met: 81590Srgrimes * 1. Redistributions of source code must retain the above copyright 91590Srgrimes * notice, this list of conditions and the following disclaimer. 101590Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111590Srgrimes * notice, this list of conditions and the following disclaimer in the 121590Srgrimes * documentation and/or other materials provided with the distribution. 131590Srgrimes * 3. The name of the author may not be used to endorse or promote products 141590Srgrimes * derived from this software without specific prior written permission 151590Srgrimes * 161590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 171590Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 181590Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 191590Srgrimes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 201590Srgrimes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 211590Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 221590Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 231590Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 241590Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 251590Srgrimes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 261590Srgrimes * 271590Srgrimes * $FreeBSD: head/sys/i386/include/cputypes.h 130036 2004-06-03 21:14:53Z phk $ 281590Srgrimes */ 291590Srgrimes 301590Srgrimes#ifndef _MACHINE_CPUTYPES_H_ 311590Srgrimes#define _MACHINE_CPUTYPES_H_ 321590Srgrimes 331590Srgrimes/* 3487674Smarkm * Classes of processor. 3587674Smarkm */ 3687674Smarkm#define CPUCLASS_286 0 3787674Smarkm#define CPUCLASS_386 1 381590Srgrimes#define CPUCLASS_486 2 3987674Smarkm#define CPUCLASS_586 3 4028694Scharnier#define CPUCLASS_686 4 411590Srgrimes 421590Srgrimes/* 431590Srgrimes * Kinds of processor. 441590Srgrimes */ 451590Srgrimes#define CPU_286 0 /* Intel 80286 */ 461590Srgrimes#define CPU_386SX 1 /* Intel 80386SX */ 471590Srgrimes#define CPU_386 2 /* Intel 80386DX */ 481590Srgrimes#define CPU_486SX 3 /* Intel 80486SX */ 491590Srgrimes#define CPU_486 4 /* Intel 80486DX */ 501590Srgrimes#define CPU_586 5 /* Intel P.....m (I hate lawyers; it's TM) */ 511590Srgrimes#define CPU_486DLC 6 /* Cyrix 486DLC */ 528874Srgrimes#define CPU_686 7 /* Pentium Pro */ 531590Srgrimes#define CPU_M1SC 8 /* Cyrix M1sc (aka 5x86) */ 541590Srgrimes#define CPU_M1 9 /* Cyrix M1 (aka 6x86) */ 551590Srgrimes#define CPU_BLUE 10 /* IBM BlueLighting CPU */ 561590Srgrimes#define CPU_M2 11 /* Cyrix M2 (aka enhanced 6x86 with MMX */ 571590Srgrimes#define CPU_NX586 12 /* NexGen (now AMD) 586 */ 581590Srgrimes#define CPU_CY486DX 13 /* Cyrix 486S/DX/DX2/DX4 */ 5953073Sdavidn#define CPU_PII 14 /* Intel Pentium II */ 601590Srgrimes#define CPU_PIII 15 /* Intel Pentium III */ 611590Srgrimes#define CPU_P4 16 /* Intel Pentium 4 */ 621590Srgrimes#define CPU_GEODE1100 17 /* NS Geode SC1100 */ 6353073Sdavidn 6453073Sdavidn#ifndef LOCORE 651590Srgrimesextern int cpu; 661590Srgrimesextern int cpu_class; 671590Srgrimes#endif 689987Swollman 691590Srgrimes#endif /* !_MACHINE_CPUTYPES_H_ */ 701590Srgrimes