Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2006 20:32:54 -0400 (EDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        hongz@promisechina.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: help:How to map a physical address into a kernel address?
Message-ID:  <20060512.203254.62667569.imp@bsdimp.com>
In-Reply-To: <1147340690$36076$55833599@hongz@promisechina.com>
References:  <1147340690$36076$55833599@hongz@promisechina.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <1147340690$36076$55833599@hongz@promisechina.com>
            <hongz@promisechina.com> writes:
: To access sg_table in kernel address, I need to map the starting physical
: address of a segment into a kernel address. As I know that, we can use
: phystovirt()/bustovirt(), or kmap()/kmap_atomic() to map a bus/physical
: address or a physical page into a kernel address in Linux, but I did not
: find such a function in FreeBSD. Please help me on this, it is very urgent!

Use busdma.

Warner



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