From owner-freebsd-hackers Mon Jun 2 14:44:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA14275 for hackers-outgoing; Mon, 2 Jun 1997 14:44:05 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id OAA14238 for ; Mon, 2 Jun 1997 14:44:00 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA03778; Mon, 2 Jun 1997 23:43:46 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id WAA12512; Mon, 2 Jun 1997 22:37:00 +0200 (MET DST) Message-ID: <19970602223654.XZ56494@uriah.heep.sax.de> 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 References: <3392FC14.41C6@stdio.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <3392FC14.41C6@stdio.com>; from Larry Lile on Jun 2, 1997 13:00:04 -0400 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. ;-)