From owner-freebsd-hackers Mon Jun 2 10:00:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA28558 for hackers-outgoing; Mon, 2 Jun 1997 10:00:28 -0700 (PDT) Received: from heathers.stdio.com (root@heathers.stdio.com [204.152.114.65]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA28541 for ; Mon, 2 Jun 1997 10:00:24 -0700 (PDT) Received: from frog (socks7.raleigh.ibm.com [204.146.167.114]) by heathers.stdio.com (8.6.12/8.6.13) with SMTP id KAA11921 for ; Mon, 2 Jun 1997 10:21:33 -0400 Message-ID: <3392FC14.41C6@stdio.com> Date: Mon, 02 Jun 1997 13:00:04 -0400 From: Larry Lile X-Mailer: Mozilla 3.01 (X11; I; AIX 1) MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: Tropic token ring driver Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi all, I am working on a tropic chipset token ring driver. I was able to get the docs from NS and IBM. I can now probe IBM isa token ring cards and talk to both the shared ram and hardware ports. What I would like to know is how to map a physical address to a kernel address so that I do not have to "wire" the configuration into the kernel. 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. Also, how do you get your driver registered into the boot-up config? (Right now it would be helpful for debugging) Thanks, Larry Lile lile@stdio.com