From owner-freebsd-arch@FreeBSD.ORG Fri Nov 12 08:03:06 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 B07B316A4CE; Fri, 12 Nov 2004 08:03:06 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13FBC43D39; Fri, 12 Nov 2004 08:03:06 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id iAC834FR093102; Fri, 12 Nov 2004 09:03:04 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Philip Paeps From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 12 Nov 2004 08:49:22 +0100." <20041112074922.GA727@loge.nixsys.be> Date: Fri, 12 Nov 2004 09:03:04 +0100 Message-ID: <93101.1100246584@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-arch@freebsd.org 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, 12 Nov 2004 08:03:06 -0000 In message <20041112074922.GA727@loge.nixsys.be>, Philip Paeps writes: >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 :-) Well, I think that somebody tried something of the kind, but after I spent a day in syscons I can say that it wasn't a success. If you think you can improve on the tangled mess we have there now, I think it would be a great thing. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.