summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-26 20:25:52 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-26 20:25:52 +0000
commit6e8e19c3ec5c652ee22bb615672cceb868d6ebe5 (patch)
treeffd29ca20e827e0bf3430ec5c65fdfcadf997e87 /sys/arch/alpha/include
parenta7926156e17b493f9d7b9ac07f4d7fe8d7a003ef (diff)
Provide some chipset information to usreland through sysctl.
The chipset support is not here yet, but the skeleton works.
Diffstat (limited to 'sys/arch/alpha/include')
-rw-r--r--sys/arch/alpha/include/cpu.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/alpha/include/cpu.h b/sys/arch/alpha/include/cpu.h
index 5ec15a90ba3..79bbc8cc65f 100644
--- a/sys/arch/alpha/include/cpu.h
+++ b/sys/arch/alpha/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.11 2001/02/12 11:12:35 art Exp $ */
+/* $OpenBSD: cpu.h,v 1.12 2001/06/26 20:25:50 art Exp $ */
/* $NetBSD: cpu.h,v 1.45 2000/08/21 02:03:12 thorpej Exp $ */
/*-
@@ -310,7 +310,12 @@ do { \
#define CPU_UNALIGNED_FIX 4 /* int: fix unaligned accesses */
#define CPU_UNALIGNED_SIGBUS 5 /* int: SIGBUS unaligned accesses */
#define CPU_BOOTED_KERNEL 6 /* string: booted kernel name */
-#define CPU_MAXID 7 /* 6 valid machdep IDs */
+#define CPU_CHIPSET 7 /* chipset information */
+#define CPU_MAXID 8 /* 6 valid machdep IDs */
+
+#define CPU_CHIPSET_MEM 1 /* PCI memory address */
+#define CPU_CHIPSET_BWX 2 /* PCI supports BWX */
+#define CPU_CHIPSET_TYPE 3 /* PCI chipset name */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
@@ -320,6 +325,7 @@ do { \
{ "unaligned_fix", CTLTYPE_INT }, \
{ "unaligned_sigbus", CTLTYPE_INT }, \
{ "booted_kernel", CTLTYPE_STRING }, \
+ { "chipset", CTLTYPE_NODE }, \
}
#ifdef _KERNEL