summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-03-02 23:10:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-03-02 23:10:19 +0000
commit9aebc676361f459df5ba83581d437ee61cca5e87 (patch)
tree2b1b5e2db4611e7960a3d4c1dce4c6a42680680b /sys/arch/sparc64/dev
parent7f16c5207e0c3867ab527eb90fe75d1dbf4e64d9 (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/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/stp_sbus.c5
1 files changed, 3 insertions, 2 deletions
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 <sys/param.h>