summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wss.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-03-08 16:43:18 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-03-08 16:43:18 +0000
commitf002504e4c0ab3d830bf64c740d87aa36bee2fc6 (patch)
tree5114ddfd409cf1da4256c18c3b42ea0b09330aa4 /sys/dev/isa/wss.c
parent44871426571d01c2486b46d4317ff9caeac6ee4d (diff)
From NetBSD: merge of 960217
Diffstat (limited to 'sys/dev/isa/wss.c')
-rw-r--r--sys/dev/isa/wss.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/isa/wss.c b/sys/dev/isa/wss.c
index 3a277fcc3eb..ad432c23384 100644
--- a/sys/dev/isa/wss.c
+++ b/sys/dev/isa/wss.c
@@ -1,4 +1,5 @@
-/* $NetBSD: wss.c,v 1.7 1995/11/10 04:30:52 mycroft Exp $ */
+/* $OpenBSD: wss.c,v 1.5 1996/03/08 16:43:17 niklas Exp $ */
+/* $NetBSD: wss.c,v 1.9 1996/02/16 08:18:36 mycroft Exp $ */
/*
* Copyright (c) 1994 John Brezak
@@ -101,10 +102,7 @@ struct audio_device wss_device = {
"WSS"
};
-int wssprobe();
-void wssattach();
int wssopen __P((dev_t, int));
-
int wss_getdev __P((void *, struct audio_device *));
int wss_setfd __P((void *, int));
@@ -164,6 +162,9 @@ struct audio_hw_if wss_hw_if = {
#define at_dma(flags, ptr, cc, chan) isa_dmastart(flags, ptr, cc, chan)
#endif
+int wssprobe __P((struct device *, void *, void *));
+void wssattach __P((struct device *, struct device *, void *));
+
struct cfdriver wsscd = {
NULL, "wss", wssprobe, wssattach, DV_DULL, sizeof(struct wss_softc)
};
@@ -172,11 +173,11 @@ struct cfdriver wsscd = {
* Probe for the Microsoft Sound System hardware.
*/
int
-wssprobe(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+wssprobe(parent, match, aux)
+ struct device *parent;
+ void *match, *aux;
{
- register struct wss_softc *sc = (void *)self;
+ register struct wss_softc *sc = match;
register struct isa_attach_args *ia = aux;
register int iobase = ia->ia_iobase;
static u_char interrupt_bits[12] = {