include/generic/physmem_nommu.h File Reference

Physical memory definitions for processors without MMU. More...

#include <stdint.h>

Go to the source code of this file.

Defines

#define PHYS_MAP_COHERENT   (0)
 Create a coherent (uncached) mapping.
#define PHYS_MAP_WRBUF   (0)
 Write-buffering is allowed.
#define PHYS_MAP_WRTHROUGH   (0)
 Write-through caching is allowed.
#define PHYS_MAP_WRBACK   (0)
 Write-back caching is allowed.

Functions

static void * physmem_map (phys_addr_t phys, phys_size_t size, unsigned long flags)
 Map a physical address to a virtual address.
static void physmem_unmap (void *vaddr, phys_size_t size)
 Unmap a virtual-to-physical mapping.

Detailed Description

Physical memory definitions for processors without MMU.

This file is intended to be included from cpu/physmem.h on processors without a Memory Management Unit (MMU). Do not include this file directly!

See also:
physmem.h

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

Definition in file physmem_nommu.h.


Define Documentation

#define PHYS_MAP_COHERENT   (0)

Create a coherent (uncached) mapping.

Definition at line 50 of file physmem_nommu.h.

#define PHYS_MAP_WRBACK   (0)

Write-back caching is allowed.

Definition at line 56 of file physmem_nommu.h.

Referenced by malloc(), and membag_pool_init_physmem().

#define PHYS_MAP_WRBUF   (0)

Write-buffering is allowed.

Definition at line 52 of file physmem_nommu.h.

Referenced by malloc(), and membag_pool_init_physmem().

#define PHYS_MAP_WRTHROUGH   (0)

Write-through caching is allowed.

Definition at line 54 of file physmem_nommu.h.


Function Documentation

static void* physmem_map ( phys_addr_t  phys,
phys_size_t  size,
unsigned long  flags 
) [inline, static]

Map a physical address to a virtual address.

This function returns a valid virtual address which can be used to access a given physical memory area with given access and caching properties.

Parameters:
phys A valid physical address.
size The size of the physical region to be mapped.
flags Flags specifying cache behaviour, etc.
Returns:
A virtual address which can be used to access phys.

Definition at line 71 of file physmem_nommu.h.

Referenced by malloc(), and membag_pool_init_physmem().

static void physmem_unmap ( void *  vaddr,
phys_size_t  size 
) [inline, static]

Unmap a virtual-to-physical mapping.

This function cleans up any mappings set up by physmem_map(). It must be called when the virtual mapping isn't needed anymore.

Parameters:
vaddr A valid virtual address returned by physmem_map().
size The size of the mapped region.

Definition at line 86 of file physmem_nommu.h.

Generated on Thu Apr 29 14:09:58 2010 for display-demo by  doxygen 1.6.3