of_pci_get_host_bridge_resources — Parse PCI host bridge resources
int of_pci_get_host_bridge_resources ( | struct device_node * dev, |
unsigned char busno, | |
unsigned char bus_max, | |
struct list_head * resources, | |
resource_size_t * io_base) ; |
dev
Pointer to device node of the host bridge
busno
Bus number associated with the bridge root bus
bus_max
Maximum number of buses for this bridge
resources
List where the range of resources will be added after parsing
io_base
If not NULL, pointer used to return the start of the I/O range
It is the caller's job to free the resources
list.
Parse the “bus-range” property of a PCI host bridge device
node and setup the resource mapping based on its content.
If the “bus-range” property is not found then busno
and bus_max
are
used to define the resource.
Returns the physical address for the start of the I/O range in io_base
.