cpu/uc3/include/cpu/addrspace.h File Reference

Address space definitions for AVR32 UC3 devices. More...

#include <types.h>

Include dependency graph for addrspace.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void * phys_to_cached (phys_addr_t paddr)
static void * phys_to_uncached (phys_addr_t paddr)
static phys_addr_t virt_to_phys (void *vaddr)


Detailed Description

Address space definitions for AVR32 UC3 devices.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file addrspace.h.


Function Documentation

static void* phys_to_cached ( phys_addr_t  paddr  )  [inline, static]

Convert a physical address to a virtual pointer to cacheable memory.

Parameters:
paddr A physical address.
Returns:
A virtual address in P1 corresponding to paddr.

Definition at line 57 of file addrspace.h.

static void* phys_to_uncached ( phys_addr_t  paddr  )  [inline, static]

Convert a physical address to a virtual pointer to non-cacheable memory.

Parameters:
paddr A physical address.
Returns:
A virtual address in P2 corresponding to paddr.

Definition at line 68 of file addrspace.h.

static phys_addr_t virt_to_phys ( void *  vaddr  )  [inline, static]

Convert a virtual pointer to a physical address. vaddr must contain an address in either P1 or P2, for example one returned by phys_to_cached() or phys_to_uncached().

Parameters:
vaddr A virtual address in P1 or P2.
Returns:
The physical address corresponding to vaddr.

Definition at line 80 of file addrspace.h.


Generated on Tue Sep 15 10:18:50 2009 for libavr32 by  doxygen 1.5.8