Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/dev Just don't force the baud rate in the dri...
details: https://anonhg.NetBSD.org/src/rev/ef22fcb87d5b
branches: trunk
changeset: 483842:ef22fcb87d5b
user: pk <pk%NetBSD.org@localhost>
date: Sun Mar 19 14:58:02 2000 +0000
description:
Just don't force the baud rate in the driver, ever.
diffstat:
sys/arch/sparc/dev/zs.c | 20 +++-----------------
1 files changed, 3 insertions(+), 17 deletions(-)
diffs (41 lines):
diff -r e5e3354c9e0c -r ef22fcb87d5b sys/arch/sparc/dev/zs.c
--- a/sys/arch/sparc/dev/zs.c Sun Mar 19 14:56:52 2000 +0000
+++ b/sys/arch/sparc/dev/zs.c Sun Mar 19 14:58:02 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.76 2000/03/19 13:22:14 pk Exp $ */
+/* $NetBSD: zs.c,v 1.77 2000/03/19 14:58:02 pk Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -127,16 +127,6 @@
/* ZS channel used as the console device (if any) */
void *zs_conschan_get, *zs_conschan_put;
-/* Default speed for each channel */
-static int zs_defspeed[NZS][2] = {
- { 9600, /* ttya */
- 9600 }, /* ttyb */
- { 1200, /* keyboard */
- 1200 }, /* mouse */
- { 9600, /* ttyc */
- 9600 }, /* ttyd */
-};
-
static u_char zs_init_reg[16] = {
0, /* 0: CMD (reset, etc.) */
0, /* 1: No interrupts yet. */
@@ -420,12 +410,8 @@
bcopy(zs_init_reg, cs->cs_creg, 16);
bcopy(zs_init_reg, cs->cs_preg, 16);
- /* XXX: Get these from the PROM properties! */
- /* XXX: See the mvme167 code. Better. */
- if (zsc_args.hwflags & ZS_HWFLAG_CONSOLE)
- cs->cs_defspeed = zs_get_speed(cs);
- else
- cs->cs_defspeed = zs_defspeed[zsc->zsc_promunit][channel];
+ /* XXX: Consult PROM properties for this?! */
+ cs->cs_defspeed = zs_get_speed(cs);
cs->cs_defcflag = zs_def_cflag;
/* Make these correspond to cs_defcflag (-crtscts) */
Home |
Main Index |
Thread Index |
Old Index