summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/dioreg.h
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-02-03 04:48:09 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-02-03 04:48:09 +0000
commit3dc2bab62b31e6caa1a00fece6004504f8e08033 (patch)
treec3a44aeae3938880a95422164280589feafe53aa /sys/arch/hp300/dev/dioreg.h
parent08e8d869ff1f7248522b236f25044d2744c972dd (diff)
Merge new config(8) support from NetBSD, by Jason Thorpe.
Also add siginfo glue, BOOT_CONFIG, and various other changes.
Diffstat (limited to 'sys/arch/hp300/dev/dioreg.h')
-rw-r--r--sys/arch/hp300/dev/dioreg.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/dioreg.h b/sys/arch/hp300/dev/dioreg.h
index a5d096dbd5b..5d0d9a1efd9 100644
--- a/sys/arch/hp300/dev/dioreg.h
+++ b/sys/arch/hp300/dev/dioreg.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: dioreg.h,v 1.1 1997/01/12 15:12:26 downsj Exp $ */
-/* $NetBSD: dioreg.h,v 1.1 1996/12/17 08:41:04 thorpej Exp $ */
+/* $OpenBSD: dioreg.h,v 1.2 1997/02/03 04:47:20 downsj Exp $ */
+/* $NetBSD: dioreg.h,v 1.3 1997/01/30 09:18:40 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -90,6 +90,11 @@
#define DIO_SCMAX(machineid) ((machineid) == HP_320 ? 32 : 256)
/*
+ * Base of DIO-II select codes.
+ */
+#define DIOII_SCBASE 132
+
+/*
* Macro that returns true if a select code lies within
* the select code `hole'.
*/
@@ -99,7 +104,7 @@
* Macros to determine if device is DIO or DIO-II.
*/
#define DIO_ISDIO(scode) ((scode) >= 0 && (scode) < 32)
-#define DIO_ISDIOII(scode) ((scode) >= 132 && (scode) < 256)
+#define DIO_ISDIOII(scode) ((scode) >= DIOII_SCBASE && (scode) < 256)
/*
* Macro to determine if device is a framebuffer, given the