FreeBSD/sys/dev/cxgb/common/cxgb_t3_hw.c
/*
 * Interrupt handler for the PCIE module.
 */
Interrupt handler for the PCIE module.
Interrupt handler for the PCIE module .
static void pcie_intr_handler(adapter_t *adapter)
{
	static struct intr_info pcie_intr_info[] = {
		{ F_PEXERR, "PCI PEX error", -1, 1 },
		{ F_UNXSPLCPLERRR,
		  "PCI unexpected split completion DMA read error", -1, 1 },
		{ F_UNXSPLCPLERRC,
		  "PCI unexpected split completion DMA command error", -1, 1 },
		{ F_PCIE_PIOPARERR, "PCI PIO FIFO parity error", -1, 1 },
		{ F_PCIE_WFPARERR, "PCI write FIFO parity error", -1, 1 },
		{ F_PCIE_RFPARERR, "PCI read FIFO parity error", -1, 1 },
		{ F_PCIE_CFPARERR, "PCI command FIFO parity error", -1, 1 },
		{ V_PCIE_MSIXPARERR(M_PCIE_MSIXPARERR),
		  "PCI MSI-X table/PBA parity error", -1, 1 },
		{ F_RETRYBUFPARERR, "PCI retry buffer parity error", -1, 1 },
		{ F_RETRYLUTPARERR, "PCI retry LUT parity error", -1, 1 },
		{ F_RXPARERR, "PCI Rx parity error", -1, 1 },
		{ F_TXPARERR, "PCI Tx parity error", -1, 1 },
		{ V_BISTERR(M_BISTERR), "PCI BIST error", -1, 1 },
		{ 0 }
	};
	if (t3_read_reg(adapter, A_PCIE_INT_CAUSE) & F_PEXERR)
		CH_ALERT(adapter, "PEX error code 0x%x\n",
			 t3_read_reg(adapter, A_PCIE_PEX_ERR));
	if (t3_handle_intr_status(adapter, A_PCIE_INT_CAUSE, PCIE_INTR_MASK,
				  pcie_intr_info, adapter->irq_stats))
		t3_fatal_err(adapter);
}
static void pcie_intr_handler ( adapter_t * adapter ) { static struct intr_info pcie_intr_info [ ] = { { F_PEXERR , " " , -1 , 1 } , { F_UNXSPLCPLERRR , " " , -1 , 1 } , { F_UNXSPLCPLERRC , " " , -1 , 1 } , { F_PCIE_PIOPARERR , " " , -1 , 1 } , { F_PCIE_WFPARERR , " " , -1 , 1 } , { F_PCIE_RFPARERR , " " , -1 , 1 } , { F_PCIE_CFPARERR , " " , -1 , 1 } , { V_PCIE_MSIXPARERR ( M_PCIE_MSIXPARERR ) , " " , -1 , 1 } , { F_RETRYBUFPARERR , " " , -1 , 1 } , { F_RETRYLUTPARERR , " " , -1 , 1 } , { F_RXPARERR , " " , -1 , 1 } , { F_TXPARERR , " " , -1 , 1 } , { V_BISTERR ( M_BISTERR ) , " " , -1 , 1 } , { 0 } } ; if ( t3_read_reg ( adapter , A_PCIE_INT_CAUSE ) & F_PEXERR ) CH_ALERT ( adapter , " \n " , t3_read_reg ( adapter , A_PCIE_PEX_ERR ) ) ; if ( t3_handle_intr_status ( adapter , A_PCIE_INT_CAUSE , PCIE_INTR_MASK , pcie_intr_info , adapter -> irq_stats ) ) t3_fatal_err ( adapter ) ; }
Interrupt handler for the PCIE module.
Interrupt handler for the PCIE module .