Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mac68k/dev Ken'ichi Ishizaka discovered that some d...



details:   https://anonhg.NetBSD.org/src/rev/e19f10959027
branches:  trunk
changeset: 497098:e19f10959027
user:      scottr <scottr%NetBSD.org@localhost>
date:      Tue Sep 19 05:17:55 2000 +0000

description:
Ken'ichi Ishizaka discovered that some devices, e.g. the A3 Mouse, don't
respond in the allotted time if they're told to TALK immediately after
completing a LISTEN command.  Experimentation with adb_op_sync() yielded
consistent results when the timeout was increased from the documented
6900 usec to 8000 usec, so we'll make that change here.

(Accurate and complete documentation of the hardware sure would help...)

diffstat:

 sys/arch/mac68k/dev/adb.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 5d833121071b -r e19f10959027 sys/arch/mac68k/dev/adb.c
--- a/sys/arch/mac68k/dev/adb.c Tue Sep 19 03:17:59 2000 +0000
+++ b/sys/arch/mac68k/dev/adb.c Tue Sep 19 05:17:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adb.c,v 1.37 2000/07/03 08:59:26 scottr Exp $  */
+/*     $NetBSD: adb.c,v 1.38 2000/09/19 05:17:55 scottr Exp $  */
 
 /*
  * Copyright (C) 1994  Bradley A. Grantham
@@ -286,8 +286,7 @@
                 *  - stop bit (with SRQ): 140 usec
                 * Total: 6900 usec
                 */
-               tmout = 6900;
-               for (tmout = 6900; !flag && tmout >= 10; tmout -= 10)
+               for (tmout = 8000; !flag && tmout >= 10; tmout -= 10)
                        delay(10);
                if (!flag && tmout > 0)
                        delay(tmout);



Home | Main Index | Thread Index | Old Index