Subject: Re: SCSI controler support
To: None <rxg@ms25.url.com.tw, wojtek@wojtek.3miasto.net>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-help
Date: 08/12/2001 14:31:08
In article <Pine.NEB.4.33.0108112319510.4615-100000@wojtek.3miasto.net>
wojtek@wojtek.3miasto.net wrote:

>> This driver seems to only be used on i386 platform because it use many
>> inb(), inw(). But I think only PC users will buy these cards(they are low-end
>> and low-price), so I not yet use bus_space() instead of them.
> 
> look at comment in /usr/src/sys/dev/pci/if_rtk_pci.c about low-end.
> similar comment should be included in this driver! it's even worse.

rtk(4) really has MI framework and it works on alpha, arc, i386, macppc
and dreamcast. I guess iha(4) (Initio INIC-940) is also one of the low-end,
but it also works on all machines which have PCI.
IMHO, all PCI drivers _should_ work on all architectures
even if there is no user of it on such machines :-)

inb() and inw() can easily be relaced by bus_space(9), but
all use of vtophys() should be re-written to use bus_dma(9) framework.
I guess it is a bit boring work, but it will help someone in future ;-)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp