/* Selects the top-level interrupt handler based on the type of interrupts (MSI-X, MSI, or legacy) and whether NAPI will be used to service the response queues.  */
irq_handler_t t3_intr_handler(struct adapter *adap, int polling)
/* Selects the top-level interrupt handler based on the type of interrupts (MSI-X, MSI, or legacy) and whether NAPI will be used to service the response queues.  */
irq_handler_t t3_intr_handler(struct adapter *adap, int polling)
{
	if (adap->flags & USING_MSIX)
		return polling ? t3_sge_intr_msix_napi : t3_sge_intr_msix;
	if (adap->flags & USING_MSI)
		return polling ? t3_intr_msi_napi : t3_intr_msi;
	if (adap->params.rev > 0)
		return polling ? t3b_intr_napi : t3b_intr;
	return t3_intr;
}