summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc8xx/include/mmu.h
blob: 7370e0cf5ae69f93d5803a1c6a7d15465219b7a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* 
 * mmu.h
 * 
 * This include file contains definitions pertaining 
 * to the MMU on the MPC8xx.
 *
 * Copyright (c) 1999, National Research Council of Canada
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.OARcorp.com/rtems/license.html.
 */

#ifndef __M8xx_MMU_h
#define __M8xx_MMU_h

#ifdef __cplusplus
extern "C" {
#endif

#include <bsp.h>

/*
 * The MMU_TLB_table is used to statically initialize the Table Lookaside
 * Buffers in the MMU of an MPC8xx.
 */
typedef struct {
  unsigned32	mmu_epn;	/* Effective Page Number */
  unsigned32	mmu_twc;	/* Tablewalk Control Register */
  unsigned32	mmu_rpn;	/* Real Page Number */
} MMU_TLB_table_t;

/*
 * The MMU_TLB_table and its size, MMU_N_TLB_Table_Entries, must be 
 * supplied by the BSP.
 */
extern MMU_TLB_table_t MMU_TLB_table[];	/* MMU TLB table supplied by BSP */
extern int MMU_N_TLB_Table_Entries;	/* Number of entries in MMU TLB table */

/* Functions */

void mmu_init( void );

#ifdef __cplusplus
}
#endif

#endif
/* end of include file */