summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1996-11-25 23:09:35 +0000
committerniklas <niklas@openbsd.org>1996-11-25 23:09:35 +0000
commit539c036cded51c660d0c788f4dfc6d0637f0046a (patch)
tree99090670290ea89d7811eb68f8e0643ad99e14a0 /sys
parentSync with reality, + Serial console on COM2 (diff)
downloadwireguard-openbsd-539c036cded51c660d0c788f4dfc6d0637f0046a.tar.xz
wireguard-openbsd-539c036cded51c660d0c788f4dfc6d0637f0046a.zip
Make CONADDR and CONUNIT overrideable
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/comreg.h6
-rw-r--r--sys/dev/isa/comreg.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/ic/comreg.h b/sys/dev/ic/comreg.h
index 1769ac9b679..37e07efc312 100644
--- a/sys/dev/ic/comreg.h
+++ b/sys/dev/ic/comreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: comreg.h,v 1.4 1996/03/08 16:42:52 niklas Exp $ */
+/* $OpenBSD: comreg.h,v 1.5 1996/11/25 23:09:35 niklas Exp $ */
/* $NetBSD: comreg.h,v 1.8 1996/02/05 23:01:50 scottr Exp $ */
/*-
@@ -117,5 +117,9 @@
* WARNING: Serial console is assumed to be at COM1 address
* and CONUNIT must be 0.
*/
+#ifndef CONADDR
#define CONADDR (0x3f8)
+#endif
+#ifndef CONUNIT
#define CONUNIT (0)
+#endif
diff --git a/sys/dev/isa/comreg.h b/sys/dev/isa/comreg.h
index 1769ac9b679..37e07efc312 100644
--- a/sys/dev/isa/comreg.h
+++ b/sys/dev/isa/comreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: comreg.h,v 1.4 1996/03/08 16:42:52 niklas Exp $ */
+/* $OpenBSD: comreg.h,v 1.5 1996/11/25 23:09:35 niklas Exp $ */
/* $NetBSD: comreg.h,v 1.8 1996/02/05 23:01:50 scottr Exp $ */
/*-
@@ -117,5 +117,9 @@
* WARNING: Serial console is assumed to be at COM1 address
* and CONUNIT must be 0.
*/
+#ifndef CONADDR
#define CONADDR (0x3f8)
+#endif
+#ifndef CONUNIT
#define CONUNIT (0)
+#endif