Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 1997 22:36:54 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG
Cc:        lile@stdio.com (Larry Lile)
Subject:   Re: Tropic token ring driver
Message-ID:  <19970602223654.XZ56494@uriah.heep.sax.de>
In-Reply-To: <3392FC14.41C6@stdio.com>; from Larry Lile on Jun 2, 1997 13:00:04 -0400
References:  <3392FC14.41C6@stdio.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

> 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.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970602223654.XZ56494>