diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-11-16 18:45:21 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-11-16 18:45:21 +0000 |
commit | 431731812874189793edce7ce2b5f568e44fc441 (patch) | |
tree | 058097d595daf7e32527caa82bd09f6d039eab6a /sys/arch/m88k/include/cmmu.h | |
parent | 240cdcbabc5239b94c9488aacdae734862dff715 (diff) |
Allow initial device mappings (from pmap_table) to be backed up by BATC.
Use this on luna88k to map the bitmap planes of the frame buffer used by
the driver. 10% speedup under X.
Diffstat (limited to 'sys/arch/m88k/include/cmmu.h')
-rw-r--r-- | sys/arch/m88k/include/cmmu.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/m88k/include/cmmu.h b/sys/arch/m88k/include/cmmu.h index c0b41465b4f..65a2aa2b19c 100644 --- a/sys/arch/m88k/include/cmmu.h +++ b/sys/arch/m88k/include/cmmu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cmmu.h,v 1.31 2013/11/02 23:10:30 miod Exp $ */ +/* $OpenBSD: cmmu.h,v 1.32 2013/11/16 18:45:20 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1992 Carnegie Mellon University @@ -33,6 +33,8 @@ */ #if defined(_KERNEL) && !defined(_LOCORE) +#include <machine/mmu.h> + /* machine dependent cmmu function pointer structure */ struct cmmu_p { cpuid_t (*init)(void); @@ -107,6 +109,12 @@ extern __cpu_simple_lock_t cmmu_cpu_lock; #define DMA_CACHE_SYNC_INVAL 0x01 #define DMA_CACHE_SYNC 0x02 +/* + * Current BATC values. + */ + +extern batc_t global_dbatc[BATC_MAX], global_ibatc[BATC_MAX]; + #endif /* _KERNEL && !_LOCORE */ #endif /* _M88K_CMMU_H_ */ |