From a1721d84eb8df0f599bd5f59043fad01c8cc23bb Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 7 Oct 2003 04:29:04 +0000 Subject: 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. --- sys/dev/exca/exca.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c index 77e892f589d16..54b85de39e3b8 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) -- cgit v1.3