summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-14 04:16:07 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-14 04:16:07 +0000
commitbee9d0858974b39288e381a58a6c905a96c8734f (patch)
tree3fd342243cecc29df7156605311becbb3dbe084e /sys/arch/sparc/include
parent9bbacd9b1871317d4827864fc86732dad43247c6 (diff)
sysctl for getting the cputype.
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r--sys/arch/sparc/include/cpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h
index b46edfb1170..ee501d4cc3f 100644
--- a/sys/arch/sparc/include/cpu.h
+++ b/sys/arch/sparc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.15 2002/06/07 21:33:43 nordin Exp $ */
+/* $OpenBSD: cpu.h,v 1.16 2002/06/14 04:16:06 art Exp $ */
/* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */
/*
@@ -53,12 +53,14 @@
*/
#define CPU_LED_BLINK 1 /* int: twiddle the power LED */
#define CPU_VSYNCBLANK 2 /* int: turn off monitors in *blank */
-#define CPU_MAXID 3 /* 2 valid machdep IDs */
+#define CPU_CPUTYPE 3 /* int: cpu type */
+#define CPU_MAXID 4 /* 3 valid machdep IDs */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
{ "led_blink", CTLTYPE_INT }, \
{ "vsyncblank", CTLTYPE_INT }, \
+ { "cputype", CTLTYPE_INT }, \
}
#ifdef _KERNEL