summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include/cpu.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-05-17 22:46:29 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-05-17 22:46:29 +0000
commitfab438f937925243666564eae47032d71d7b1116 (patch)
tree7fc535435bb79ff4c573215b0602b23d684cbf39 /sys/arch/mvme88k/include/cpu.h
parenteedcd44e3fcfdaba879129c944e9a5eb670ef460 (diff)
Replace the bunch of md_* function pointers with a `struct board' containing
function pointers for all the board-specific code. Add a bunch of `struct board' methods to cover most, if not all, of the `per-board' logic. This allows most of the md drivers to be cleaned up and no longer need to embed board-specific knowledge.
Diffstat (limited to 'sys/arch/mvme88k/include/cpu.h')
-rw-r--r--sys/arch/mvme88k/include/cpu.h22
1 files changed, 7 insertions, 15 deletions
diff --git a/sys/arch/mvme88k/include/cpu.h b/sys/arch/mvme88k/include/cpu.h
index 073612dec07..5ede70aacd1 100644
--- a/sys/arch/mvme88k/include/cpu.h
+++ b/sys/arch/mvme88k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.46 2013/05/17 22:40:01 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.47 2013/05/17 22:46:27 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* Copyright (c) 1992, 1993
@@ -46,23 +46,15 @@
extern int cpuspeed;
-/* board dependent pointers */
-extern void (*md_interrupt_func_ptr)(struct trapframe *);
-#define md_interrupt_func (*md_interrupt_func_ptr)
-extern int (*md_nmi_func_ptr)(struct trapframe *);
-#define md_nmi_func (*md_nmi_func_ptr)
-extern void (*md_nmi_wrapup_func_ptr)(struct trapframe *);
-#define md_nmi_wrapup_func (*md_nmi_wrapup_func_ptr)
-extern u_int (*md_getipl)(void);
-extern u_int (*md_setipl)(u_int);
-extern u_int (*md_raiseipl)(u_int);
-extern void (*md_init_clocks)(void);
-extern void (*md_send_ipi)(int, cpuid_t);
-extern void (*md_delay)(int);
-extern void (*md_smp_setup)(struct cpu_info *);
__dead void doboot(void);
void nmihand(void *);
+/* M88100 PFSR machine-dependent code snippets */
+extern u_int32_t pfsr_save_single[];
+extern u_int32_t pfsr_save_188_straight[];
+extern u_int32_t pfsr_save_188_double[];
+extern u_int32_t pfsr_save_188_quad[];
+
#endif /* _KERNEL */
#endif