From: apachexm@usa.net
Subject: How to pin memory in a limited physical address range in driver?
Date: 1998/02/17 [thread overview]
Message-ID: <6cdt1t$ndv$1@nnrp1.dejanews.com> (raw)
Can anyone tell me how to pin memory in a limited physical address range
in device driver in Digital UNIX 4.0?
I am learning to develop device driver in Digital UNIX.
One task of the driver is to pre-allocate and then pin memory for
performing DMA operation on it. Because the bits number of DMA
register is limited. We can only use memory below some physical memory.
I have only some documents downloaded from Digital's Web site.
I found in the reference of device driver that contig_malloc() and
MALLOC() can be used to allocate memory in device driver.
But who can tell me in detail the difference between them?
contig_malloc() seems can allocate memory in a limited address range,
but is the address it returns the physical or virtual address?
Should we use contig_malloc() or MALLOC() to allocate memory for
DMA operation?
Can we use vm_map_pageable() to pin memory for a very
long time?
Can anyone tell me how to get detail explanation of the
'type' parameter of contig_malloc() and MALLOC()?
I am new to Digital UNIX. And it is some different than the traditional
SYSV. Sorry for my asking so many questions.
Any help are welcomed! Thanks!
apachexm@usa.net
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
next reply other threads:[~1998-02-17 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-17 5:00 apachexm [this message]
1998-02-19 5:00 ` How to pin memory in a limited physical address range in driver? Monty Brandenberg
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox