mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
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.
This commit is contained in:
parent
d25d7d01be
commit
a1721d84eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120872
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue