FreeBSD/sys/i386/pci/pci_pir.c
/*
 * Find the link device associated with a PCI device in the table.
 */
Find the link device associated with a PCI device in the table.
Find the link device associated with a PCI device in the table .
static void
pci_pir_find_link_handler(struct PIR_entry *entry, struct PIR_intpin *intpin,
    void *arg)
{
	struct pci_link_lookup *lookup;
	lookup = (struct pci_link_lookup *)arg;
	if (entry->pe_bus == lookup->bus &&
	    entry->pe_device == lookup->device &&
	    intpin - entry->pe_intpin == lookup->pin)
		*lookup->pci_link_ptr = pci_pir_find_link(intpin->link);
}
static void pci_pir_find_link_handler ( struct PIR_entry * entry , struct PIR_intpin * intpin , void * arg ) { struct pci_link_lookup * lookup ; lookup = ( struct pci_link_lookup * ) arg ; if ( entry -> pe_bus == lookup -> bus && entry -> pe_device == lookup -> device && intpin - entry -> pe_intpin == lookup -> pin ) * lookup -> pci_link_ptr = pci_pir_find_link ( intpin -> link ) ; }
Find the link device associated with a PCI device in the table.
Find the link device associated with a PCI device in the table .