summaryrefslogtreecommitdiffstats
path: root/sys/pccard/slot.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-03-19 07:10:38 +0000
committerimp <imp@FreeBSD.org>2001-03-19 07:10:38 +0000
commit9083f0a44ebf5f1a671d0db189ec7624fe49d158 (patch)
treec0710dc3715f0f339526b1db802481b7c3f3cab2 /sys/pccard/slot.h
parentdcd5bf93d5b1cbb72c98dae3773924bc9c19d231 (diff)
downloadFreeBSD-src-9083f0a44ebf5f1a671d0db189ec7624fe49d158.zip
FreeBSD-src-9083f0a44ebf5f1a671d0db189ec7624fe49d158.tar.gz
Lots of minor cleanup, plus a couple of interesting things.
o Attempt to disable the slot when we detect that there are problems with it in our ISR. This should make polling mode work better for more cards, but more work may be needed. This "disabling" sets the card interrupt register to 0. This worked for me for lots of tests in polling mode. o Now that I've found datasheets, fix a boatload of magic numbers in the source to make it easier to understand. o Use a table of names rather than a big case statement. o Cull a few of the "unused" controller types that we map to other times that were a vestiage of PAO code that we never merged in the same way. o Enforce legal IRQs. You are no longer allowed to try to use IRQs that will fail on all known ISA/PCI <-> PCMCIA bridges. The bridges do not have pins for these illegal interrupts, and all of them are listed as reserved and/or illegeal in the datasheets depending on which one you look at. o Add comments about how IBM-AT based computers and NEC PC-98 based computers map these interrupts and which ones are valid. o Always clear the bit that steers the management interrupt either to the value listed in the PCIC_STAT_INT register. I've seen this bit get set on suspend/resume and after windows boot, and it does't hurt to clear it. NOTE: this might mean we can share this interrupt in the future.
Diffstat (limited to 'sys/pccard/slot.h')
-rw-r--r--sys/pccard/slot.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/pccard/slot.h b/sys/pccard/slot.h
index edd1400..f43122c 100644
--- a/sys/pccard/slot.h
+++ b/sys/pccard/slot.h
@@ -66,8 +66,6 @@ struct slot_ctrl {
/* Set power values */
int (*ioctl) __P((struct slot *, int, caddr_t));
/* ioctl to lower level */
- void (*mapirq) __P((struct slot *, int));
- /* Map interrupt number */
void (*resume) __P((struct slot *));
/* suspend/resume support */
int maxmem; /* Number of allowed memory windows */
OpenPOWER on IntegriCloud