Subject: Re: having ethernet problems
To: Tony Mantler <nicoya@apia.dhs.org>
From: Nyef <nyef@softhome.net>
List: port-mac68k
Date: 09/15/2000 22:04:58
On Thu, 14 Sep 2000, Tony Mantler wrote:

> At 9:14 PM -0500 9/14/2000, Nyef wrote:
> 
> >More info on the card I have:
> >
> >The card thinks of itself as a "DNI Ethernet Card".
> >
> >I managed to find 32k of memory starting at 0x10000, and I believe there's
> >another 32k of memory somewhere on the card (it has two M5M5256-85 chips,
> >which are 32kx8 SRAM). I think they're both mapped, but
> >non-contiguously. Either that, or the area that is mapped is aliased later
> >on in the slot's address space.
> 
> Weird.

Well, I wouldn't know what's weird and what's not, so I'll take your word
on that for now. ^_^

There's also 32k of RAM at 0x30000. I don't know if it's the same RAM as
the RAM at 0x10000 or if it's the other 32k chip.

> >Unfortunately, I don't know where the registers are (the kernel currently
> >assumes that they are at 0x10000, which is where the RAM is).
> >
> >Any suggestions for finding out where the registers are?
> 
> Poke around randomly in slot space? They probably spaced everything at
> convinient 1 meg intervals. Make sure to try writing to the address, not
> just reading.

Okay, poking around did it. They were at 0.

Changing the register base to 0 and the RAM base to 0x30000 appears to
have gotten it working. I don't know how correct or stable it is, but I've
managed to transfer a couple files across it via FTP with no trouble. I
also haven't tried it with the register base at 0 and the RAM base at
0x10000.

---------------------------
All programming can be viewed as an exercise.
---------------------------
Alastair Bridgewater
e-mail: nyef@softhome.net