diff options
author | imp <imp@FreeBSD.org> | 2003-10-07 04:29:04 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-10-07 04:29:04 +0000 |
commit | c0271da9d552cee9c1d363bdc75cdf4a27bf5fb5 (patch) | |
tree | 50682054d62bf7aee53db8e3d5754f370d0f1304 /sys/dev/exca | |
parent | e837ada539000e6a542aab4e2d60440a6f2a779d (diff) | |
download | FreeBSD-src-c0271da9d552cee9c1d363bdc75cdf4a27bf5fb5.zip FreeBSD-src-c0271da9d552cee9c1d363bdc75cdf4a27bf5fb5.tar.gz |
Card type stuff was backwards, so assume io for the moment. mem needs
a lot of help and with luck bms will help me fix that.
Diffstat (limited to 'sys/dev/exca')
-rw-r--r-- | sys/dev/exca/exca.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c index 77e892f..54b85de 100644 --- a/sys/dev/exca/exca.c +++ b/sys/dev/exca/exca.c @@ -576,7 +576,6 @@ exca_wait_ready(struct exca_softc *sc) void exca_reset(struct exca_softc *sc, device_t child) { - int cardtype; int win; /* enable socket i/o */ @@ -595,11 +594,8 @@ exca_reset(struct exca_softc *sc, device_t child) /* disable all address windows */ exca_putb(sc, EXCA_ADDRWIN_ENABLE, 0); - CARD_GET_TYPE(child, &cardtype); - exca_setb(sc, EXCA_INTR, (cardtype == PCCARD_IFTYPE_IO) ? - EXCA_INTR_CARDTYPE_IO : EXCA_INTR_CARDTYPE_MEM); - DEVPRINTF(sc->dev, "card type is %s\n", - (cardtype == PCCARD_IFTYPE_IO) ? "io" : "mem"); + exca_setb(sc, EXCA_INTR, EXCA_INTR_CARDTYPE_IO); + DEVPRINTF(sc->dev, "card type is io\n"); /* reinstall all the memory and io mappings */ for (win = 0; win < EXCA_MEM_WINS; ++win) |