From owner-freebsd-arch@FreeBSD.ORG Fri Nov 12 07:49:25 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 5A5E516A4CE for ; Fri, 12 Nov 2004 07:49:25 +0000 (GMT) Received: from gateway.nixsys.be (gateway.nixsys.be [195.144.77.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06A3843D41 for ; Fri, 12 Nov 2004 07:49:25 +0000 (GMT) (envelope-from philip@nixsys.be) Received: from loge.nixsys.be (loge.nixsys.be [195.144.77.45]) by gateway.nixsys.be (Postfix) with ESMTP id CECCA76 for ; Fri, 12 Nov 2004 08:49:23 +0100 (CET) Received: from loge.nixsys.be (philip@localhost [127.0.0.1]) by loge.nixsys.be (8.13.1/8.13.1) with ESMTP id iAC7nNc2000832 for ; Fri, 12 Nov 2004 08:49:23 +0100 (CET) (envelope-from philip@loge.nixsys.be) Received: (from philip@localhost) by loge.nixsys.be (8.13.1/8.13.1/Submit) id iAC7nMPd000831 for freebsd-arch@freebsd.org; Fri, 12 Nov 2004 08:49:22 +0100 (CET) (envelope-from philip) Date: Fri, 12 Nov 2004 08:49:22 +0100 From: Philip Paeps To: freebsd-arch@freebsd.org Message-ID: <20041112074922.GA727@loge.nixsys.be> Mail-Followup-To: freebsd-arch@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Date-in-Rome: pridie Idius Novembres MMDCCLVII ab Urbe Condida X-PGP-Fingerprint: FA74 3C27 91A6 79D5 F6D3 FC53 BF4B D0E6 049D B879 X-Message-Flag: Get a proper mailclient! Organization: Happily Disorganized User-Agent: Mutt/1.5.6i Subject: 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, 12 Nov 2004 07:49:25 -0000 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! - Philip -- Philip Paeps Please don't Cc me, I am philip@freebsd.org subscribed to the list. BOFH Excuse #232: Ionization from the air-conditioning