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. | |
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!
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file physmem_nommu.h.
| #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.
| 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.
| phys | A valid physical address. | |
| size | The size of the physical region to be mapped. | |
| flags | Flags specifying cache behaviour, etc. |
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.
| 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.
1.6.3