FreeBSD/sys/dev/nxge/include/xgehal-device.h
/**
 * xge_hal_device_inject_ecc - Inject ECC error.
 * @devh: HAL device, pointer to xge_hal_device_t structure.
 * @err_reg: Contains the error register.
 *
 * This function is used to inject ECC error into the driver flow.
 * This facility can be used to test the driver flow in the
 * case of ECC error is reported by the firmware.
 *
 * Returns: void
 * See also: xge_hal_device_inject_serr(),
 * xge_hal_device_inject_bad_tcode()
 */
Inject ECC error.
@devh: HAL device, pointer to xge_hal_device_t structure.
@err_reg: Contains the error register.

This function is used to inject ECC error into the driver flow.
This facility can be used to test the driver flow in the
case of ECC error is reported by the firmware.


Inject ECC error . @devh : HAL device pointer to xge_hal_device_t structure . @err_reg : Contains the error register . This function is used to inject ECC error into the driver flow . This facility can be used to test the driver flow in the case of ECC error is reported by the firmware .
static inline void
xge_hal_device_inject_ecc(xge_hal_device_h devh, u64 err_reg)
{
	    ((xge_hal_device_t*)devh)->inject_ecc = err_reg;
}
static inline void xge_hal_device_inject_ecc ( xge_hal_device_h devh , u64 err_reg ) { ( ( xge_hal_device_t * ) devh ) -> inject_ecc = err_reg ; }
xge_hal_device_inject_ecc - Inject ECC error.
xge_hal_device_inject_ecc - Inject ECC error .