Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dma-default.c File Reference
#include <linux/types.h>
#include <linux/dma-mapping.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/scatterlist.h>
#include <linux/string.h>
#include <linux/gfp.h>
#include <linux/highmem.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <dma-coherence.h>

Go to the source code of this file.

Macros

#define PREALLOC_DMA_DEBUG_ENTRIES   (1 << 16)
 

Functions

voiddma_alloc_noncoherent (struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp)
 
 EXPORT_SYMBOL (dma_alloc_noncoherent)
 
void dma_free_noncoherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)
 
 EXPORT_SYMBOL (dma_free_noncoherent)
 
int mips_dma_mapping_error (struct device *dev, dma_addr_t dma_addr)
 
int mips_dma_supported (struct device *dev, u64 mask)
 
void dma_cache_sync (struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction)
 
 EXPORT_SYMBOL (dma_cache_sync)
 
 EXPORT_SYMBOL (mips_dma_map_ops)
 
 fs_initcall (mips_dma_init)
 

Variables

struct dma_map_opsmips_dma_map_ops = &mips_default_dma_map_ops
 

Macro Definition Documentation

#define PREALLOC_DMA_DEBUG_ENTRIES   (1 << 16)

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

Function Documentation

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

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.

EXPORT_SYMBOL ( dma_alloc_noncoherent  )
EXPORT_SYMBOL ( dma_free_noncoherent  )
EXPORT_SYMBOL ( dma_cache_sync  )
EXPORT_SYMBOL ( mips_dma_map_ops  )
fs_initcall ( mips_dma_init  )
int mips_dma_mapping_error ( struct device dev,
dma_addr_t  dma_addr 
)

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

int mips_dma_supported ( struct device dev,
u64  mask 
)

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

Variable Documentation

struct dma_map_ops* mips_dma_map_ops = &mips_default_dma_map_ops

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