FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * Interrupt Disable/Enable/Clear Functions
 *
 */
Interrupt Disable/Enable/Clear Functions
Interrupt Disable / Enable / Clear Functions
void
mrsas_disable_intr(struct mrsas_softc *sc)
{
	u_int32_t mask = 0xFFFFFFFF;
	u_int32_t status;
	sc->mask_interrupts = 1;
	mrsas_write_reg(sc, offsetof(mrsas_reg_set, outbound_intr_mask), mask);
	status = mrsas_read_reg(sc, offsetof(mrsas_reg_set, outbound_intr_mask));
}
void mrsas_disable_intr ( struct mrsas_softc * sc ) { u_int32_t mask = 0xFFFFFFFF ; u_int32_t status ; sc -> mask_interrupts = 1 ; mrsas_write_reg ( sc , offsetof ( mrsas_reg_set , outbound_intr_mask ) , mask ) ; status = mrsas_read_reg ( sc , offsetof ( mrsas_reg_set , outbound_intr_mask ) ) ; }
Interrupt Disable/Enable/Clear Functions
Interrupt Disable / Enable / Clear Functions
/* Dummy read to force pci flush */