Subject: Re: PCMCIA if_ne: struct ne2000dev
To: None <Havard.Eidnes@runit.sintef.no, ingolf@djo-jena.de>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 01/18/1999 21:47:56
On Mon, Jan 18, 1999 at 07:12:42PM +0100, Havard.Eidnes@runit.sintef.no wrote:
> > [struct ne2000dev, especially on the enet_maddr entry
> >  in /usr/src/sys/dev/pcmcia/if_ne_pcmcia.c]
> >
> > On Mon, Jan 18, 1999 at 01:09:33AM +0100, Ignatios Souvatzis wrote:
> >
> > > Apparently it is not known how to get the Ethernet address in
> > > a general way out of the PCMCIA CIS information of ne2000
> > > pcmcia cards, so it was chosen to have an table of card name
> > > vs. address offset in configuration space.
> >
> > Does that mean: "there is no way to extract the address" or
> > rather "there probably is one, but we do not know"?
> 
> It probably means that the location of the Ethernet address is
> not fixed among the various ne2000 clones, so we need to have an
> entry with the correct offset for each particular type of ne2000
> clone card for it to work correctly.

No. Using a fixed location isn't the right method at all. CIS space has
sort of a tag-value structure, you just nee to know what tag to search for,
and will find the value err... next to or pointed to by it, I dont remember.

	-is