Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
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.
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.
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]
#include <sys/ddi.h> #include <sys/sunddi.h> int ddi_dma_get_attr(ddi_dma_handle_t handle, ddi_dma_attr_t *attrp);
Solaris DDI specific (Solaris DDI). This interface is obsolete.
handle
The handle filled in by a call to ddi_dma_alloc_handle(9F).
attrp
Pointer to a buffer suitable for holding a DMA attribute structure. See ddi_dma_attr(9S).
ddi_dma_get_attr() is used to get a ddi_dma_attr(9S) structure. This structure describes the attributes of the DMA data path to which any memory object bound to the given handle will be subject.
DDI_SUCCESS
Successfully passed back attribute structure in buffer pointed to by attrp.
DDI_DMA_BADATTR
A valid attribute structure could not be passed back.
ddi_dma_get_attr() can be called from any context.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Obsolete |
ddi_dma_alloc_handle(9F), ddi_dma_attr(9S)