diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-06-28 01:47:42 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-06-28 01:47:42 +0000 |
commit | ad859de0f075c553882080921983e2565d6ec816 (patch) | |
tree | b570fd39d404bd18642ebb6944cfe168ce26cc72 /sys/arch/sparc64/include/intr.h | |
parent | cf5052f3f87898d85a5e93f42c6565d00666cc96 (diff) |
Use new event counter API for interrupt counting on sparc64. deraadt@ tholo@
drahn@ millert@ ok
Diffstat (limited to 'sys/arch/sparc64/include/intr.h')
-rw-r--r-- | sys/arch/sparc64/include/intr.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sparc64/include/intr.h b/sys/arch/sparc64/include/intr.h index d073d649b2e..539e41abc4c 100644 --- a/sys/arch/sparc64/include/intr.h +++ b/sys/arch/sparc64/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.7 2004/06/23 01:17:01 aaron Exp $ */ +/* $OpenBSD: intr.h,v 1.8 2004/06/28 01:47:41 aaron Exp $ */ /* $NetBSD: intr.h,v 1.8 2001/01/14 23:50:30 thorpej Exp $ */ /*- @@ -44,6 +44,8 @@ #include <sparc64/sparc64/intreg.h> #endif +#include <sys/evcount.h> + /* * Interrupt handler chains. Interrupt handlers should return 0 for * ``not me'' or 1 (``I took care of it''). intr_establish() inserts a @@ -61,9 +63,9 @@ struct intrhand { struct intrhand *ih_pending; /* pending list */ volatile u_int64_t *ih_map; /* interrupt map reg */ volatile u_int64_t *ih_clr; /* clear interrupt reg */ - u_int64_t ih_count; /* # of interrupts */ + struct evcount ih_count; /* # of interrupts */ const void *ih_bus; /* parent bus */ - char ih_name[1]; /* device name */ + char ih_name[32]; /* device name */ }; extern struct intrhand *intrlev[MAXINTNUM]; |