summaryrefslogtreecommitdiff
path: root/sys/arch/vax/include/ka650.h
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>1997-09-10 11:47:13 +0000
committerMats O Jansson <maja@cvs.openbsd.org>1997-09-10 11:47:13 +0000
commitccaf04f4bb2a93a41db1352978899ff3191f9193 (patch)
treebabab3fd533e6bdec85087b8fd342e2616556e73 /sys/arch/vax/include/ka650.h
parent7ee17d6b3862934e2abfa86ded9fdde7be1133ca (diff)
Sync with NetBSD 970516. -moj
Diffstat (limited to 'sys/arch/vax/include/ka650.h')
-rw-r--r--sys/arch/vax/include/ka650.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/vax/include/ka650.h b/sys/arch/vax/include/ka650.h
index 51984b1cea0..8833438dc99 100644
--- a/sys/arch/vax/include/ka650.h
+++ b/sys/arch/vax/include/ka650.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: ka650.h,v 1.5 1997/05/29 00:04:42 niklas Exp $ */
-/* $NetBSD: ka650.h,v 1.4 1996/05/19 16:43:20 ragge Exp $ */
+/* $OpenBSD: ka650.h,v 1.6 1997/09/10 11:47:07 maja Exp $ */
+/* $NetBSD: ka650.h,v 1.5 1997/02/12 17:50:36 ragge Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
@@ -235,6 +235,14 @@ struct ka650_ipcr {
#define KA650ROM_GETS 0x20060010 /* (jsb) read string with prompt */
#define KA650_CONSTYPE 0x20140401 /* byte at which console type resides */
+/*
+ * Some useful macros
+ */
+#define GETCPUTYPE(x) ((x >> 24) & 0xff)
+#define GETSYSSUBT(x) ((x >> 8) & 0xff)
+#define GETFRMREV(x) ((x >> 16) & 0xff)
+#define GETCODREV(x) (x & 0xff)
+
/* prototypes */
struct sbi_attach_args;