From owner-freebsd-hackers Wed Jul 7 1: 2:24 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (Postfix) with ESMTP id 5096314C8B for ; Wed, 7 Jul 1999 01:02:04 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from casparc.ppp.net (casparc2.ppp.net [194.64.12.42]) by mail.ppp.net (8.8.8/8.8.8) with SMTP id KAA32611 for ; Wed, 7 Jul 1999 10:02:01 +0200 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m111meX-002ZjZC; Wed, 7 Jul 99 10:02 MET DST Received: from bert.kts.org([194.55.156.2]) (1579 bytes) by ernie.kts.org via sendmail with P:smtp/R:smart_host/T:uux (sender: ) id for ; Wed, 7 Jul 1999 10:01:50 +0200 (CEST) (Smail-3.2.0.103 1998-Oct-9 #5 built 1999-Apr-19) Received: from localhost (1129 bytes) by bert.kts.org via sendmail with P:stdio/R:smart_host/T:smtp (sender: ) (ident using unix) id for ; Wed, 7 Jul 1999 10:04:24 +0200 (CEST) (Smail-3.2.0.103 1998-Oct-9 #4 built 1998-Dec-26) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: howto allocate 32k phys. mem-space in driver ? To: freebsd-hackers@freebsd.org (FreeBSD Hackers) Date: Wed, 7 Jul 1999 10:04:24 +0200 (CEST) Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, perhaps i don't see the wood for trees. I'd like to write a driver for a PCI ISDN chipset which uses a 32k byte memory window as a sort of "dual ported ram" in the memory address space. What has to be done in the driver attach routine is - allocate a 32k contingous memory window - get the physical address of it - program the ISDN PCI chipset with the start address of the window Now can i just malloc 32k and then use vtophys() to get the physical start address to program the PCI chip with ? hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe We all live in a yellow subroutine, yellow subroutine, yellow subroutine ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message