Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Jun 1997 10:27:58 -0400
From:      Larry Lile <lile@stdio.com>
To:        hackers@FreeBSD.ORG
Subject:   Re: Tropic token ring driver
Message-ID:  <339429EE.41C6@stdio.com>
References:  <3392FC14.41C6@stdio.com> <19970602223654.XZ56494@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
J Wunsch wrote:
> 
> As Larry Lile wrote:
> 
> >   Right now I am picking up the shared ram address
> > from the foo->id_maddr in the probe routine and kvtop(foo->id_maddr)
> > gives the correct physical address.  What I would like to do is
> > pick up the address from 0x0a20 (Which after some math is usually
> > either 0xcc000 or 0xdc000) and get a kvm address to it, ie the
> > inverse of kvtop.
> 
> Do you only need the KVA of it (i.e., you don't need it for things
> like DMA)?  If the shared memory is always in the ISA hole, there's a
> fixed mapping for it (i think you need to add 0xf000000 to the
> physical address).  For devices that go into the higher memory area
> (like PCI), you need to map it yourself anyway.
> 
That was what I had guessed from looking at the values returned by
id_maddr, but I wanted to be sure.

> > Also, how do you get your driver registered into the boot-up
> > config? (Right now it would be helpful for debugging)
> 
> That's still handwork, to go into /sys/i386/i386/userconfig.c.
> 
That helped move things along.  Know it appears I have my driver
defined in all the right places. :)

Thanks for the help J"org.

Now, does anyone have a Token-ring network architechture reference
(IBM Part # SC30-3374-02) to donate (or loan) to the cause?  My 
friend is trying to find his old copy, but that could take a while.
If not I guess I can just cough up the 76.50 for it myself, and it
only took about 5 days to get the card ref from IBM so this shouldn't
take much longer.  

I remember someone talking about the arp code for a fddi card being
similar, but I cant seem to locate that again.  So if you're still 
out there drop me a line.

Thanks

-- 
Larry Lile
lile@stdio.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?339429EE.41C6>