xref: /illumos-gate/usr/src/man/man9f/ddi_fm_acc_err_clear.9f (revision 66582b606a8194f7f3ba5b3a3a6dca5b0d346361)
te
Copyright (c) 2007, 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]
DDI_FM_ACC_ERR_CLEAR 9F "May 10, 2007"
NAME
ddi_fm_acc_err_clear, ddi_fm_dma_err_clear - clear the error status for an access or DMA handle
SYNOPSIS

#include <sys/ndifma.h>

void ddi_fm_acc_err_clear(ddi_acc_handle_t acc_handle,
 int version);

void ddi_fm_dma_err_clear(ddi_dma_handle_t dma_handle,
 int version);
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI)

PARAMETERS
acc_handle

Data access handle obtained from a previous call to ddi_regs_map_setup(9F), ddi_dma_mem_alloc(9F), or to a similar function.

dma_handle

DMA handle obtained from a previous call to ddi_dma_mem_alloc(9F) or one of its derivatives.

version

Version number of ddi_fm_error_t.

DESCRIPTION

The ddi_fm_dma_err_clear() and ddi_fm_acc_err_clear() functions clear the error status of a DMA or access handle respectively.

Once cleared, the driver is again able to access the mapped registers or memory using programmed I/O through the handle.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Committed
SEE ALSO

attributes(5), ddi_dma_mem_alloc(9F), ddi_fm_acc_err_get(9F), ddi_fm_dma_err_get(9F), ddi_regs_map_setup(9F)

Writing Device Drivers