summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_an_isapnp.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-01-09 21:19:49 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-01-09 21:19:49 +0000
commit4fb27973143f59ce36152403b7753b45da61e46f (patch)
treedef687c2cded60e4d7cf33cfca709b70115d213a /sys/dev/isa/if_an_isapnp.c
parent49a48702134ba52fa189ddb45b5af9200dd50c54 (diff)
Move an(4) to a driver based on the NetBSD one.
This brings net80211 support and support for newer hardware. In addition ancontrol is no longer needed. This driver does not yet work on big endian archs like the previous one did. "do it" deraadt@
Diffstat (limited to 'sys/dev/isa/if_an_isapnp.c')
-rw-r--r--sys/dev/isa/if_an_isapnp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/if_an_isapnp.c b/sys/dev/isa/if_an_isapnp.c
index e17a640353d..e9b7af8c365 100644
--- a/sys/dev/isa/if_an_isapnp.c
+++ b/sys/dev/isa/if_an_isapnp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_an_isapnp.c,v 1.6 2005/09/13 14:15:33 mickey Exp $ */
+/* $OpenBSD: if_an_isapnp.c,v 1.7 2006/01/09 21:19:48 jsg Exp $ */
/*
* Copyright (c) 2003 Michael Shalayeff
@@ -47,8 +47,8 @@
#include <dev/isa/isavar.h>
-#include <dev/ic/anvar.h>
#include <dev/ic/anreg.h>
+#include <dev/ic/anvar.h>
int an_isapnp_match(struct device *, void *, void *);
void an_isapnp_attach(struct device *, struct device *, void *);
@@ -73,8 +73,8 @@ an_isapnp_attach(parent, self, aux)
struct an_softc *sc = (void *)self;
struct isa_attach_args *ia = aux;
- sc->an_btag = ia->ia_iot;
- sc->an_bhandle = ia->ipa_io[0].h;
+ sc->sc_iot = ia->ia_iot;
+ sc->sc_ioh = ia->ipa_io[0].h;
sc->sc_ih = isa_intr_establish(ia->ia_ic, ia->ia_irq, IST_EDGE,
IPL_NET, an_intr, sc, sc->sc_dev.dv_xname);