diff options
author | imp <imp@FreeBSD.org> | 2001-03-19 07:10:38 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-03-19 07:10:38 +0000 |
commit | 9083f0a44ebf5f1a671d0db189ec7624fe49d158 (patch) | |
tree | c0710dc3715f0f339526b1db802481b7c3f3cab2 /sys/dev/ata/atapi-tape.c | |
parent | dcd5bf93d5b1cbb72c98dae3773924bc9c19d231 (diff) | |
download | FreeBSD-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/dev/ata/atapi-tape.c')
0 files changed, 0 insertions, 0 deletions