summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mvme162/include/page_table.h
blob: 09b93a49bdfaf3f397c3fdc2bdea856d50d2fa30 (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
/*
 *  This file was submitted by Eric Vaitl <vaitl@viasat.com> and
 *  supports page table initialization.
 */

#ifndef PAGE_TABLE_H
#define PAGE_TABLE_H

extern void page_table_teardown(void);
extern void page_table_init(void);
extern int page_table_map(void *addr, unsigned long size, int cache_type);

enum {
    CACHE_WRITE_THROUGH,
    CACHE_COPYBACK,
    CACHE_NONE_SERIALIZED,
    CACHE_NONE
};
enum {
    PTM_SUCCESS,
    PTM_BAD_ADDR,
    PTM_BAD_SIZE,
    PTM_BAD_CACHE,
    PTM_NO_TABLE_SPACE
};

#endif