Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2000 22:22:37 +0900
From:      KATO Takenori <kato@ganko.eps.nagoya-u.ac.jp>
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
Message-ID:  <20000115222237I.kato@gneiss.eps.nagoya-u.ac.jp>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Luoqi Chen <luoqi@watermarkgroup.com> 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 <kato@ganko.eps.nagoya-u.ac.jp>  |        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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000115222237I.kato>