summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-01 00:16:20 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-01 00:16:20 +0000
commit6a682761b7bced3e47f8fa92773c5e658762dd70 (patch)
tree821f19905638fed90b19eeabf15cfacd721f5080 /sys/arch
parentf0c096dd0e30793f4737559519a0663f191a169e (diff)
we don't need ia_iosize setting, since no isa_attach_args
stuff passed.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/isa/spkr.c25
1 files changed, 19 insertions, 6 deletions
diff --git a/sys/arch/i386/isa/spkr.c b/sys/arch/i386/isa/spkr.c
index bb427dd0f18..fda1720489e 100644
--- a/sys/arch/i386/isa/spkr.c
+++ b/sys/arch/i386/isa/spkr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spkr.c,v 1.6 1996/04/21 22:17:04 deraadt Exp $ */
+/* $OpenBSD: spkr.c,v 1.7 1996/05/01 00:16:19 mickey Exp $ */
/* $NetBSD: spkr.c,v 1.22 1996/03/18 01:26:12 jtk Exp $ */
/*
@@ -426,19 +426,32 @@ int spkrprobe (parent, match, aux)
{
register struct isa_attach_args *ia = aux;
struct cfdata *cf = match;
+ extern struct cfattach pc_ca, vt_ca;
/*
* We only attach to the keyboard controller via
* the console drivers. (We really wish we could be the
* child of a real keyboard controller driver.)
*/
- if ((parent == NULL) ||
- ((strcmp(parent->dv_cfdata->cf_driver->cd_name, "pc") != 0) &&
- (strcmp(parent->dv_cfdata->cf_driver->cd_name, "vt") != 0)))
+ if ((parent == NULL) || (parent->dv_cfdata == NULL) ||
+ (
+#include "vt.h"
+#include "pc.h"
+#if NPC
+ (parent->dv_cfdata->cf_attach != &pc_ca)
+#endif
+#if NPC && NVT /* XXX could we have both of them ??? */
+ &&
+#endif
+#if NVT
+ (parent->dv_cfdata->cf_attach != &vt_ca)
+#endif
+#if !NCP && !NVT
+ 1
+#endif
+ ))
return (0);
if (cf->cf_loc[1] != PITAUX_PORT)
return (0);
-
- ia->ia_iosize = 1;
return (1);
}