Subject: Re: E100
To: Michael <macallan18@earthlink.net>
From: David Brownlee <abs@NetBSD.org>
List: port-macppc
Date: 07/15/2004 13:10:33
On Thu, 15 Jul 2004, Michael wrote:

> Hmm, so I'll add something to pci_machdep.c which is only active on S900s and 
> configures the ethernet part so the tulip driver can run almost unchanged - 
> only with an additional quirks line ( there are already a lot of them and are 
> selected by the first 3 bytes of the MAC address )
> maybe something like
> #ifdef E100_HACK
> check for a DEC 21140 on PCI 0:11:0 - there's either the E100 or nothing at 
> all
> configure it with some hardwired values, maybe with values derived from PCI 
> 0:0d:0 - this should definitely be the ISP in this case - at least the IRQ 
> entry could be copied.
> #endif
> in ficpci() ?
> The quirks entry in the tulip driver is almost identical to the Asante quirk 
> - only a different name and a different trigger, but it needs it's own one 
> because of the different MAC address ( and you don't really want to see your 
> E100 identified as some Asante board, do you? )

 	You might want to look at pci_conf_hook(9) which allows you to
 	mess with early pci configuration an attachment on a per device
 	basis. Check out what some of the other ports have done with it.


-- 
 		David/absolute       -- www.NetBSD.org: No hype required --