From owner-freebsd-current Wed Sep 25 07:32:45 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA18382 for current-outgoing; Wed, 25 Sep 1996 07:32:45 -0700 (PDT) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA18344 for ; Wed, 25 Sep 1996 07:32:41 -0700 (PDT) Received: by halloran-eldar.lcs.mit.edu; (5.65v3.2/1.1.8.2/19Aug95-0530PM) id AA23708; Wed, 25 Sep 1996 10:31:47 -0400 Date: Wed, 25 Sep 1996 10:31:47 -0400 From: Garrett Wollman Message-Id: <9609251431.AA23708@halloran-eldar.lcs.mit.edu> To: Bruce Evans Cc: current@freebsd.org Subject: Boot-block keyboard probe In-Reply-To: <199609250438.OAA27188@godzilla.zeta.org.au> References: <199609250438.OAA27188@godzilla.zeta.org.au> Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk [Excessive CC list trimmed, discussion moved to -current.] < said: > I think the keyboard controller always responds with KB_RESEND (0xFE) > after a timeout. The probe thinks that this is from the keyboard and > returns "Found". Thus the probe only works if its own timeout is too > short. It worked better in rev.1.1 where not-Found was returned if > KB_RESEND was received. Apparently there were problems with attached > keyboards also returning KB_RESEND. We applied the following patch to ship a version with working serial console support: diff -c -r1.1.1.1 -r1.2 *** probe_keyboard.c 1996/05/31 19:19:34 1.1.1.1 --- probe_keyboard.c 1996/06/03 17:24:08 1.2 *************** *** 85,96 **** printf("gotres\n"); #endif if (!retries) { - if (val == KB_RESEND) { - #ifdef DEBUG - printf("gave up\n"); - #endif - return(0); - } return(1); } gotack: --- 85,90 ---- We haven't seen this fail yet. Life would be much easier with a decent keyboard design. Perhaps we'll be seeing USB keyboards soon... -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, ANA, or NSA| - Susan Aglukark and Chad Irschick