Name

of_iomap — Map the memory mapped IO for a given device_node

Synopsis

void __iomem * of_iomap (struct device_node * np,
 int index);
 

Arguments

np

Device whose io range will be mapped

index

Index into the node addresses array

Description

ioremap the translated address from node np. The address translated is from the reg or assigned-adresses property of node np, as apppropriate for the bus type of the parent of np. Use index to select the element of the property to translate and map.

See of_address_to_resource for more information on address translation.

Return

Pointer to the mapped memory