Mario Kart 64
Loading...
Searching...
No Matches
os_tlb.h
Go to the documentation of this file.
1
2
/*====================================================================
3
* os_tlb.h
4
*
5
* Copyright 1995, Silicon Graphics, Inc.
6
* All Rights Reserved.
7
*
8
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics,
9
* Inc.; the contents of this file may not be disclosed to third
10
* parties, copied or duplicated in any form, in whole or in part,
11
* without the prior written permission of Silicon Graphics, Inc.
12
*
13
* RESTRICTED RIGHTS LEGEND:
14
* Use, duplication or disclosure by the Government is subject to
15
* restrictions as set forth in subdivision (c)(1)(ii) of the Rights
16
* in Technical Data and Computer Software clause at DFARS
17
* 252.227-7013, and/or in similar or successor clauses in the FAR,
18
* DOD or NASA FAR Supplement. Unpublished - rights reserved under the
19
* Copyright Laws of the United States.
20
*====================================================================*/
21
22
/*---------------------------------------------------------------------*
23
Copyright (C) 1998 Nintendo. (Originated by SGI)
24
25
$RCSfile: os_tlb.h,v $
26
$Revision: 1.1 $
27
$Date: 1998/10/09 08:01:20 $
28
*---------------------------------------------------------------------*/
29
30
#ifndef _OS_TLB_H_
31
#define _OS_TLB_H_
32
33
#ifdef _LANGUAGE_C_PLUS_PLUS
34
extern
"C"
{
35
#endif
36
37
#include <PR/ultratypes.h>
38
39
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
40
41
/**************************************************************************
42
*
43
* Type definitions
44
*
45
*/
46
47
typedef
u32 OSPageMask;
48
49
#endif
/* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
50
51
/**************************************************************************
52
*
53
* Global definitions
54
*
55
*/
56
57
/*
58
* Page size argument for TLB routines
59
*/
60
#define OS_PM_4K 0x0000000
61
#define OS_PM_16K 0x0006000
62
#define OS_PM_64K 0x001e000
63
#define OS_PM_256K 0x007e000
64
#define OS_PM_1M 0x01fe000
65
#define OS_PM_4M 0x07fe000
66
#define OS_PM_16M 0x1ffe000
67
68
#if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
69
70
/**************************************************************************
71
*
72
* Macro definitions
73
*
74
*/
75
76
/**************************************************************************
77
*
78
* Extern variables
79
*
80
*/
81
82
/**************************************************************************
83
*
84
* Function prototypes
85
*
86
*/
87
88
/* TLB management routines */
89
90
extern
void
osMapTLB(s32, OSPageMask,
void
*, u32, u32, s32);
91
extern
void
osMapTLBRdb(
void
);
92
extern
void
osUnmapTLB(s32);
93
extern
void
osUnmapTLBAll(
void
);
94
extern
void
osSetTLBASID(s32);
95
96
#endif
/* defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS) */
97
98
#ifdef _LANGUAGE_C_PLUS_PLUS
99
}
100
#endif
101
102
#endif
/* !_OS_TLB_H_ */
include
PR
os_tlb.h
Generated by
1.13.2