Name

of_pci_get_devfn — Get device and function numbers for a device node

Synopsis

int of_pci_get_devfn (struct device_node * np);
 

Arguments

np

Pointer to device node

Description

Parse the reg property which contains a standard 5-cell PCI resource

The return value is an 8-bit value that can be passed to the PCI_SLOT and PCI_FUNC macros to extract the device and function numbers respectively. On error a negative error code is returned.

Return

PCI slot and function numbers on success, -EINVAL on error.