diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-03-02 23:10:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-03-02 23:10:19 +0000 |
commit | 9aebc676361f459df5ba83581d437ee61cca5e87 (patch) | |
tree | 2b1b5e2db4611e7960a3d4c1dce4c6a42680680b /sys/arch/sparc/dev/stp_sbus.c | |
parent | 7f16c5207e0c3867ab527eb90fe75d1dbf4e64d9 (diff) |
Rework the card insertion/removal detection logic:
- instead of queueing events each time the sense information changes,
only remember that the slot needs attention
- when processing a slot needing attention, decide what to do depending upon
its current sense information, rather than what it was when the change
was detected
- handle the ``only one sensor asserted'' state happening during slow
insertion or removal.
This makes the driver much more reactive to insertions and removals, and
also removes unnecessary attach/detach calls.
ok deraadt@
Diffstat (limited to 'sys/arch/sparc/dev/stp_sbus.c')
-rw-r--r-- | sys/arch/sparc/dev/stp_sbus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/stp_sbus.c b/sys/arch/sparc/dev/stp_sbus.c index 79cdc9cd3ee..53b2305615b 100644 --- a/sys/arch/sparc/dev/stp_sbus.c +++ b/sys/arch/sparc/dev/stp_sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stp_sbus.c,v 1.2 2003/06/25 17:39:00 miod Exp $ */ +/* $OpenBSD: stp_sbus.c,v 1.3 2004/03/02 23:10:14 miod Exp $ */ /* $NetBSD: stp4020.c,v 1.23 2002/06/01 23:51:03 lukem Exp $ */ /*- @@ -38,7 +38,8 @@ */ /* - * STP4020: SBus/PCMCIA bridge supporting two Type-3 PCMCIA cards. + * STP4020: SBus/PCMCIA bridge supporting one Type-3 PCMCIA card, or up to + * two Type-1 and Type-2 PCMCIA cards.. */ #include <sys/param.h> |