Subject: Re: Q about "ahc" and "ahe" (was Re: README: changes to ep driver)
To: Justin T. Gibbs <gibbs@freefall.freebsd.org>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-i386
Date: 05/02/1996 09:49:42
On Wed, 01 May 1996 23:31:56 -0700 
 "Justin T. Gibbs" <gibbs@freefall.freebsd.org> wrote:

 > Why make the names redundant and different than the FreeBSD file names?
 > In FreeBSD, the PCI probe code for the ahc device is in aic7870.c and
 > the EISA probe code is in aic7770.c since the names acurately describe
 > the chips the probes find.  It seems silly to add an "isa" or "pci"
 > suffix to files that are already in a directory of that name. 

See the ep driver ... The NetBSD autoconfiguration scheme allows for 
"devices" with "attachments".  The aic7xxx "driver" is called "ahc".  For 
"ahc" devices that attach to pci, we have "ahc_pci" ... This is somewhat 
intuitive, and has the pleasant side-effect of not tying ones self down 
to a model number, which might change in the future.  If we were to name 
the ep driver as you suggest, we'd have:

	dev/isa/3c509.c
	dev/eisa/3c579.c
	dev/pci/3c590.c

BUT!  the 3c595 is handled by the PCI front-end ... and 3c509 cards that 
masquerade as EISA are handled by the EISA front-end.  I like 
"<driver>_<bus>" a lot better :-)

Another way to look at it: Why diverge from NetBSD's naming scheme just 
because another OS happens to name the files differently?  :-)

----save the ancient forests - http://www.bayarea.net/~thorpej/forest/----
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939