diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-05 22:30:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-05 22:30:07 +0000 |
commit | f22d8b5b0e8e806343aadc495aee315f8173feed (patch) | |
tree | 515170f24ebb6165033e34a6f3f9dbbd690ac458 /sys/arch/sparc/dev/qec.c | |
parent | ee1f2022ccc40f4af881773718c7235d4ea5e4e7 (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.c | 5 |
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++) { |