diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-18 13:59:25 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-18 13:59:25 +0000 |
commit | ee720c75bb5d9023ecb5904e05fd1c3308386f72 (patch) | |
tree | a96c6cc6f43b59f58736d2f421dabbba963d3066 /sys/arch/powerpc/include/pmap.h | |
parent | 7ba378d747ac554e73941549d1771e3956c7ccb6 (diff) |
Changing the way the pmap code works again.
Changes to the pmap_enter code so that the pmap_kenter/pmap_kremove
has a method to create mappings without adding them to the _pv lists
(part of the point of pmap_k* functions). Also adds an interface
so that device mappings can be created with cacheable attributes.
So that devices such as display memory can be mapped writethru
greatly increasing their speed.
Diffstat (limited to 'sys/arch/powerpc/include/pmap.h')
-rw-r--r-- | sys/arch/powerpc/include/pmap.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/powerpc/include/pmap.h b/sys/arch/powerpc/include/pmap.h index 2aa748b2379..e8794dabcf0 100644 --- a/sys/arch/powerpc/include/pmap.h +++ b/sys/arch/powerpc/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.19 2001/09/10 16:44:52 mickey Exp $ */ +/* $OpenBSD: pmap.h,v 1.20 2001/09/18 13:59:23 drahn Exp $ */ /* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */ /*- @@ -61,6 +61,14 @@ typedef int pmapv_t; #define VP_IDX2_MASK (VP_IDX2_SIZE-1) #define VP_IDX2_POS 12 +void pmap_kenter_cache( vaddr_t va, paddr_t pa, vm_prot_t prot, int cacheable); + +/* cache flags */ +#define PMAP_CACHE_DEFAULT 0 /* WB cache managed mem, devices not */ +#define PMAP_CACHE_CI 1 /* cache inhibit */ +#define PMAP_CACHE_WT 2 /* writethru */ +#define PMAP_CACHE_WB 3 /* writeback */ + /* * Pmap stuff */ |