Subject: Re: PC PCI cards in a real machine
To: Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc64
Date: 02/24/2002 19:31:08
On Sun, Feb 24, 2002 at 04:17:48PM +1300, Lloyd Parkes wrote:
> > Here is what I currently have in my nvramrc
> > 
> > 	dev /packages/SUNW,builtin-drivers
> > 	: class018000   
> > 	8f 9 my-space + " config-b!" $call-parent class010100
> > 	;
> > 	device-end
> 
> I tried looking up config-b! to work out what this code snippet does. I 
> couldn't see anything, so settled for cutting and pasting Sun's code. After 
> applying a small amount of thought to the matter, I have worked out what this 
> does. It updates the PCI/ATA programming interface register to force the 
> device in to native PCI mode. The ATA specs that I have list bits 4-7 of this 
> register as reserved, so this correct code for random PCI ATA cards is in fact
> 
> 	dev /packages/SUNW,builtin-drivers
> 	: class018000   
> 	f 9 my-space + " config-b!" $call-parent class010100
> 	;
> 	device-end

Wow, how cool ! Someone,  please add this on the FAQ or web site !

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--