diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-29 07:35:15 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-29 07:35:15 +0000 |
commit | 98de1921367f7a5202910626ee67011985fc6238 (patch) | |
tree | 78c6738edd0eb52fb6c913736d7913c0c1f0674b /sys/arch/sparc/include/cpu.h | |
parent | 4ee9b02e4ff2aca8569497a013add163e3752aa0 (diff) |
Switch sparc to evcount; ok deraadt@
Diffstat (limited to 'sys/arch/sparc/include/cpu.h')
-rw-r--r-- | sys/arch/sparc/include/cpu.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h index 872dce25b8f..5227cce8606 100644 --- a/sys/arch/sparc/include/cpu.h +++ b/sys/arch/sparc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.22 2004/08/06 22:39:14 deraadt Exp $ */ +/* $OpenBSD: cpu.h,v 1.23 2004/09/29 07:35:13 miod Exp $ */ /* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */ /* @@ -66,6 +66,7 @@ * Exported definitions unique to SPARC cpu support. */ +#include <sys/evcount.h> #include <machine/psl.h> #include <sparc/sparc/intreg.h> @@ -159,11 +160,13 @@ struct intrhand { int (*ih_fun)(void *); void *ih_arg; int ih_ipl; + int ih_vec; /* human readable ipl for vmstat */ + struct evcount ih_count; struct intrhand *ih_next; }; extern struct intrhand *intrhand[15]; -void intr_establish(int level, struct intrhand *, int); -void vmeintr_establish(int vec, int level, struct intrhand *, int); +void intr_establish(int level, struct intrhand *, int, const char *); +void vmeintr_establish(int vec, int level, struct intrhand *, int, const char *); /* * intr_fasttrap() is a lot like intr_establish, but is used for ``fast'' @@ -182,6 +185,7 @@ int isbad(struct dkbad *bt, int, int, int); /* machdep.c */ int ldcontrolb(caddr_t); void dumpconf(void); +void intr_init(void); caddr_t reserve_dumppages(caddr_t); /* clock.c */ struct timeval; |