summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/qec.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-05 22:30:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-05 22:30:07 +0000
commitf22d8b5b0e8e806343aadc495aee315f8173feed (patch)
tree515170f24ebb6165033e34a6f3f9dbbd690ac458 /sys/arch/sparc/dev/qec.c
parentee1f2022ccc40f4af881773718c7235d4ea5e4e7 (diff)
but make it work for multiple cards... i think
Diffstat (limited to 'sys/arch/sparc/dev/qec.c')
-rw-r--r--sys/arch/sparc/dev/qec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/qec.c b/sys/arch/sparc/dev/qec.c
index a37cdce4276..d9935ce2796 100644
--- a/sys/arch/sparc/dev/qec.c
+++ b/sys/arch/sparc/dev/qec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qec.c,v 1.11 1999/07/05 21:55:09 deraadt Exp $ */
+/* $OpenBSD: qec.c,v 1.12 1999/07/05 22:30:06 deraadt Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
@@ -227,11 +227,10 @@ qec_translate(sc, ca)
struct qec_softc *sc;
struct confargs *ca;
{
- static int dev = 0;
register int i;
ca->ca_slot = ca->ca_ra.ra_iospace;
- ca->ca_offset = sc->sc_range[dev++].poffset - (long)sc->sc_paddr;
+ ca->ca_offset = sc->sc_range[ca->ca_slot].poffset - (long)sc->sc_paddr;
/* Translate into parent address spaces */
for (i = 0; i < ca->ca_ra.ra_nreg; i++) {