RTEMS: bsps/powerpc/virtex5/include/bsp/mmu.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
mmu.h File Reference

Routines to manipulate the PPC 440 MMU. More...

`#include <rtems.h>`
`#include <inttypes.h>`
`#include <stdio.h>`

Go to the source code of this file.

## Data Structures
struct | bsp_tlb_entry_t

## Macros
#define | NTLBS 64
#define | MMU_M_SIZE_1K (0x00000000U)
#define | MMU_M_SIZE_4K (0x08000000U)
#define | MMU_M_SIZE_16K (0x10000000U)
#define | MMU_M_SIZE_64K (0x18000000U)
#define | MMU_M_SIZE_256K (0x20000000U)
#define | MMU_M_SIZE_1M (0x28000000U)
#define | MMU_M_SIZE_16M (0x38000000U)
#define | MMU_M_SIZE_256M (0x48000000U)
#define | MMU_M_SIZE_MIN (MMU_M_SIZE_1K)
#define | MMU_M_SIZE_MAX (MMU_M_SIZE_256M)
#define | MMU_M_SIZE (0x78000000U)
#define | MMU_V_SIZE (27)
#define | MMU_M_ATTR_USER0 (0x00010000U)
#define | MMU_M_ATTR_USER1 (0x00008000U)
#define | MMU_M_ATTR_USER2 (0x00004000U)
#define | MMU_M_ATTR_USER3 (0x00002000U)
#define | MMU_M_ATTR (0x0001e000U)
#define | MMU_V_ATTR (13)
#define | MMU_M_PROP_WRITE_THROUGH (0x00001000U)
#define | MMU_M_PROP_UNCACHED (0x00000800U)
#define | MMU_M_PROP_MEM_COHERENT (0x00000400U)
#define | MMU_M_PROP_GUARDED (0x00000200U)
#define | MMU_M_PROP_LITTLE_ENDIAN (0x00000100U)
#define | MMU_M_PROP (0x00000f00U)
#define | MMU_V_PROP (8)
#define | MMU_M_PERM_USER_EXEC (0x00000020U)
#define | MMU_M_PERM_USER_WRITE (0x00000010U)
#define | MMU_M_PERM_USER_READ (0x00000008U)
#define | MMU_M_PERM_SUPER_EXEC (0x00000004U)
#define | MMU_M_PERM_SUPER_WRITE (0x00000002U)
#define | MMU_M_PERM_SUPER_READ (0x00000001U)
#define | MMU_M_PERM (0x0000003fU)
#define | MMU_V_PERM (0)

## Typedefs
typedef int | bsp_tlb_idx_t

## Functions
void | bsp_mmu_dump_cache (FILE *f)
int | bsp_mmu_update (bsp_tlb_idx_t key, bool quiet, FILE *f)
int | bsp_mmu_initialize (void)
bsp_tlb_idx_t | bsp_mmu_find_first_free (void)
bsp_tlb_idx_t | bsp_mmu_write (bsp_tlb_idx_t idx, uint32_t ea, uint32_t pa, int sz, uint32_t flgs, uint32_t tid, uint32_t ts, uint32_t erpn)
bsp_tlb_idx_t | bsp_mmu_match (uint32_t ea, int sz, uint32_t tid, uint32_t ts)
bsp_tlb_idx_t | bsp_mmu_find (uint32_t ea, uint32_t tid, uint32_t ts)
int | bsp_mmu_invalidate (bsp_tlb_idx_t key)

## Variables
bsp_tlb_entry_t * | bsp_mmu_cache

## Detailed Description

Routines to manipulate the PPC 440 MMU.