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

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


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