diff options
| author | pk <pk@NetBSD.org> | 1995-05-04 19:43:27 +0000 |
|---|---|---|
| committer | pk <pk@NetBSD.org> | 1995-05-04 19:43:27 +0000 |
| commit | 7d244351cf6fbd8dbc54270ddedb720eb8be3a59 (patch) | |
| tree | d56e228bd1a81c326816dbb91a6757dc4be9abea /sys/dev | |
| parent | 089ab8e266021c82167a686f4dfecfcdcb1c8b2a (diff) | |
Add `evcnt' field.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/am7930.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/am7930var.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/am7930.c b/sys/dev/ic/am7930.c index 511f238550a..cd20ca521ee 100644 --- a/sys/dev/ic/am7930.c +++ b/sys/dev/ic/am7930.c @@ -1,4 +1,4 @@ -/* $NetBSD: am7930.c,v 1.1 1995/04/25 20:05:37 pk Exp $ */ +/* $NetBSD: am7930.c,v 1.2 1995/05/04 19:43:27 pk Exp $ */ /* * Copyright (c) 1995 Rolf Grossmann * All rights reserved. @@ -65,7 +65,6 @@ struct amd7930_softc { struct device sc_dev; /* base device */ struct intrhand sc_hwih; /* hardware interrupt vector */ struct intrhand sc_swih; /* software interrupt vector */ - int sc_interrupts; /* number of interrupts taken */ int sc_open; /* single use device */ int sc_locked; /* true when transfering data */ @@ -84,6 +83,7 @@ struct amd7930_softc { /* sc_au is special in that the hardware interrupt handler uses it */ struct auio sc_au; /* recv and xmit buffers, etc */ +#define sc_intrcnt sc_au.au_intrcnt /* statistics */ }; /* interrupt interfaces */ @@ -328,6 +328,8 @@ amd9730attach(parent, self, args) sc->sc_swih.ih_arg = sc; intr_establish(PIL_AUSOFT, &sc->sc_swih); + evcnt_attach(&sc->sc_dev, "intr", &sc->sc_intrcnt); + if (audio_hardware_attach(&sa_hw_if, sc) != 0) printf("audio: could not attach to audio pseudo-device driver\n"); } diff --git a/sys/dev/ic/am7930var.h b/sys/dev/ic/am7930var.h index b06e870bbd4..ac8e7eed568 100644 --- a/sys/dev/ic/am7930var.h +++ b/sys/dev/ic/am7930var.h @@ -1,4 +1,4 @@ -/* $NetBSD: am7930var.h,v 1.1 1995/04/25 20:05:38 pk Exp $ */ +/* $NetBSD: am7930var.h,v 1.2 1995/05/04 19:43:32 pk Exp $ */ /* * Copyright (c) 1992, 1993 @@ -61,6 +61,7 @@ struct auio { u_char *au_rend; /* end of record data */ u_char *au_pdata; /* play data */ u_char *au_pend; /* end of play data */ + struct evcnt au_intrcnt; /* statistics */ }; /* |
