Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dma-mapping.h File Reference
#include <linux/types.h>
#include <linux/cache.h>
#include <linux/mm.h>
#include <linux/scatterlist.h>
#include <linux/dma-mapping.h>
#include <linux/dma-debug.h>
#include <linux/dma-attrs.h>
#include <asm/io.h>
#include <asm-generic/dma-mapping-common.h>

Go to the source code of this file.

Macros

#define dma_alloc_noncoherent(d, s, h, f)   dma_alloc_coherent(d, s, h, f)
 
#define dma_free_noncoherent(d, s, v, h)   dma_free_coherent(d, s, v, h)
 
#define dma_alloc_coherent(d, s, h, f)   dma_alloc_attrs(d,s,h,f,NULL)
 
#define dma_free_coherent(d, s, c, h)   dma_free_attrs(d,s,c,h,NULL)
 

Functions

int dma_supported (struct device *dev, u64 mask)
 
int dma_set_mask (struct device *dev, u64 mask)
 
int dma_is_consistent (struct device *dev, dma_addr_t dma_handle)
 
void dma_cache_sync (struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction)
 

Variables

int bad_dma_address
 
struct dma_map_opsdma_ops
 

Macro Definition Documentation

#define dma_alloc_coherent (   d,
  s,
  h,
  f 
)    dma_alloc_attrs(d,s,h,f,NULL)

Definition at line 74 of file dma-mapping.h.

#define dma_alloc_noncoherent (   d,
  s,
  h,
  f 
)    dma_alloc_coherent(d, s, h, f)

Definition at line 38 of file dma-mapping.h.

#define dma_free_coherent (   d,
  s,
  c,
  h 
)    dma_free_attrs(d,s,c,h,NULL)

Definition at line 92 of file dma-mapping.h.

#define dma_free_noncoherent (   d,
  s,
  v,
  h 
)    dma_free_coherent(d, s, v, h)

Definition at line 39 of file dma-mapping.h.

Function Documentation

void dma_cache_sync ( struct device dev,
void vaddr,
size_t  size,
enum dma_data_direction  direction 
)

Definition at line 313 of file dma-default.c.

int dma_is_consistent ( struct device dev,
dma_addr_t  dma_handle 
)
int dma_set_mask ( struct device dev,
u64  mask 
)

Definition at line 41 of file dma.c.

int dma_supported ( struct device dev,
u64  mask 
)

Definition at line 966 of file dma-mapping.c.

Variable Documentation

int bad_dma_address

Definition at line 30 of file dma.c.

Definition at line 188 of file pci-noop.c.