Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/dma-mapping.h>
#include <linux/list.h>
#include <linux/pci.h>
#include <asm/io.h>
Go to the source code of this file.
Data Structures | |
struct | dma_alloc_record |
Macros | |
#define | DMA_SRAM_START dma_coherent_mem_start |
#define | DMA_SRAM_END dma_coherent_mem_end |
Functions | |
void * | dma_alloc_coherent (struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) |
EXPORT_SYMBOL (dma_alloc_coherent) | |
void | dma_free_coherent (struct device *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) |
EXPORT_SYMBOL (dma_free_coherent) | |
dma_addr_t | dma_map_single (struct device *dev, void *ptr, size_t size, enum dma_data_direction direction) |
EXPORT_SYMBOL (dma_map_single) | |
int | dma_map_sg (struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) |
EXPORT_SYMBOL (dma_map_sg) | |
dma_addr_t | dma_map_page (struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction) |
EXPORT_SYMBOL (dma_map_page) | |
#define DMA_SRAM_END dma_coherent_mem_end |
Definition at line 22 of file pci-dma-nommu.c.
#define DMA_SRAM_START dma_coherent_mem_start |
Definition at line 21 of file pci-dma-nommu.c.
dma_alloc_coherent - allocate consistent memory for DMA : valid struct device pointer, or NULL for ISA and EISA-like devices : required memory size : bus-specific DMA address
Allocate some uncached, unbuffered memory for a device for performing DMA. This function allocates pages, and will return the CPU-viewed address, and sets to be the device-viewed address.
Definition at line 37 of file pci-dma-nommu.c.
dma_free_coherent - free memory allocated by dma_alloc_coherent : valid struct device pointer, or NULL for ISA and EISA-like devices : size of memory originally requested in dma_alloc_coherent : CPU-view address returned from dma_alloc_coherent : device-view address returned from dma_alloc_coherent
Free (and unmap) a DMA buffer previously allocated by dma_alloc_coherent().
References to memory and mappings associated with cpu_addr/handle during and after this call executing are illegal.
Definition at line 89 of file pci-dma-nommu.c.
dma_addr_t dma_map_page | ( | struct device * | dev, |
struct page * | page, | ||
unsigned long | offset, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
Definition at line 138 of file pci-dma-nommu.c.
int dma_map_sg | ( | struct device * | dev, |
struct scatterlist * | sg, | ||
int | nents, | ||
enum dma_data_direction | direction | ||
) |
Definition at line 122 of file pci-dma-nommu.c.
dma_addr_t dma_map_single | ( | struct device * | dev, |
void * | ptr, | ||
size_t | size, | ||
enum dma_data_direction | direction | ||
) |
Definition at line 110 of file pci-dma-nommu.c.
EXPORT_SYMBOL | ( | dma_alloc_coherent | ) |
EXPORT_SYMBOL | ( | dma_free_coherent | ) |
EXPORT_SYMBOL | ( | dma_map_single | ) |
EXPORT_SYMBOL | ( | dma_map_sg | ) |
EXPORT_SYMBOL | ( | dma_map_page | ) |