Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
of_iommu.c File Reference
#include <linux/export.h>
#include <linux/limits.h>
#include <linux/of.h>

Go to the source code of this file.

Functions

int of_get_dma_window (struct device_node *dn, const char *prefix, int index, unsigned long *busno, dma_addr_t *addr, size_t *size)
 
 EXPORT_SYMBOL_GPL (of_get_dma_window)
 

Function Documentation

EXPORT_SYMBOL_GPL ( of_get_dma_window  )
int of_get_dma_window ( struct device_node dn,
const char prefix,
int  index,
unsigned long busno,
dma_addr_t addr,
size_t size 
)

of_get_dma_window - Parse *dma-window property and returns 0 if found.

: device node : prefix for property name if any : index to start to parse : Returns busno if supported. Otherwise pass NULL : Returns address that DMA starts : Returns the range that DMA can handle

This supports different formats flexibly. "prefix" can be configured if any. "busno" and "index" are optionally specified. Set 0(or NULL) if not used.

Definition at line 38 of file of_iommu.c.