summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-12-14 02:00:57 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-12-14 02:00:57 +0000
commit539ea7dfef5603b0536cf21e49d147cabe4b6e85 (patch)
treebe0646666af41b13e40a3a16729bce8926b3ba8d /sys
parent8355f5b2790320ef7193e69769e1e4d46cd9c23e (diff)
Fill the M88100 blanks...
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mvme88k/mvme88k/m8820x.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/arch/mvme88k/mvme88k/m8820x.c b/sys/arch/mvme88k/mvme88k/m8820x.c
index 8a19cb613f5..dd70cade505 100644
--- a/sys/arch/mvme88k/mvme88k/m8820x.c
+++ b/sys/arch/mvme88k/mvme88k/m8820x.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m8820x.c,v 1.4 2001/12/14 01:52:36 miod Exp $ */
+/* $OpenBSD: m8820x.c,v 1.5 2001/12/14 02:00:56 miod Exp $ */
/*
* Copyright (c) 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -1080,6 +1080,21 @@ m8820x_cmmu_cpu_number()
/*
* Functions that actually modify CMMU registers.
*/
+void
+m8820x_cmmu_remote_set(unsigned cpu, unsigned r, unsigned data, unsigned x)
+{
+ *(volatile unsigned *)(r + (char*)&REGS(cpu,data)) = x;
+}
+
+/*
+ * cmmu_cpu_lock should be held when called if read
+ * the CMMU_SCR or CMMU_SAR.
+ */
+unsigned
+m8820x_cmmu_remote_get(unsigned cpu, unsigned r, unsigned data)
+{
+ return (*(volatile unsigned *)(r + (char*)&REGS(cpu,data)));
+}
/* Needs no locking - read only registers */
unsigned