summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcicvar.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-08-19 05:01:18 +0000
committerimp <imp@FreeBSD.org>2001-08-19 05:01:18 +0000
commit33c3c53a533a006733f0b78847fcf122188e0d74 (patch)
tree4e63915801d736650dadd97fa7343efa3c989826 /sys/pccard/pcicvar.h
parentc51d4d8eeeb05a290cd206983dba6d49fa070cf8 (diff)
downloadFreeBSD-src-33c3c53a533a006733f0b78847fcf122188e0d74.zip
FreeBSD-src-33c3c53a533a006733f0b78847fcf122188e0d74.tar.gz
Improve interlocking for card removal. We now can remove the card in
the ISR. We keep track of the card state and don't call the IRS when the card isn't inserted. This helps quite a bit with card ejection problems that Ian was seeing. Submitted by: Ian Dowse MFC upon: re approvel.
Diffstat (limited to 'sys/pccard/pcicvar.h')
-rw-r--r--sys/pccard/pcicvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pccard/pcicvar.h b/sys/pccard/pcicvar.h
index 185e9a7..eef0e7f 100644
--- a/sys/pccard/pcicvar.h
+++ b/sys/pccard/pcicvar.h
@@ -67,7 +67,9 @@ struct pcic_softc
void (*slot_poll)(void *);
struct callout_handle timeout_ch;
struct pcic_slot slots[PCIC_MAX_SLOTS];
- int cd_pending;
+ int cd_pending; /* debounce timeout active */
+ int cd_present; /* debounced card-present state */
+ struct callout_handle cd_ch; /* handle for pcic_cd_insert */
};
extern devclass_t pcic_devclass;
OpenPOWER on IntegriCloud