From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 12 00:44:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63B2E16A4CE for ; Sun, 12 Dec 2004 00:44:48 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0648E43D46 for ; Sun, 12 Dec 2004 00:44:48 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iBC0g4lP016893 for ; Sat, 11 Dec 2004 17:42:04 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 11 Dec 2004 17:42:22 -0700 (MST) Message-Id: <20041211.174222.10907503.imp@bsdimp.com> To: hackers@freebsd.org From: "M. Warner Losh" X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: mse reorg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2004 00:44:48 -0000 I've reorganized the mse driver. I've split it up into cbus and isa bus front ends, and a core back end and moved it to dev/mse. I've also made it into a module. These patches eliminate all ifdefs in the driver by moving the machine specific parts to the bus attachment front ends. We can stop tracking two copies in the tree (although it doesn't seem to be a huge burdon). Please test this, especially on i386. I've tested it on pc98 with moused and it works the same as before as far as I can tell. Why did I do this? The PC-98 platform standardized on bus mice before the ps/2 mouse standard evolved in the US. I have a PC-98 machine that I'd like to clean up a number of issues I promised to clean up a long time ago. On the road to doing that, I noticed that this driver didn't support PNP on pc98, so I thought I'd add that (turns out that the isa layer needs to change, and in turn shows that using isa for both isa and cbus is flawed, but more about that later). In adding that, I thought it would be easy to eliminate the ifdefs, and this is the result. Comments? Test results on i386? Warner http://people.freebsd.org/~imp/mse.diff