Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 1999 10:04:24 +0200 (CEST)
From:      hm@kts.org (Hellmuth Michaelis)
To:        freebsd-hackers@freebsd.org (FreeBSD Hackers)
Subject:   howto allocate 32k phys. mem-space in driver ?
Message-ID:  <m111mgq-00002VC@bert.kts.org>

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




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