From owner-freebsd-arch@FreeBSD.ORG Fri Nov 12 08:04:55 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 B75D716A4CE; Fri, 12 Nov 2004 08:04:55 +0000 (GMT) Received: from smtpq3.home.nl (smtpq3.home.nl [213.51.128.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35DD443D39; Fri, 12 Nov 2004 08:04:55 +0000 (GMT) (envelope-from dodell@sitetronics.com) Received: from [213.51.128.135] (port=33652 helo=smtp4.home.nl) by smtpq3.home.nl with esmtp (Exim 4.30) id 1CSWQP-0002zd-Ml; Fri, 12 Nov 2004 09:04:53 +0100 Received: from cc740438-a.deven1.ov.home.nl ([82.75.136.183]:3603 helo=[192.168.1.3]) by smtp4.home.nl with esmtp (Exim 4.30) id 1CSWQN-0003Ud-S8; Fri, 12 Nov 2004 09:04:51 +0100 Message-ID: <41946EA4.3000500@sitetronics.com> Date: Fri, 12 Nov 2004 09:04:52 +0100 From: "Devon H. O'Dell" User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Philip Paeps References: <20041112074922.GA727@loge.nixsys.be> In-Reply-To: <20041112074922.GA727@loge.nixsys.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean 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:04:55 -0000 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! > > - Philip I've recently offered my help in the ARM area; I expect to own a Siemens SIMpad shortly. It also happens to be a touchscreen device. I don't have any idea how these things work (though I suppose it's not terribly difficult to understand), but keep me informed about what you're doing and what needs to be done. If we can get a TODO list set up for things that need to happen to get a working touchscreen driver, I can probably help take a few of those things off the list. --Devon