From 2911dd665ac9b5d0981c2a31acbdd128bc511847 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 18 Oct 1995 17:31:57 +0000 Subject: irq counter --- sys/arch/sparc/dev/amd7930.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/dev/amd7930.c b/sys/arch/sparc/dev/amd7930.c index 94e69e1ccdc..0702e095162 100644 --- a/sys/arch/sparc/dev/amd7930.c +++ b/sys/arch/sparc/dev/amd7930.c @@ -1,4 +1,4 @@ -/* $NetBSD: amd7930.c,v 1.4 1995/07/19 19:50:16 brezak Exp $ */ +/* $NetBSD: amd7930.c,v 1.2 1995/05/04 19:43:27 pk Exp $ */ /* * Copyright (c) 1995 Rolf Grossmann @@ -83,7 +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 */ +#define sc_intrcnt sc_au.au_intrcnt }; /* interrupt interfaces */ @@ -914,6 +914,7 @@ amd7930hwintr(au0) } } + *(au->au_intrcnt)++; return (1); } #endif /* AUDIO_C_HANDLER */ -- cgit v1.2.3