From owner-cvs-sys Sat Nov 16 05:21:48 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA29112 for cvs-sys-outgoing; Sat, 16 Nov 1996 05:21:48 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id FAA29086; Sat, 16 Nov 1996 05:21:30 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id OAA13749; Sat, 16 Nov 1996 14:21:28 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id OAA04954; Sat, 16 Nov 1996 14:21:28 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id OAA07677; Sat, 16 Nov 1996 14:09:13 +0100 (MET) From: J Wunsch Message-Id: <199611161309.OAA07677@uriah.heep.sax.de> Subject: Re: cvs commit: src/sys/i386/isa syscons.c syscons.h To: bde@zeta.org.au (Bruce Evans) Date: Sat, 16 Nov 1996 14:09:13 +0100 (MET) Cc: nate@freefall.freebsd.org, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-sys@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199611161233.XAA17796@godzilla.zeta.org.au> from Bruce Evans at "Nov 16, 96 11:33:59 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Bruce Evans wrote: > Are there any advantages to the new mode except for easier decoding? It's not even much easier to decode. Both, mode 1 and mode 2 are really braindamaged, in that they basically emulate obsolete keyboard behaviour. Alas, the PS/2 mode 3 is not supported by all keyboards around. It's the only orthogonal mode, where each key press or release generates exactly one scan code (possibly preceded by a prefix code IIRC). No, there's not much point in having both state machines simultaneously in one driver. pcvt has a compile-time option, defaulting to ancient PC scancodes, but it only includes one state machine. I think it would even be safe to default to mode 2; i'm using this for years now. syscons' ``XT keyboard'' mode is only just another way to generate obsolete mode 1 scancodes, there are two ways to do this. (One for the keyboard, one for the controller.) Maybe i'm mistaken, and perhaps it's been as simple as syscons having relied on the BIOS to turn on the translation bit in the controller, which it apparently doesn't do on a ThinkPad. (I'm too lazy to review the code right now.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)