diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1998-06-04 05:01:46 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1998-06-04 05:01:46 +0000 |
commit | dbe74675512cc991ef18264fdadc27705665d1cb (patch) | |
tree | 23aa46078743996da1d61f0a46d0b11dea545dda /sys | |
parent | d6fd7102298bf433e694312c5164e8d82582bf91 (diff) |
cpuid return values for sysctl
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/include/cpu.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index 01efc7cd6f0..70e367505a4 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.22 1998/05/25 06:52:36 downsj Exp $ */ +/* $OpenBSD: cpu.h,v 1.23 1998/06/04 05:01:45 downsj Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -244,7 +244,10 @@ void setconf __P((void)); #define CPU_BLK2CHR 3 /* convert blk maj into chr one */ #define CPU_CHR2BLK 4 /* convert chr maj into blk one */ #define CPU_ALLOWAPERTURE 5 /* allow mmap of /dev/xf86 */ -#define CPU_MAXID 6 /* number of valid machdep ids */ +#define CPU_CPUVENDOR 6 /* cpuid vendor string */ +#define CPU_CPUID 7 /* cpuid */ +#define CPU_CPUFEATURE 8 /* cpuid features */ +#define CPU_MAXID 9 /* number of valid machdep ids */ #define CTL_MACHDEP_NAMES { \ { 0, 0 }, \ @@ -253,6 +256,9 @@ void setconf __P((void)); { "blk2chr", CTLTYPE_STRUCT }, \ { "chr2blk", CTLTYPE_STRUCT }, \ { "allowaperture", CTLTYPE_INT }, \ + { "cpuvendor", CTLTYPE_STRING }, \ + { "cpuid", CTLTYPE_INT }, \ + { "cpufeature", CTLTYPE_INT }, \ } #endif /* !_I386_CPU_H_ */ |