aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard/cardinfo.h
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1997-10-28 17:51:25 +0000
committerNate Williams <nate@FreeBSD.org>1997-10-28 17:51:25 +0000
commitec510cabb066488af6e05697c867f11652e96a58 (patch)
treedd8e764dd628744d7dc754a254883eab979eb312 /sys/pccard/cardinfo.h
parentaf8eceb3f642774df3e5b81de7f39805a796adcd (diff)
downloadsrc-ec510cabb066488af6e05697c867f11652e96a58.tar.gz
src-ec510cabb066488af6e05697c867f11652e96a58.zip
- 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
Notes
Notes: svn path=/head/; revision=30815
Diffstat (limited to 'sys/pccard/cardinfo.h')
-rw-r--r--sys/pccard/cardinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/cardinfo.h b/sys/pccard/cardinfo.h
index 159a8e761761..91da7268af43 100644
--- a/sys/pccard/cardinfo.h
+++ b/sys/pccard/cardinfo.h
@@ -54,7 +54,7 @@
/*
* Slot states for PIOCGSTATE
*/
-enum cardstate { noslot, empty, filled };
+enum cardstate { noslot, empty, suspend, filled };
/*
* Descriptor structure for memory map.