From 539ea7dfef5603b0536cf21e49d147cabe4b6e85 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 14 Dec 2001 02:00:57 +0000 Subject: Fill the M88100 blanks... --- sys/arch/mvme88k/mvme88k/m8820x.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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*)®S(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*)®S(cpu,data))); +} /* Needs no locking - read only registers */ unsigned -- cgit v1.2.3