Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:53

0001 /*
0002  * mmu.h
0003  *
0004  * This include file contains definitions pertaining
0005  * to the MMU on the MPC8xx.
0006  *
0007  * Copyright (c) 1999, National Research Council of Canada
0008  *
0009  * The license and distribution terms for this file may be
0010  * found in the file LICENSE in this distribution or at
0011  * http://www.rtems.org/license/LICENSE.
0012  */
0013 
0014 #ifndef _MPC8260_MMU_H
0015 #define _MPC8260_MMU_H
0016 
0017 #ifdef __cplusplus
0018 extern "C" {
0019 #endif
0020 
0021 /*
0022  * The MMU_TLB_table is used to statically initialize the Table Lookaside
0023  * Buffers in the MMU of an MPC8260.
0024  */
0025 typedef struct {
0026   uint32_t      mmu_epn;    /* Effective Page Number */
0027   uint32_t      mmu_twc;    /* Tablewalk Control Register */
0028   uint32_t      mmu_rpn;    /* Real Page Number */
0029 } MMU_TLB_table_t;
0030 
0031 /*
0032  * The MMU_TLB_table and its size, MMU_N_TLB_Table_Entries, must be
0033  * supplied by the BSP.
0034  */
0035 extern MMU_TLB_table_t MMU_TLB_table[]; /* MMU TLB table supplied by BSP */
0036 extern int MMU_N_TLB_Table_Entries; /* Number of entries in MMU TLB table */
0037 
0038 /* Functions */
0039 
0040 void mmu_init( void );
0041 
0042 #ifdef __cplusplus
0043 }
0044 #endif
0045 
0046 #endif
0047 /* end of include file */