From owner-cvs-all Wed Mar 3 5:29:38 1999 Delivered-To: cvs-all@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id 67A3E154FB; Wed, 3 Mar 1999 05:29:31 -0800 (PST) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:Uv35tPu/WWbCr3pdwrhbNv4Me3DUTo6K@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.1/8.9.1) with ESMTP id WAA05657; Wed, 3 Mar 1999 22:29:11 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id WAA11172; Wed, 3 Mar 1999 22:32:18 +0900 (JST) Message-Id: <199903031332.WAA11172@zodiac.mech.utsunomiya-u.ac.jp> To: "Gary Palmer" Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: cvs commit: src/usr.sbin/moused moused.c In-reply-to: Your message of "Mon, 01 Mar 1999 12:52:00 EST." <88161.920310720@gjp.erols.com> References: <88161.920310720@gjp.erols.com> Date: Wed, 03 Mar 1999 22:32:17 +0900 From: Kazutaka YOKOTA Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >> But, I wonder if the correct fix is to merge the following to >> src/sys/alpha/include/mouse.h... > >I thought about that, but last night when I was doing this is seemed to make >more sense to me to not have a USB define on a platform that doesn't have USB. > >However, I'm not 100% sure that either is the right solution :) Probably a >placeholder of some sort needs to go into alpha/include/mouse.h to say that >the USB interface is reserved. Comments? True that alpha doesn't have USB. But, USB itself is not dependent on any platform. Reserving it in all platform makes sense to me. The constant MOUSE_IF_USB in question is returned from the device driver and there is no other use. It won't be much of a problem if we refer to it even on the platforms which don't presently have USB; no driver will return this value. Yes, few lines of code will be wasted on these platforms, but they are not much, are they? There should be a header for mouse definitions in a machine-independent place. The content of i386/include/mouse.h (and its almost-identical twin, alpha/include/mouse.h) is already pretty much machine-independent... Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message