diff options
author | 1998-12-23 07:58:26 +0000 | |
---|---|---|
committer | 1998-12-23 07:58:26 +0000 | |
commit | 9271f51f17f658bb9f7355a8bb73501ae22c48bc (patch) | |
tree | 0af704ada4deb894c320dcf48bfa8cfbea8e3e54 | |
parent | nicer tests (diff) | |
download | wireguard-openbsd-9271f51f17f658bb9f7355a8bb73501ae22c48bc.tar.xz wireguard-openbsd-9271f51f17f658bb9f7355a8bb73501ae22c48bc.zip |
whoops; finally this should work with isapnp *and* non-isapnp
-rw-r--r-- | sys/dev/isa/if_we.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/if_we.c b/sys/dev/isa/if_we.c index b670d963988..68265bd2170 100644 --- a/sys/dev/isa/if_we.c +++ b/sys/dev/isa/if_we.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_we.c,v 1.6 1998/12/23 06:02:19 aaron Exp $ */ +/* $OpenBSD: if_we.c,v 1.7 1998/12/23 07:58:26 aaron Exp $ */ /* $NetBSD: if_we.c,v 1.11 1998/07/05 06:49:14 jonathan Exp $ */ /*- @@ -377,7 +377,7 @@ we_attach(parent, self, aux) memt = ia->ia_memt; /* Map the device. */ - if (ia->ia_ioh) + if (!strcmp(parent->dv_cfdata->cf_driver->cd_name, "isapnp") && ia->ia_ioh) asich = ia->ia_ioh; else if (bus_space_map(asict, ia->ia_iobase, WE_NPORTS, 0, &asich)) { printf(": can't map nic i/o space\n"); @@ -401,7 +401,7 @@ we_attach(parent, self, aux) * Map memory space. Note we use the size that might have * been overridden by the user. */ - if (ia->ia_memh) + if (!strcmp(parent->dv_cfdata->cf_driver->cd_name, "isapnp") && ia->ia_memh) memh = ia->ia_memh; else if (bus_space_map(memt, ia->ia_maddr, ia->ia_msize, 0, &memh)) { printf(": can't map shared memory\n"); |