4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * This file was submitted by Eric Vaitl <vaitl@viasat.com> and |
---|
5 | * supports page table initialization. |
---|
6 | * |
---|
7 | * $Log$ |
---|
8 | * Revision 1.1 1995/12/05 15:29:19 joel |
---|
9 | * added.. submitted by Eric Vaitl <vaitl@viasat.com> |
---|
10 | * |
---|
11 | * Revision 1.2 1995/10/27 21:00:33 vaitl |
---|
12 | * Modified page table routines so application code can map |
---|
13 | * VME space. |
---|
14 | * |
---|
15 | * Revision 1.1 1995/10/25 17:16:06 vaitl |
---|
16 | * Working on page table. Caching partially set up, but can't currently |
---|
17 | * set tc register. |
---|
18 | * |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef PAGE_TABLE_H |
---|
22 | #define PAGE_TABLE_H |
---|
23 | |
---|
24 | extern void page_table_teardown(void); |
---|
25 | extern void page_table_init(void); |
---|
26 | extern int page_table_map(void *addr, unsigned long size, int cache_type); |
---|
27 | |
---|
28 | enum { |
---|
29 | CACHE_WRITE_THROUGH, |
---|
30 | CACHE_COPYBACK, |
---|
31 | CACHE_NONE_SERIALIZED, |
---|
32 | CACHE_NONE |
---|
33 | }; |
---|
34 | enum { |
---|
35 | PTM_SUCCESS, |
---|
36 | PTM_BAD_ADDR, |
---|
37 | PTM_BAD_SIZE, |
---|
38 | PTM_BAD_CACHE, |
---|
39 | PTM_NO_TABLE_SPACE |
---|
40 | }; |
---|
41 | |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.