summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-10-15 14:04:19 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-10-15 14:04:19 +0000
commit3e4ed020b50433480ff6cb3280d3b5356afefc3f (patch)
tree2cabc937a8d2c999adcae830bda45a8a33ece232 /sys/dev
parent4cf4912d971576f577d1a4bbfea15aac78e6b4bc (diff)
Allow setting the baud rate base from an external def
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/comreg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/comreg.h b/sys/dev/ic/comreg.h
index 8d3fc00cb6d..fdbd1db4fc5 100644
--- a/sys/dev/ic/comreg.h
+++ b/sys/dev/ic/comreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: comreg.h,v 1.6 1996/12/10 22:28:30 deraadt Exp $ */
+/* $OpenBSD: comreg.h,v 1.7 1997/10/15 14:04:18 pefo Exp $ */
/* $NetBSD: comreg.h,v 1.8 1996/02/05 23:01:50 scottr Exp $ */
/*-
@@ -38,7 +38,9 @@
#include <dev/ic/ns16550reg.h>
+#ifndef COM_FREQ /* allow to be set externally */
#define COM_FREQ 1843200 /* 16-bit baud rate divisor */
+#endif
#define COM_TOLERANCE 30 /* baud rate tolerance, in 0.1% units */
/* interrupt enable register */