Subject: Re: MACE Questions
To: Stefan Arentz <stefan.arentz@luna.net>
From: Allen Briggs <briggs@puma.macbsd.com>
List: port-mac68k
Date: 10/25/1997 23:25:15
> Today I started working on a driver for the MACE ethernet controller. I
> already have a dummy driver up and running (ma0) and I'm ready to start
> implementing it.

Excellent!  Please let me know if you have any questions.  I will be
happy to try and answer.

> My 660AV uses a Am79C950 chip. I couldn't find that part number on
> AMD's website, so I'm wondering if it's compatible with the Am97C940
> for which you can download documentation.
> 
> Is 'am*' a good name for this driver?

I think that 'ma*' would be better, or 'mc*'.  I don't think there's a
requirement for it to be two letters, though, so why not 'mace*'?  ;-)
I've been wondering what the part number was...  I'm glad you could find
it.  Expect some small differences from the 97C940, though.  Perhaps
nothing visible from the programming interface.  I don't know.

> How do I read and write to it's registers? The
> same way you access normal memory?

See the src/sys/arch/mac68k/dev/if_sn* sources.  They show one way to
initialize bus_space handles and tags and how to use them.  Ideally, you
should have a two-piece driver--the bulk of the driver should something
sharable with other platforms, like the ppc, which might come along
someday.  bus_space_* functions help a lot with that.

-allen

-- 
              Allen Briggs - end killing - briggs@macbsd.com