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 <asm/scatterlist.h>
#include <asm/cache.h>
#include <asm-generic/dma-coherent.h>
#include <dma-coherence.h>
#include <asm-generic/dma-mapping-common.h>

Go to the source code of this file.

Macros

#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

void dma_cache_sync (struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction)
 
voiddma_alloc_noncoherent (struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag)
 
void dma_free_noncoherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)
 

Variables

struct dma_map_opsmips_dma_map_ops
 

Macro Definition Documentation

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

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

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

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

Function Documentation

void* dma_alloc_noncoherent ( struct device dev,
size_t  size,
dma_addr_t dma_handle,
gfp_t  flag 
)

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

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.

void dma_free_noncoherent ( struct device dev,
size_t  size,
void vaddr,
dma_addr_t  dma_handle 
)

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

Variable Documentation

struct dma_map_ops* mips_dma_map_ops

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