Module Name: src Committed By: snj Date: Fri Jul 14 06:13:07 UTC 2017
Modified Files: src/share/man/man9 [netbsd-6]: bus_dma.9 Log Message: Pull up following revision(s) (requested by sevan in ticket #1426): share/man/man9/bus_dma.9: 1.58-1.62 via patch fix proto -- Remove extra period. -- Use .An -nosplit. -- Give a heads up about bus_dmatag_subregion() To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.57.4.1 src/share/man/man9/bus_dma.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/bus_dma.9 diff -u src/share/man/man9/bus_dma.9:1.57 src/share/man/man9/bus_dma.9:1.57.4.1 --- src/share/man/man9/bus_dma.9:1.57 Sat Jul 9 07:57:53 2011 +++ src/share/man/man9/bus_dma.9 Fri Jul 14 06:13:07 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: bus_dma.9,v 1.57 2011/07/09 07:57:53 wiz Exp $ +.\" $NetBSD: bus_dma.9,v 1.57.4.1 2017/07/14 06:13:07 snj Exp $ .\" .\" Copyright (c) 1996, 1997, 1998, 2001, 2005, 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 8, 2011 +.Dd January 2, 2017 .Dt BUS_DMA 9 .Os .Sh NAME @@ -58,7 +58,7 @@ .Fn bus_dmamap_destroy "bus_dma_tag_t tag" "bus_dmamap_t dmam" .Ft int .Fn bus_dmamap_load "bus_dma_tag_t tag" "bus_dmamap_t dmam" "void *buf" \ -"bus_size_t buflen" "struct lwp *l" "int flags" +"bus_size_t buflen" "struct proc *p" "int flags" .Ft int .Fn bus_dmamap_load_mbuf "bus_dma_tag_t tag" "bus_dmamap_t dmam" \ "struct mbuf *chain" "int flags" @@ -243,7 +243,7 @@ Behavior is not defined if invalid argum If given valid arguments, .Fn bus_dmamap_destroy always succeeds. -.It Fn bus_dmamap_load "tag" "dmam" "buf" "buflen" "l" "flags" +.It Fn bus_dmamap_load "tag" "dmam" "buf" "buflen" "p" "flags" Loads a DMA handle with mappings for a DMA transfer. It assumes that all pages involved in a DMA transfer are wired. Arguments are as follows: @@ -257,13 +257,13 @@ The DMA handle with which to map the tra The buffer to be used for the DMA transfer. .It Fa buflen The size of the buffer. -.It Fa l +.It Fa p Used to indicate the address space in which the buffer is located. If .Dv NULL , the buffer is assumed to be in kernel space. -Otherwise, the buffer is assumed to be in lwp -.Fa l Ap s +Otherwise, the buffer is assumed to be in proc +.Fa p Ap s address space. .It Fa flags are defined as follows: @@ -798,13 +798,15 @@ Given a bus_dma_tag_t create a new bus_dma_tag_t with a limited bus address space. This function should not normally be used, but is useful for devices that do not support the full address space of the parent bus. +Not all ports implement this method; on ports where it is unavailable, +EOPNOTSUPP is returned. The arguments are as follows: .Bl -tag -width max_addr -compact .It Fa tag This is the bus_dma_tag_t to subregion. .It Fa min_addr The smallest address this new tag can address. -.It Fa max_addr . +.It Fa max_addr The largest address this new tag can address. .It Fa newtag Pointer filled in with the address of the new bus_dma_tag_t. @@ -839,6 +841,7 @@ The interface appeared in .Nx 1.3 . .Sh AUTHORS +.An -nosplit The .Nm interface was designed and implemented by Jason R. Thorpe of the