Subject: Re: Some oberservations
To: Peter Galbavy <peter@wonderland.org>
From: Chris Torek <torek@BSDI.COM>
List: port-sparc
Date: 02/08/1994 15:35:12
>4) The autoconf stuff matches thing by openprom name. This is fine
>   I think for traditional hardware, but what about all the newer
>   cards that have the vendor name attached (like "SUNW,cgsix0" or
>   in my case "OPUS,vgthree") ? Or have I missed the way the
>   openprom interacts with the kernel ?

The vendor ID should only be in the `model' identifier, not in the name.
Looks like Opus goofed.

>   I know that my video card work exactly like a cgthree in the
>   mode it is set to... openwin and X11R5 under SunOS are happy.
>   So is there any quick way I can get it to alias this name to
>   cgthree ?

Write a cgthreematch() routine that accepts "OPUS,vgthree" as well
as plain `cgthree'; put this in the cfdriver in cgthree.c (in place
of `matchbyname').

You might want/need to write a new driver anyway, to ensure that
your vgthree board is put into cg3 mode, which just does something
slightly differnt at attach time but otherwise uses the same code.
You could embed this inside cgthree.c, making the source a combined
`cgthree vgthree' driver.  The new config understands this concept.

Chris

------------------------------------------------------------------------------