include/generic/dma_nommu.h File Reference

DMA mapping primitives for processors without an MMU. More...

#include <physmem.h>
#include <types.h>

Go to the source code of this file.

Data Structures

union  dma_addr_t
 A physical/virtual address pair used for DMA. More...

Functions

static dma_addr_t dma_addr_failure (void)
 Return an address indicating failure.
static bool dma_addr_is_failed (dma_addr_t addr)
 Test if a DMA address addr indicates failure.
static void dma_sync_for_device (dma_addr_t addr, size_t size, enum dma_direction direction)
 Synchronize a DMA buffer before transfer.
static void dma_sync_for_cpu (dma_addr_t addr, size_t size, enum dma_direction direction)
 Synchronize a DMA buffer after transfer.
static dma_addr_t dma_map_single (const void *vaddr, size_t size, enum dma_direction direction)
 Map a single contiguous buffer for DMA transfer.
static void dma_unmap_single (dma_addr_t addr, size_t size, enum dma_direction direction)
 Unmap a single contiguous buffer after a DMA transfer.

Detailed Description

DMA mapping primitives for processors without an MMU.

Note:
Strictly speaking, MMU-less does not mean cache-less, yet these primitives do not support processors with a cache. In practice, however, this framework does not support any MMU-less devices with a cache anyway.

Copyright (C) 2009 Atmel Corporation. All rights reserved.

Definition in file dma_nommu.h.

Generated on Thu Apr 29 14:09:42 2010 for uart-loopback by  doxygen 1.6.3