cputypes.h revision 139731
1139731Simp/*- 2553Srgrimes * Copyright (c) 1993 Christopher G. Demetriou 3553Srgrimes * All rights reserved. 4553Srgrimes * 5553Srgrimes * Redistribution and use in source and binary forms, with or without 6553Srgrimes * modification, are permitted provided that the following conditions 7553Srgrimes * are met: 8553Srgrimes * 1. Redistributions of source code must retain the above copyright 9553Srgrimes * notice, this list of conditions and the following disclaimer. 10553Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 11553Srgrimes * notice, this list of conditions and the following disclaimer in the 12553Srgrimes * documentation and/or other materials provided with the distribution. 13553Srgrimes * 3. The name of the author may not be used to endorse or promote products 1413765Smpp * derived from this software without specific prior written permission 15553Srgrimes * 16553Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17553Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18553Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19553Srgrimes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20553Srgrimes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21553Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22553Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23553Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24553Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25553Srgrimes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26553Srgrimes * 2750477Speter * $FreeBSD: head/sys/amd64/include/cputypes.h 139731 2005-01-05 20:17:21Z imp $ 28553Srgrimes */ 29553Srgrimes 30719Swollman#ifndef _MACHINE_CPUTYPES_H_ 3130805Sbde#define _MACHINE_CPUTYPES_H_ 32719Swollman 33553Srgrimes/* 3430805Sbde * Classes of processor. 35553Srgrimes */ 36114349Speter#define CPUCLASS_X86 0 /* X86 */ 37114349Speter#define CPUCLASS_K8 1 /* K8 AMD64 class */ 38553Srgrimes 39553Srgrimes/* 4030805Sbde * Kinds of processor. 41553Srgrimes */ 42114349Speter#define CPU_X86 0 /* Intel */ 43114349Speter#define CPU_CLAWHAMMER 1 /* AMD Clawhammer */ 44114349Speter#define CPU_SLEDGEHAMMER 2 /* AMD Sledgehammer */ 4530805Sbde 4630805Sbde#ifndef LOCORE 4730805Sbdeextern int cpu; 4830805Sbdeextern int cpu_class; 4930805Sbde#endif 5030805Sbde 5130805Sbde#endif /* !_MACHINE_CPUTYPES_H_ */ 52