#include <string.h>
#include "mmuutil.h"
Go to the source code of this file.
Data Structures |
| struct | ppc_pte_t |
| struct | ppc_pteg_t |
| struct | ppc_map_t |
| struct | ppc_map_info_t |
| struct | ppc_trap_frame_t |
Defines |
| #define | MMUCODE 0x10000 |
| #define | HTABORG 0x20000 |
| #define | HTABSIZ 0x10000 |
| #define | PAGETAB 0x30000 |
| #define | PpcHashedPTE ((ppc_pteg_t*)(HTABORG)) |
| #define | PpcPageTable ((ppc_map_t*)(PAGETAB)) |
| #define | PPC_PAGE_ADDR(x) ((x) << 12) |
| #define | PPC_PAGE_NUMBER(x) ((x) >> 12) |
| #define | PPC_VSID_MASK 0xffffff |
| #define | PPC_PAGE_MASK 0xfff |
| #define | MMU_NONE 0 |
| #define | MMU_KR 8 |
| #define | MMU_KW 4 |
| #define | MMU_UR 2 |
| #define | MMU_UW 1 |
| #define | MMU_ALL_R 10 |
| #define | MMU_KRW 12 |
| #define | MMU_KRW_UR 14 |
| #define | MMU_ALL_RW 15 |
| #define | MMU_PAGE_ACCESS 0x40000000 |
| #define | MMU_PAGE_DIRTY 0x80000000 |
| #define | MMU_KMASK 12 |
| #define | MMU_UMASK 3 |
| #define | MmuInit() _MmuInit(&_binary_mmucode_start, &_binary_mmucode_end) |
Typedefs |
| typedef unsigned long | paddr_t |
| typedef unsigned long | vaddr_t |
| typedef int(* | MmuTrapHandler )(int trapid, ppc_trap_frame_t *trap) |
Functions |
| static int | PPCMMU (int action, void *arg1, void *arg2, void *arg3) |
| static void | _MmuInit (void *_start, void *_end) |
| static int | MmuMapPage (ppc_map_info_t *info, int count) |
| static void | MmuUnmapPage (ppc_map_info_t *info, int count) |
| static void | MmuSetVsid (int start, int end, int vsid) |
| static MmuTrapHandler | MmuSetTrapHandler (int trap, MmuTrapHandler cb) |
| static void | MmuInqPage (ppc_map_info_t *info, int count) |
| static int | MmuUnitTest () |
| static int | MmuTurnOn (void *fun, void *arg) |
| static void | MmuSetMemorySize (paddr_t size) |
| static paddr_t | MmuGetFirstPage () |
| static void * | MmuAllocVsid (int vsid, int mask) |
| static void | MmuRevokeVsid (int vsid, int mask) |
| static paddr_t | MmuGetPage () |
| static void | MmuCallbackRet () |
| static void | MmuDumpMap () |
| static void | MmuDbgInit (int deviceType, int devicePort) |
| static void | MmuDbgEnter (int signal) |
Variables |
| char | _binary_mmucode_start [] |
| char | _binary_mmucode_end [] |