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