From owner-cvs-src@FreeBSD.ORG Mon Feb 27 22:33:58 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63D6B16A422 for ; Mon, 27 Feb 2006 22:33:58 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id C590A43D46 for ; Mon, 27 Feb 2006 22:33:56 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by nproxy.gmail.com with SMTP id m19so642786nfc for ; Mon, 27 Feb 2006 14:33:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tLODbR94qLOp0wDlQ4DWtu0gP3gZ2NlQZD7up5EUla9+L79h3pGruvov9VL18IOxaVRleiyjdt2WyNoCvA/8QgWL3A27DQyV6fubSuKEqzpRKunK/GSWqvMXVr5hR8PRaQjPkqC/w18U7ZKacHIMwoDU4O7eCmCX0srlHKpL6wc= Received: by 10.49.33.14 with SMTP id l14mr4021778nfj; Mon, 27 Feb 2006 14:33:53 -0800 (PST) Received: by 10.49.4.2 with HTTP; Mon, 27 Feb 2006 14:33:52 -0800 (PST) Message-ID: Date: Mon, 27 Feb 2006 14:33:52 -0800 From: "Maksim Yevmenkin" To: "Marius Strobl" In-Reply-To: <20060227194350.A57612@newtrinity.zeist.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200602252159.k1PLxT8G036312@repoman.freebsd.org> <4400D478.7060707@samsco.org> <20060227194350.A57612@newtrinity.zeist.de> Cc: cvs-src@freebsd.org, Scott Long , src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/dev/kbdmux kbdmux.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2006 22:33:58 -0000 On 2/27/06, Marius Strobl wrote: > On Sat, Feb 25, 2006 at 02:43:11PM -0800, Maksim Yevmenkin wrote: > > Scott, > > > > [...] > > > > > So what do we need to do to get this enabled and running by default a= nd > > > get rid of the USB keyboard hack in the loader, as well as make the > > > keyboard flags sane and predictable? > > > > <...> > > > > > i think this should do it. any comments? > > > > FYI, in order to make kbdmux(4) work on sparc64 the endian bugs in > the keyboard IOCTLs of syscons(4) and probably elsewhere need to > be fixed. In order to make it work with Sun RS232 keyboards (sparc64 could you please point me to the keyboard ioctl with the endian bugs you are talking about? > uses AT, Sun RS232 and USB keyboards) kbdmux(4) needs to get rid of > the assumption that a slave keyboard driver returns AT keyboard > scancodes in K_RAW mode. The latter probably also applies to powerpc > once there is support for ADB keyboards. imo, that is not just kbdmux(4) assumption. it seems like a more general assumption, i.e. ukbd(4), for example, translates usb scancodes into at scancodes by default. we should make a decision which scancodes keyboard drivers should be returning and change kbdmux(4), syscons(4) etc. to support it. until then, i'm afraid, sun rs232 and powerpc adb keyboard drivers will have to translate their own scancodes into at scancodes (just like ukbd(4) does). thanks, max