From owner-freebsd-arch@FreeBSD.ORG Fri Dec 3 21:40:03 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9186316A4CE for ; Fri, 3 Dec 2004 21:40:03 +0000 (GMT) Received: from fidel.freesurf.fr (fidel.freesurf.fr [212.43.206.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5396443D53 for ; Fri, 3 Dec 2004 21:40:03 +0000 (GMT) (envelope-from nsouch@free.fr) Received: from smtp (62-240-249-21.adsl.freesurf.fr [62.240.249.21]) by fidel.freesurf.fr (Postfix) with SMTP id 1EA6A2A70C0 for ; Fri, 3 Dec 2004 22:40:02 +0100 (CET) Received: (qmail 2195 invoked by uid 1000); 3 Dec 2004 21:40:01 -0000 Date: Fri, 3 Dec 2004 22:40:01 +0100 From: Nicolas Souchu To: freebsd-arch@freebsd.org Message-ID: <20041203214000.GA1466@breizh> References: <20041112074922.GA727@loge.nixsys.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041112074922.GA727@loge.nixsys.be> User-Agent: Mutt/1.5.6+20040722i Subject: Re: Generic 'input device' layer X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 21:40:03 -0000 On Fri, Nov 12, 2004 at 08:49:22AM +0100, Philip Paeps wrote: > I've been spending the last few weeks writing and hacking touchscreen drivers > in the Linux kernel for one of my clients. Thanks to the simple 'input core' > framework, this was pretty easy to do. It wasn't fun, but it was easy. > > Trying to port these drivers to FreeBSD is a lot more painful than it should > be, and I'm finding myself duplicating heaps of code (translating absolute > coordinates to dx/dy motions, mapping buttons, etc). > > Has anyone else tried to write something like 'input core' for FreeBSD? A > quick Google doesn't turn up anything of particular interest. > > Basically, I'm looking for a way to get from hardware events to something > syscons will understand, without having to do all sorts of really disgusting > magic in sys/isa/psm.c or usr.sbin/moused/moused.c. > > If no one else is working on this, I'd like to solicit ideas for what others > would like this interface to look like, and I'll go and write it myself :-) > > Ideas are welcome! http://www.ggi-project.org Is the userland side of such a library. http://www.freebsd.org/~nsouch/kgi4BSD Is an attempt to have KGI the kernel side of GGI under FreeBSD. Have you ever heard about GGI? You should start from it before KGI. Nicholas