Subject: Re: Using an Adaptec 2842 Controller w/ NetBSD 1.1 and 2940 support
To: Michael Graff <explorer@flame.org>
From: Noriyuki Soda <soda@sra.co.jp>
List: port-i386
Date: 01/16/1996 22:14:57
>>>>> On Mon, 15 Jan 1996 02:44:59 -0600,
	"Michael Graff" <explorer@flame.org> said:

> You could try the -current aha284x.c driver in /sys/dev/isa.

I think so, too. (Though I don't have such trouble with PR/1594
version of the driver in 6 mounths.)

BTW,

> I have
> 	ahe0 at isa? port 0x1c00 irq ?
> in my config file, and

IMHO, this should be
	ahe0 at isa? port ? irq ?	# Adaptec 2[78]4x SCSI controllers
	                  ~		            ~   

Because same driver should work with Adaptec 2740 (EISA), and EISA
defines
	port 0x1000 * (slot number) + 0x0c80
is Vendor ID. See the following loop of NetBSD's aha1742.c
	while (ahb_slot < MAX_SLOTS) {
or following loop of FreeBSD-current/src/sys/i386/eisa/eisaconf.c,
	for (slot = 0; slot < EISA_SLOTS; eisaBase+=0x1000, slot++) {
so that port number may be omitted from config file.
I am not familiar with VL-bus specification, but according to
FreeBSD's driver, it seems to be same with EISA specificaion.
(My PR/1594 also had same loop about SLOTS, and my 2840's config file
 specifies "port ?")

Is there specific reason that you (explorer) don't incorpolate these
slot number loop ? 
(Another point, I think it is a good thing to rename from
 dev/isa/aha284x.c to dev/eisa/aic7770.c)

and, ...
Are anyone working to incorporate latest FreeBSD's aic7770/aic7870
driver to NetBSD ?
--
soda@sra.co.jp		Software Research Associates, Inc., Japan
(Noriyuki Soda)		   software tools and technology group