summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-08-12 01:19:39 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-08-12 01:19:39 +0000
commite60081b762b6820bfe022b55893bf92ddcd8f376 (patch)
tree6dcc9fa7ffd4863027e13bab739a73c9369eb934 /sys/arch/sparc
parente7def6a18451ccfbe6b6b586b2f19318e0fb39a8 (diff)
Merge revs 1.2 through 1.3: counter, mapiodev.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/amd7930.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/amd7930.c b/sys/arch/sparc/dev/amd7930.c
index d2af316243d..2998ddbf603 100644
--- a/sys/arch/sparc/dev/amd7930.c
+++ b/sys/arch/sparc/dev/amd7930.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: amd7930.c,v 1.5 1996/08/12 01:19:38 downsj Exp $ */
/* $NetBSD: amd7930.c,v 1.10 1996/03/31 22:38:29 pk Exp $ */
/*
@@ -83,7 +84,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 */
@@ -305,9 +306,8 @@ amd7930attach(parent, self, args)
}
pri = ra->ra_intr[0].int_pri;
printf(" pri %d, softpri %d\n", pri, PIL_AUSOFT);
- amd = (volatile struct amd7930 *)(ra->ra_vaddr ?
- ra->ra_vaddr : mapiodev(ra->ra_reg, 0, sizeof (*amd),
- ca->ca_bustype));
+ amd = (volatile struct amd7930 *)(ra->ra_vaddr ? ra->ra_vaddr :
+ mapiodev(ra->ra_reg, 0, sizeof (*amd), ca->ca_bustype));
sc->sc_map.mr_mmr1 = AMD_MMR1_GX | AMD_MMR1_GER |
AMD_MMR1_GR | AMD_MMR1_STG;
@@ -915,6 +915,7 @@ amd7930hwintr(au0)
}
}
+ *(au->au_intrcnt)++;
return (1);
}
#endif /* AUDIO_C_HANDLER */