diff options
-rw-r--r-- | sys/pccard/pccard.c | 7 | ||||
-rw-r--r-- | sys/pccard/pccard_nbk.c | 3 | ||||
-rw-r--r-- | sys/pccard/pcic.c | 10 |
3 files changed, 8 insertions, 12 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index a59133a..f3187a9 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -41,16 +41,11 @@ #include <sys/select.h> #include <sys/sysctl.h> #include <sys/conf.h> -#include <sys/module.h> #include <sys/uio.h> #include <sys/poll.h> #include <sys/bus.h> #include <machine/bus.h> -#include <i386/isa/isa_device.h> -#include <i386/isa/icu.h> -#include <i386/isa/intr_machdep.h> - #include <pccard/cardinfo.h> #include <pccard/driver.h> #include <pccard/pcic.h> @@ -282,7 +277,7 @@ inserted(void *arg) * Enable 5V to the card so that the CIS can be read. */ slt->pwr.vcc = 50; - slt->pwr.vpp = 0; + slt->pwr.vpp = 50; /* * Disable any pending timeouts for this slot, and explicitly diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index 5d86e9b..821a88a 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -59,13 +59,10 @@ #include <sys/bus.h> #include <machine/bus.h> -#include <sys/rman.h> #include <machine/resource.h> -#include <i386/isa/isa_device.h> #include <pccard/cardinfo.h> #include <pccard/slot.h> -#include <pccard/pccard_nbk.h> #include <dev/pccard/pccardvar.h> #include <net/ethernet.h> diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index b16dbfa..6135e6f 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -41,9 +41,7 @@ #include <pccard/i82365.h> #include <pccard/cardinfo.h> -#include <pccard/driver.h> #include <pccard/slot.h> -#include <pccard/pcic.h> /* Get pnp IDs */ #include <isa/isavar.h> @@ -499,6 +497,7 @@ pcic_attach(device_t dev) int error; struct pcic_slot *sp; int i; + int stat; SET_UNIT(dev, validunits); sp = &pcic_slots[GET_UNIT(dev) * PCIC_CARD_SLOTS]; @@ -552,7 +551,10 @@ pcic_attach(device_t dev) setb(sp, PCIC_POWER, PCIC_PCPWRE| PCIC_DISRST); if (sp->slt == NULL) continue; - if ((sp->getb(sp, PCIC_STATUS) & PCIC_CD) != PCIC_CD) { + stat = sp->getb(sp, PCIC_STATUS); + if (bootverbose) + printf("stat is %x\n", stat); + if ((stat & PCIC_CD) != PCIC_CD) { sp->slt->laststate = sp->slt->state = empty; } else { sp->slt->laststate = sp->slt->state = filled; @@ -772,6 +774,8 @@ pcicintr(void *arg) s = splhigh(); for (slot = 0; slot < PCIC_CARD_SLOTS; slot++, sp++) { if (sp->slt && (chg = sp->getb(sp, PCIC_STAT_CHG)) != 0) { + if (bootverbose) + printf("Slot %d chg = 0x%x\n", slot, chg); if (chg & PCIC_CDTCH) { if ((sp->getb(sp, PCIC_STATUS) & PCIC_CD) == PCIC_CD) { |