FreeBSD/sys/mips/rmi/xlr_pci.c
/*
 * Find the IRQ for the link, each link has a different interrupt 
 * at the XLS pic
 */
Find the IRQ for the link, each link has a different interrupt
at the XLS pic
Find the IRQ for the link each link has a different interrupt at the XLS pic
static int
xls_pcie_link_irq(int link)
{
	switch (link) {
	case 0:
		return (PIC_PCIE_LINK0_IRQ);
	case 1:
		return (PIC_PCIE_LINK1_IRQ);
	case 2:
		if (xlr_is_xls_b0())
			return (PIC_PCIE_B0_LINK2_IRQ);
		else
			return (PIC_PCIE_LINK2_IRQ);
	case 3:
		if (xlr_is_xls_b0())
			return (PIC_PCIE_B0_LINK3_IRQ);
		else
			return (PIC_PCIE_LINK3_IRQ);
	}
	return (-1);
}
static int xls_pcie_link_irq ( int link ) { switch ( link ) { case 0 : return ( PIC_PCIE_LINK0_IRQ ) ; case 1 : return ( PIC_PCIE_LINK1_IRQ ) ; case 2 : if ( xlr_is_xls_b0 ( ) ) return ( PIC_PCIE_B0_LINK2_IRQ ) ; else return ( PIC_PCIE_LINK2_IRQ ) ; case 3 : if ( xlr_is_xls_b0 ( ) ) return ( PIC_PCIE_B0_LINK3_IRQ ) ; else return ( PIC_PCIE_LINK3_IRQ ) ; } return ( -1 ) ; }
Find the IRQ for the link, each link has a different interrupt
 at the XLS pic
Find the IRQ for the link each link has a different interrupt at the XLS pic