summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-05-07 18:06:40 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-05-07 18:06:40 +0000
commit97dfb91d59894043e6da5e2699ea2ca959bb5e2e (patch)
treec794a0abc2c57d8e99c1d519ca5bc2781a26d256 /sys/arch/m88k/include
parent80f0b9d565c94a1d9a57915e12b8e2435f9188c2 (diff)
Introduce a new cmmu operation, cachectl_pa, similar to cachectl, but taking
a pa instead of a pmap_kernel va. The cachectl operation is now deprecated and will disappear soon.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r--sys/arch/m88k/include/cmmu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/m88k/include/cmmu.h b/sys/arch/m88k/include/cmmu.h
index c3e6bca6107..d9bce283e64 100644
--- a/sys/arch/m88k/include/cmmu.h
+++ b/sys/arch/m88k/include/cmmu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmmu.h,v 1.1 2004/04/26 12:34:05 miod Exp $ */
+/* $OpenBSD: cmmu.h,v 1.2 2004/05/07 18:06:39 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1992 Carnegie Mellon University
@@ -67,6 +67,7 @@ struct cmmu_p {
void (*cmmu_flush_inst_cache_func)(int, paddr_t, psize_t);
void (*cmmu_flush_data_cache_func)(int, paddr_t, psize_t);
void (*dma_cachectl_func)(vaddr_t, vsize_t, int);
+ void (*dma_cachectl_pa_func)(paddr_t, psize_t, int);
/* DDB only */
void (*cmmu_dump_config_func)(void);
void (*cmmu_show_translation_func)(unsigned, unsigned, unsigned, int);
@@ -93,6 +94,7 @@ extern struct cmmu_p *cmmu;
#define cmmu_flush_inst_cache(a, b, c) (cmmu->cmmu_flush_inst_cache_func)(a, b, c)
#define cmmu_flush_data_cache(a, b, c) (cmmu->cmmu_flush_data_cache_func)(a, b, c)
#define dma_cachectl(a, b, c) (cmmu->dma_cachectl_func)(a, b, c)
+#define dma_cachectl_pa(a, b, c) (cmmu->dma_cachectl_pa_func)(a, b, c)
#define cmmu_dump_config (cmmu->cmmu_dump_config_func)
#define cmmu_show_translation(a, b, c, d) (cmmu->cmmu_show_translation_func)(a, b, c, d)
#define show_apr(ap) (cmmu->show_apr_func)(ap)
@@ -100,4 +102,3 @@ extern struct cmmu_p *cmmu;
#endif /* _LOCORE */
#endif /* _MACHINE_CMMU_H_ */
-