/*
* CDDL HEADER START
*
* 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
* 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]
*
* CDDL HEADER END
*/
/* Copyright © 2003-2011 Emulex. All rights reserved. */
/*
* Source file containing the implementation of fma support in driver
*
*/
#include <oce_impl.h>
const void *impl_data);
/*
* function to initialize driver fma support
*
* dev - software handle to the device
*
* return none
*/
void
{
return;
}
}
(void *)dev);
}
} /* oce_fm_init */
/*
* function to deinitialize driver fma support
*
* dev - software handle to the device
*
* return none
*/
void
{
return;
}
}
}
} /* oce_fm_fini */
/*
* function to check the access handle
*
* dev - software handle to the device
* acc_handle - access handle
*
* return fm error status
*/
int
{
return (DDI_FM_OK);
}
return (fme.fme_status);
} /* oce_fm_chk_ach */
/*
* function to check error updates associated with a dma handle
*
* dev - software handle to the device
* dma_handle - dma handle to the resources on which to check for errors
*
* return error code. DDI_FM_OK => no error
*/
int
{
return (DDI_FM_OK);
}
return (fme.fme_status);
} /* oce_fm_chk_dh */
/*
* function to report an error to the FMA framework
*
* dev - software handle to the device
* detail - OS defined string that provides the kind of error to report
*/
void
{
return;
}
}
} /* oce_fm_ereport */
/*
* callback function registered with the FMA infrastructure. This callback is
* called by the nexux driver if there is an error with the device
*
* dip - dev_info_t structure for this device
* err - error information provided by the nexus
* impl_data - callback data
*
* return error code. DDI_FM_OK => no error
*/
static int
{
return (err->fme_status);
}