From owner-freebsd-hackers Sat Feb 17 21:32:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA25255 for hackers-outgoing; Sat, 17 Feb 1996 21:32:17 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA25233 for ; Sat, 17 Feb 1996 21:31:47 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id QAA27533; Sun, 18 Feb 1996 16:27:33 +1100 Date: Sun, 18 Feb 1996 16:27:33 +1100 From: Bruce Evans Message-Id: <199602180527.QAA27533@godzilla.zeta.org.au> To: hackers@freebsd.org, imp@village.org Subject: Re: Quick question on syscons.c Sender: owner-hackers@freebsd.org Precedence: bulk >Syscons sets the keyboard control mode bits to be 0x4d. Linux sets >this to be 0x65. On linux I know this is EKI + SYS + DMS + KCC. >FreeBSD should be KCC + SYS + EKI + ???. This magic is inherited from 386BSD-0.1 or earlier. 0x08 is "ignore security lock". See /sys/i386/isa/ic/i8042.h. This file is no longer used, but should be. See also /sys/i386/isa/pcvt/pcvt_hdr.h, which also suffers from NIH and defines all the keyboard bits with different, worse (longer yet more more ambiguous) names. pcvt has ifdefs to support the 4 possible values of the security lock and scancode conversion bits. See also the NetBSD pccons.c and i8042reg.h. The 0x20 bit is to disable the mouse according to NetBSD. NetBSD doesn't disable the mouse or the security lock, and it enables mouse interrupts. >Can anybody comment on these differences and/or point me at a good and >readily availble reference? Is there a good reference for all the >"esoteric" PC things: DMA, Timer chips, interrupts, etc? I have the >mindshare books, and those are good, as far as they go, but I need >something better. I haven't seen one :-(. OTOH there are a lot of examples in source code. See also the Linux keyboard driver... :-). Bruce