summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic.c
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-04-23 16:03:08 +0000
committernate <nate@FreeBSD.org>1996-04-23 16:03:08 +0000
commit298d7dcd873991421a7d88124324aee9b16065fd (patch)
treeb983a04d64d9a3fc2e560a452fdf34ac7ad9e577 /sys/pccard/pcic.c
parentceb677462bce88b520fd1537aee505485cc9de55 (diff)
downloadFreeBSD-src-298d7dcd873991421a7d88124324aee9b16065fd.zip
FreeBSD-src-298d7dcd873991421a7d88124324aee9b16065fd.tar.gz
Adds the APM hooks into the generic pccard kernel files. With this code
in place device drivers can now register power-down/power-up routines so that we can use common routines to power-up/power-down cards for insert/removals, suspend/resume, etc.. Reviewed by: phk Submitted by: the 'Nomads'
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r--sys/pccard/pcic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 5499dd3..456b251 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -630,6 +630,8 @@ pcic_probe ()
pcicintr, 0, &pcic_imask);
if (pcic_irq < 0)
printf("pcic: failed to allocate IRQ\n");
+ else
+ printf("pcic: controller irq %d\n", pcic_irq);
}
/*
* Check for a card in this slot.
@@ -800,7 +802,7 @@ pcic_reset(void *chan)
putb(sp, PCIC_TIME_CMD0, 0x6);
putb(sp, PCIC_TIME_RECOV0, 0x0);
putb(sp, PCIC_TIME_SETUP1, 1);
- putb(sp, PCIC_TIME_CMD1, 0x5F);
+ putb(sp, PCIC_TIME_CMD1, 0xf);
putb(sp, PCIC_TIME_RECOV1, 0);
}
selwakeup(&slotp->selp);
OpenPOWER on IntegriCloud