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/kmemcheck.h>
#include <linux/scatterlist.h>
#include <linux/dma-debug.h>
#include <linux/dma-attrs.h>
#include <asm/io.h>
#include <asm/swiotlb.h>
#include <asm-generic/dma-coherent.h>
#include <linux/dma-contiguous.h>
#include <asm-generic/dma-mapping-common.h>

Go to the source code of this file.

Macros

#define ISA_DMA_BIT_MASK   DMA_BIT_MASK(32)
 
#define DMA_ERROR_CODE   0
 
#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 *hwdev, u64 mask)
 
int dma_set_mask (struct device *dev, u64 mask)
 
voiddma_generic_alloc_coherent (struct device *dev, size_t size, dma_addr_t *dma_addr, gfp_t flag, struct dma_attrs *attrs)
 
void dma_generic_free_coherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_addr, struct dma_attrs *attrs)
 

Variables

int iommu_merge
 
struct device x86_dma_fallback_dev
 
int panic_on_overflow
 
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 127 of file dma-mapping.h.

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

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

#define DMA_ERROR_CODE   0

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

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

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

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

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

#define ISA_DMA_BIT_MASK   DMA_BIT_MASK(32)

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

Function Documentation

void* dma_generic_alloc_coherent ( struct device dev,
size_t  size,
dma_addr_t dma_addr,
gfp_t  flag,
struct dma_attrs attrs 
)

Definition at line 35 of file consistent.c.

void dma_generic_free_coherent ( struct device dev,
size_t  size,
void vaddr,
dma_addr_t  dma_addr,
struct dma_attrs attrs 
)

Definition at line 67 of file consistent.c.

int dma_set_mask ( struct device dev,
u64  mask 
)

Definition at line 41 of file dma.c.

int dma_supported ( struct device hwdev,
u64  mask 
)

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

Variable Documentation

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

int iommu_merge
int panic_on_overflow
struct device x86_dma_fallback_dev

Definition at line 51 of file pci-dma.c.