aboutsummaryrefslogtreecommitdiff
path: root/sys/isa
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1997-06-04 16:25:15 +0000
committerPaul Traina <pst@FreeBSD.org>1997-06-04 16:25:15 +0000
commit5ea6cb03f3950932bc57ce3e992c51a2bf9f3eb4 (patch)
tree5e29875b7e95cefaf18df80e08d8cd2662e4874d /sys/isa
parentf4084c05441b1966522cbb907622652c1209e1f9 (diff)
Notes
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/sio.c4
-rw-r--r--sys/isa/sioreg.h9
2 files changed, 9 insertions, 4 deletions
diff --git a/sys/isa/sio.c b/sys/isa/sio.c
index 70a1b1dda7f6..2fe4aa0d0fbb 100644
--- a/sys/isa/sio.c
+++ b/sys/isa/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.169 1997/06/01 20:42:01 phk Exp $
+ * $Id: sio.c,v 1.170 1997/06/04 04:52:39 pst Exp $
*/
#include "opt_comconsole.h"
@@ -346,7 +346,7 @@ static struct cdevsw sio_cdevsw = {
};
static int comconsole = -1;
-static volatile speed_t comdefaultrate = TTYDEF_SPEED;
+static volatile speed_t comdefaultrate = CONSPEED;
static u_int com_events; /* input chars + weighted output completions */
static Port_t siocniobase;
static int sio_timeout;
diff --git a/sys/isa/sioreg.h b/sys/isa/sioreg.h
index 97a737a07619..4a0c4cf87d8e 100644
--- a/sys/isa/sioreg.h
+++ b/sys/isa/sioreg.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)comreg.h 7.2 (Berkeley) 5/9/91
- * $Id: sioreg.h,v 1.8 1997/04/05 13:15:50 bde Exp $
+ * $Id: sioreg.h,v 1.9 1997/06/04 04:52:40 pst Exp $
*/
@@ -107,4 +107,9 @@
#define MSR_DCTS 0x01
/* speed to initialize to during chip tests */
-#define SIO_TEST_SPEED 9600
+#define SIO_TEST_SPEED 9600
+
+/* default serial console speed if not set with sysctl or probed from boot */
+#ifndef CONSPEED
+#define CONSPEED 9600
+#endif