if (pir->bus == bus && ((pir->device >> 3) & 0x1f) == device)
if (pir->bus == bus && PIR_DEVFUNC_DEVICE(pir->device) == device)
pciintr_pir_lookup(bus, device)	int bus, device;{	struct pcibios_intr_routing *pir;	int entry;	if (pcibios_pir_table == NULL)		return (NULL);	for (entry = 0; entry < pcibios_pir_table_nentries; entry++) {		pir = &pcibios_pir_table[entry];		if (pir->bus == bus && ((pir->device >> 3) & 0x1f) == device)			return (pir);	}	return (NULL);}