summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1997-10-28 17:51:25 +0000
committernate <nate@FreeBSD.org>1997-10-28 17:51:25 +0000
commit2e553bc25069eeeaf344cab2b006655cb04de92c (patch)
tree4f829903a1b524d022289ea0992e0747e13fb2b1 /usr.sbin
parent2c7ba54db583d15a410c146cd4501196e769b97c (diff)
downloadFreeBSD-src-2e553bc25069eeeaf344cab2b006655cb04de92c.zip
FreeBSD-src-2e553bc25069eeeaf344cab2b006655cb04de92c.tar.gz
- Disable cards when doing a suspend by emulating that they have been
removed. Add a new state 'suspend' so we 'fake' insertion events at resume time for the cards that have been suspended. [ The code still works if you remove the card during suspend, switch the card during suspend, or combinations of both. ] Reviewed by: frf@xocolatl.com
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pccard/pccardd/cardd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c
index e2237f3..64c31a0 100644
--- a/usr.sbin/pccard/pccardd/cardd.c
+++ b/usr.sbin/pccard/pccardd/cardd.c
@@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: cardd.c,v 1.18 1997/10/06 11:36:06 charnier Exp $";
+ "$Id: cardd.c,v 1.19 1997/10/26 04:36:24 nate Exp $";
#endif /* not lint */
#include <fcntl.h>
@@ -227,6 +227,9 @@ slot_change(struct slot *sp)
case filled:
card_inserted(sp);
break;
+ case suspend:
+ /* ignored */
+ break;
}
}
OpenPOWER on IntegriCloud