Name

of_irq_parse_pci — Resolve the interrupt for a PCI device

Synopsis

int of_irq_parse_pci (const struct pci_dev * pdev,
 struct of_phandle_args * out_irq);
 

Arguments

pdev

Pointer to device whose interrupt is to be resolved

out_irq

Pointer used to return zzz

Description

Resolve the PCI interrupt for a given PCI device. If a device-node exists for a given pci_dev, it will use normal OF tree walking. If not, it will implement standard swizzling and walk up the PCI tree until an device-node is found, at which point it will finish resolving using the OF tree walking.

On success the final translated interrupt specifier is returned in out_irq.

Also see

of_irq_parse_one, of_irq_parse_raw

Return

0 on success, else -EINVAL on error, PCIBIOS_BAD_REGISTER_NUMBER or errors returned by pdev->bus->ops->read from pci_read_config_byte errors.