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$
28553Srgrimes */
29553Srgrimes
30719Swollman#ifndef _MACHINE_CPUTYPES_H_
3130805Sbde#define	_MACHINE_CPUTYPES_H_
32719Swollman
33553Srgrimes/*
3430805Sbde * Classes of processor.
35553Srgrimes */
36185341Sjkim#define	CPUCLASS_X86		0	/* X86 */
37185341Sjkim#define	CPUCLASS_K8		1	/* K8 AMD64 class */
38553Srgrimes
39553Srgrimes/*
4030805Sbde * Kinds of processor.
41553Srgrimes */
42185341Sjkim#define	CPU_X86			0	/* Intel */
43185341Sjkim#define	CPU_CLAWHAMMER		1	/* AMD Clawhammer */
44185341Sjkim#define	CPU_SLEDGEHAMMER	2	/* AMD Sledgehammer */
4530805Sbde
46185341Sjkim/*
47185341Sjkim * Vendors of processor.
48185341Sjkim */
49185341Sjkim#define	CPU_VENDOR_AMD		0x1022		/* AMD */
50186797Sjkim#define	CPU_VENDOR_IDT		0x111d		/* Centaur/IDT/VIA */
51185341Sjkim#define	CPU_VENDOR_INTEL	0x8086		/* Intel */
52186797Sjkim#define	CPU_VENDOR_CENTAUR	CPU_VENDOR_IDT
53185341Sjkim
5430805Sbde#ifndef LOCORE
5530805Sbdeextern int	cpu;
5630805Sbdeextern int	cpu_class;
5730805Sbde#endif
5830805Sbde
5930805Sbde#endif /* !_MACHINE_CPUTYPES_H_ */
60