1 '\" te
   2 .\" Copyright (c) 1994, Sun Microsystems, Inc.
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH DDI_DMA_BURSTSIZES 9F "Feb 1, 1994"
   7 .SH NAME
   8 ddi_dma_burstsizes \- find out the allowed burst sizes for a DMA mapping
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 #include <sys/conf.h>
  13 #include <sys/ddi.h>
  14 #include <sys/sunddi.h>
  15 
  16 
  17 
  18 \fBint\fR \fBddi_dma_burstsizes\fR(\fBddi_dma_handle_t\fR \fIhandle\fR);
  19 .fi
  20 
  21 .SH INTERFACE LEVEL
  22 .sp
  23 .LP
  24 Solaris DDI specific (Solaris DDI).
  25 .SH PARAMETERS
  26 .sp
  27 .ne 2
  28 .na
  29 \fB\fIhandle\fR \fR
  30 .ad
  31 .RS 11n
  32 A \fBDMA\fR handle that was filled in by a successful call to
  33 \fBddi_dma_setup\fR(9F).
  34 .RE
  35 
  36 .SH DESCRIPTION
  37 .sp
  38 .LP
  39 \fBddi_dma_burstsizes()\fR returns the allowed burst sizes for a \fBDMA\fR
  40 mapping. This value is derived from the \fBdlim_burstsizes\fR member of the
  41 \fBddi_dma_lim_sparc\fR(9S) structure, but it shows the allowable burstsizes
  42 \fBafter\fR imposing on it the limitations of other device layers in addition
  43 to device's own limitations.
  44 .SH RETURN VALUES
  45 .sp
  46 .LP
  47 \fBddi_dma_burstsizes()\fR returns a binary encoded value of the allowable
  48 \fBDMA\fR burst sizes. See \fBddi_dma_lim_sparc\fR(9S) for a discussion of
  49 \fBDMA\fR burst sizes.
  50 .SH CONTEXT
  51 .sp
  52 .LP
  53 This function can be called from user or interrupt context.
  54 .SH SEE ALSO
  55 .sp
  56 .LP
  57 \fBddi_dma_devalign\fR(9F), \fBddi_dma_setup\fR(9F),
  58 \fBddi_dma_lim_sparc\fR(9S), \fBddi_dma_req\fR(9S)
  59 .sp
  60 .LP
  61 \fIWriting Device Drivers\fR