From 9aebc676361f459df5ba83581d437ee61cca5e87 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 2 Mar 2004 23:10:19 +0000 Subject: 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@ --- sys/arch/sparc64/dev/stp_sbus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64/dev') diff --git a/sys/arch/sparc64/dev/stp_sbus.c b/sys/arch/sparc64/dev/stp_sbus.c index 07e97b29ef6..6b95093946e 100644 --- a/sys/arch/sparc64/dev/stp_sbus.c +++ b/sys/arch/sparc64/dev/stp_sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stp_sbus.c,v 1.5 2003/12/16 15:08:50 jason Exp $ */ +/* $OpenBSD: stp_sbus.c,v 1.6 2004/03/02 23:10:17 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 -- cgit v1.2.3