RTEMS: bsps/powerpc/include/mpc8xx/mmu.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
mmu.h
1/*
2 * mmu.h
3 *
4 * This include file contains definitions pertaining
5 * to the MMU on the MPC8xx.
6 *
7 * Copyright (c) 1999, National Research Council of Canada
8 *
9 * The license and distribution terms for this file may be
10 * found in the file LICENSE in this distribution or at
11 * http://www.rtems.org/license/LICENSE.
12 */
13
14#ifndef _MPC8XX_MMU_H
15#define _MPC8XX_MMU_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/*
22 * The MMU_TLB_table is used to statically initialize the Table Lookaside
23 * Buffers in the MMU of an MPC8xx.
24 */
25typedef struct {
26 uint32_t mmu_epn; /* Effective Page Number */
27 uint32_t mmu_twc; /* Tablewalk Control Register */
28 uint32_t mmu_rpn; /* Real Page Number */
29} MMU_TLB_table_t;
30
31/*
32 * The MMU_TLB_table and its size, MMU_N_TLB_Table_Entries, must be
33 * supplied by the BSP.
34 */
35extern MMU_TLB_table_t MMU_TLB_table[]; /* MMU TLB table supplied by BSP */
36extern int MMU_N_TLB_Table_Entries; /* Number of entries in MMU TLB table */
37
38/* Functions */
39
40void mmu_init( void );
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif
47/* end of include file */
MMU_TLB_table_t
Definition: mmu.h:25