2 .\" Copyright (c) 2006, 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_FREE 9F "Jan 16, 2006"
8 ddi_dma_free \- release system DMA resources
13 #include <sys/sunddi.h>
17 \fBint\fR \fBddi_dma_free\fR(\fBddi_dma_handle_t\fR \fIhandle\fR);
23 This interface is obsolete. \fBddi_dma_free_handle\fR(9F) should be used
32 The handle filled in by a call to \fBddi_dma_setup\fR(9F).
38 The \fBddi_dma_free()\fR function releases system \fBDMA\fR resources set up by
39 \fBddi_dma_setup\fR(9F). When a \fBDMA\fR transfer completes, the driver should
40 free up system \fBDMA\fR resources established by a call to
41 \fBddi_dma_setup\fR(9F). This is done by a call to \fBddi_dma_free()\fR.
42 \fBddi_dma_free()\fR does an implicit \fBddi_dma_sync\fR(9F) for you so any
43 further synchronization steps are not necessary.
47 The \fBddi_dma_free()\fR function returns:
51 \fB\fBDDI_SUCCESS\fR\fR
54 Successfully released resources
60 \fB\fBDDI_FAILURE\fR\fR
63 Failed to free resources
69 The \fBddi_dma_free()\fR function can be called from user, interrupt, or kernel
74 See \fBattributes\fR(5) for a description of the following attributes:
82 ATTRIBUTE TYPE ATTRIBUTE VALUE
84 Stability Level Obsolete
90 \fBattributes\fR(5), \fBddi_dma_addr_setup\fR(9F), \fBddi_dma_buf_setup\fR(9F),
91 \fBddi_dma_free_handle\fR(9F), \fBddi_dma_htoc\fR(9F), \fBddi_dma_sync\fR(9F),
95 \fIWriting Device Drivers\fR