#include <linux/device.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/pci_regs.h>
#include <linux/string.h>
Go to the source code of this file.
|
| u64 | of_translate_address (struct device_node *dev, const __be32 *in_addr) |
| |
| | EXPORT_SYMBOL (of_translate_address) |
| |
| u64 | of_translate_dma_address (struct device_node *dev, const __be32 *in_addr) |
| |
| | EXPORT_SYMBOL (of_translate_dma_address) |
| |
| bool | of_can_translate_address (struct device_node *dev) |
| |
| | EXPORT_SYMBOL (of_can_translate_address) |
| |
| const __be32 * | of_get_address (struct device_node *dev, int index, u64 *size, unsigned int *flags) |
| |
| | EXPORT_SYMBOL (of_get_address) |
| |
| int | of_address_to_resource (struct device_node *dev, int index, struct resource *r) |
| |
| | EXPORT_SYMBOL_GPL (of_address_to_resource) |
| |
| struct device_node * | of_find_matching_node_by_address (struct device_node *from, const struct of_device_id *matches, u64 base_address) |
| |
| void __iomem * | of_iomap (struct device_node *np, int index) |
| |
| | EXPORT_SYMBOL (of_iomap) |
| |
| #define OF_MAX_ADDR_CELLS 4 |
of_address_to_resource - Translate device tree address and return as resource
Note that if your address is a PIO address, the conversion will fail if the physical address can't be internally converted to an IO token with pci_address_to_pio(), that is because it's either called to early or it can't be matched to any host bridge IO space
Definition at line 595 of file address.c.