38 return cpu_addr != ~0ULL ? cpu_addr : address;
48 return dma_addr != ~0ULL ? dma_addr : address;
void * rt_ofw_iomap(struct rt_ofw_node *np, int index)
rt_uint64_t rt_ofw_reverse_address(struct rt_ofw_node *np, const char *range_type, rt_uint64_t address)
rt_inline rt_uint64_t rt_ofw_translate_dma2cpu(struct rt_ofw_node *np, rt_uint64_t address)
int rt_ofw_bus_size_cells(struct rt_ofw_node *np)
void * rt_ofw_iomap_by_name(struct rt_ofw_node *np, const char *name)
rt_err_t rt_ofw_get_address_by_name(struct rt_ofw_node *np, const char *name, rt_uint64_t *out_address, rt_uint64_t *out_size)
rt_inline rt_uint64_t rt_ofw_translate_cpu2dma(struct rt_ofw_node *np, rt_uint64_t address)
rt_err_t rt_ofw_get_address(struct rt_ofw_node *np, int index, rt_uint64_t *out_address, rt_uint64_t *out_size)
int rt_ofw_io_size_cells(struct rt_ofw_node *np)
int rt_ofw_get_address_array(struct rt_ofw_node *np, int nr, rt_uint64_t *out_regs)
int rt_ofw_io_addr_cells(struct rt_ofw_node *np)
rt_uint64_t rt_ofw_translate_address(struct rt_ofw_node *np, const char *range_type, rt_uint64_t address)
int rt_ofw_get_address_count(struct rt_ofw_node *np)
int rt_ofw_bus_addr_cells(struct rt_ofw_node *np)
unsigned long long rt_uint64_t