summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-02 00:58:13 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-01-02 00:58:13 +0000
commitc4fbcc48c9ce53d970e557c89fc8a20d5b100faa (patch)
tree92725ed95b1ff25f74e4e281380eb549574f2d60 /sys/dev/isa
parente9260192e13ccaead01f7fbaac1d4f832be80f3e (diff)
OpenBSDify
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/spkr.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/isa/spkr.c b/sys/dev/isa/spkr.c
index 09b2181861e..d1d28e6aad6 100644
--- a/sys/dev/isa/spkr.c
+++ b/sys/dev/isa/spkr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spkr.c,v 1.1 1999/01/02 00:02:43 niklas Exp $ */
+/* $OpenBSD: spkr.c,v 1.2 1999/01/02 00:58:12 niklas Exp $ */
/* $NetBSD: spkr.c,v 1.1 1998/04/15 20:26:18 drochner Exp $ */
/*
@@ -27,7 +27,12 @@
cdev_decl(spkr);
+#define __BROKEN_INDIRECT_CONFIG /* XXX */
+#ifdef __BROKEN_INDIRECT_CONFIG
+int spkrprobe __P((struct device *, void *, void *));
+#else
int spkrprobe __P((struct device *, struct cfdata *, void *));
+#endif
void spkrattach __P((struct device *, struct device *, void *));
struct spkr_softc {
@@ -38,6 +43,10 @@ struct cfattach spkr_ca = {
sizeof(struct spkr_softc), spkrprobe, spkrattach
};
+struct cfdriver spkr_cd = {
+ NULL, "spkr", DV_DULL
+};
+
static pcppi_tag_t ppicookie;
#define SPKRPRI (PZERO - 1)
@@ -367,7 +376,11 @@ static int spkr_attached = 0;
int
spkrprobe (parent, match, aux)
struct device *parent;
+#ifdef __BROKEN_INDIRECT_CONFIG
+ void *match;
+#else
struct cfdata *match;
+#endif
void *aux;
{
return (!spkr_attached);