FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_kill_hba:	Kill HBA when OCR is not supported
 * input:			Adapter Context.
 *
 * This function will kill HBA when OCR is not supported.
 */
Kill HBA when OCR is not supported
input:                       Adapter Context.

This function will kill HBA when OCR is not supported.
Kill HBA when OCR is not supported input : Adapter Context . This function will kill HBA when OCR is not supported .
void
mrsas_kill_hba(struct mrsas_softc *sc)
{
	sc->adprecovery = MRSAS_HW_CRITICAL_ERROR;
	DELAY(1000 * 1000);
	mrsas_dprint(sc, MRSAS_OCR, "%s\n", __func__);
	mrsas_write_reg(sc, offsetof(mrsas_reg_set, doorbell),
	    MFI_STOP_ADP);
	mrsas_read_reg(sc, offsetof(mrsas_reg_set, doorbell));
	mrsas_complete_outstanding_ioctls(sc);
}
void mrsas_kill_hba ( struct mrsas_softc * sc ) { sc -> adprecovery = MRSAS_HW_CRITICAL_ERROR ; DELAY ( 1000 * 1000 ) ; mrsas_dprint ( sc , MRSAS_OCR , " \n " , __func__ ) ; mrsas_write_reg ( sc , offsetof ( mrsas_reg_set , doorbell ) , MFI_STOP_ADP ) ; mrsas_read_reg ( sc , offsetof ( mrsas_reg_set , doorbell ) ) ; mrsas_complete_outstanding_ioctls ( sc ) ; }
mrsas_kill_hba:      Kill HBA when OCR is not supported
 input:                       Adapter Context.
mrsas_kill_hba : Kill HBA when OCR is not supported input : Adapter Context .
/* Flush */