summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-25 23:09:36 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-25 23:09:36 +0000
commit94b1043df28ee408c15a460fde245e718f909a33 (patch)
treec47d76c4c9e73203e1d019d05edc3f6aca6a5812 /sys
parentb129dd535a96cd4a40fd379254f6f2da4bdff57f (diff)
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