summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-10-30 19:18:33 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-10-30 19:18:33 +0000
commit54c8b44e81a2dd67096d7c606b76d424212f3120 (patch)
tree2627e186a52fb52d42bcdd77ba23e8cdc024e7a8 /sys
parentde29b22f8b2eb6c2d0972a19329c880971b570ab (diff)
add some protos and defines
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/include/cpu.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/arch/hppa/include/cpu.h b/sys/arch/hppa/include/cpu.h
index eed29585938..fb5ca0a8560 100644
--- a/sys/arch/hppa/include/cpu.h
+++ b/sys/arch/hppa/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.4 1998/08/29 01:17:06 mickey Exp $ */
+/* $OpenBSD: cpu.h,v 1.5 1998/10/30 19:18:32 mickey Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -23,8 +23,8 @@
* Utah $Hdr: cpu.h 1.19 94/12/16$
*/
-#ifndef _HPPA_CPU_H_
-#define _HPPA_CPU_H_
+#ifndef _MACHINE_CPU_H_
+#define _MACHINE_CPU_H_
#include <machine/frame.h>
@@ -49,10 +49,11 @@
#define HPPA_SPA_ENABLE 0x00000020
#define HPPA_NMODSPBUS 64
-#define CLKF_BASEPRI(framep) (0) /* XXX */
-#define CLKF_PC(framep) (0) /* XXX */
+#define clockframe trapframe
+#define CLKF_BASEPRI(framep) ((framep)->eiem)
+#define CLKF_PC(framep) ((framep)->iioq_head)
#define CLKF_INTR(framep) (0) /* XXX */
-#define CLKF_USERMODE(framep) (0) /* XXX */
+#define CLKF_USERMODE(framep) (USERMODE((framep)->iioq_head))
#define signotify(p) (void)(p)
#define need_resched() {(void)1;}
@@ -68,6 +69,8 @@
void delay __P((u_int));
void hppa_init __P((void));
void trap __P((int, struct trapframe *));
+int kvtop __P((const caddr_t));
+int dma_cachectl __P((caddr_t, int));
#endif
/*
@@ -88,4 +91,4 @@ void trap __P((int, struct trapframe *));
{ "console_device", CTLTYPE_STRUCT }, \
}
-#endif /* _HPPA_CPU_H_ */
+#endif /* _MACHINE_CPU_H_ */