From owner-cvs-all Sat Jan 15 5:23:50 2000 Delivered-To: cvs-all@freebsd.org Received: from eclogite.eps.nagoya-u.ac.jp (eclogite.eps.nagoya-u.ac.jp [133.6.124.145]) by hub.freebsd.org (Postfix) with ESMTP id 23E0E14CE4; Sat, 15 Jan 2000 05:23:44 -0800 (PST) (envelope-from kato@ganko.eps.nagoya-u.ac.jp) Received: from localhost (gneiss.eps.nagoya-u.ac.jp [133.6.124.148]) by eclogite.eps.nagoya-u.ac.jp (8.9.3/3.7W) with ESMTP id WAA58833; Sat, 15 Jan 2000 22:23:07 +0900 (JST) To: luoqi@watermarkgroup.com Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, luoqi@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/isa aic6360.c aic_98.h From: KATO Takenori In-Reply-To: Your message of "Fri, 14 Jan 2000 09:24:46 -0500 (EST)" <200001141424.JAA13791@lor.watermarkgroup.com> References: <200001141424.JAA13791@lor.watermarkgroup.com> X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) X-PGP-Fingerprint: 03 72 85 36 62 46 23 03 52 B1 10 22 44 10 0D 9E Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000115222237I.kato@gneiss.eps.nagoya-u.ac.jp> Date: Sat, 15 Jan 2000 22:22:37 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 39 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Luoqi Chen wrote: > I remember there was once a discussion about how to handle pc98's bizarre > ioport allocation under newbus. What's the final outcome of that discussion? I posted the patch to some lists. The patch does: 1. change the type of bus_space_handle_t into the struct in PC-98 source. 2. Add new bus space tag, I386_BUS_SPACE_IND. Warner told me that some drivers assumes that the type of bus_space_handle_t is integer. This makes it impossible to compile some driver. I think this assumption should be fixed, but it may require hard work. I think following function can hide the problem: IBM-PC: inline void bus_simple_create_i386_io_map(bus_space_handle_t *bshp, u_int16_t port) { *bshp = port; } PC-98: inline void bus_simple_create_i386_io_map(bus_space_handle_t *bshp, u_int16_t port) { bshp->bsh_base = port; } How about this? -----------------------------------------------+--------------------------+ KATO Takenori | FreeBSD | Dept. Earth Planet. Sci, Nagoya Univ. | The power to serve! | Nagoya, 464-8602, Japan | http://www.FreeBSD.org/ | |http://www.jp.FreeBSD.org/| ++++ FreeBSD(98) 3.3R-Rev. 01 available! +==========================+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message