Subject: Re: LAN adapter driver
To: None <port-dreamcast@netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: port-dreamcast
Date: 06/10/2002 23:25:46
Marcus wrote:

> Christian Groessler <cpg@aladdin.de> writes:

> > I have a question:
> > 
> > According to the KOS library, the lan adapter is sitting on the G2
> > bus. Since the lan adapter has a special register decoding, I gave it
> > its own bus sitting on the shb bus.
>
> There is already an implementation of a G2 bus driver (used by the BBA
> driver).  You should use that one instead of making a new one.  Just
> put
>
>   yourdriver*   at g2bus?
>
> instead of
>
>   yourdriver*   at shb?
>
> in your kernel config and you'll get a proper bus_space

Hmm, but the g2bus_bus_mem.c doesn't do this regaddr*4 thingy. How
will should it work?

> implementation.  Also, you should check if the LAN adapter doesn't use
> the same PCI bridge chip (the GAPSPCI) as the BBA, in that case you

How can I do this? Can I detect GAPSPCI's presence?

> can use that driver too, and use an existing PCI driver for the
> ethernet chip.

I haven't found an existing NetBSD PCI driver using this chip
(mb86960.c).

regards,
chris