aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard/cardinfo.h
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1998-04-20 15:21:02 +0000
committerNate Williams <nate@FreeBSD.org>1998-04-20 15:21:02 +0000
commit480895cbea27b56afa32a1e0b43dd2495b717388 (patch)
tree628f97e88211884a95cd77f30525193dd2fb49a9 /sys/pccard/cardinfo.h
parente4c50d858ae6e2970ea44b8a99ed3a6277039b94 (diff)
downloadsrc-480895cbea27b56afa32a1e0b43dd2495b717388.tar.gz
src-480895cbea27b56afa32a1e0b43dd2495b717388.zip
- Give up trying for a simple solution for correctly recognizing if a card
was really removed, or simply 'faked' by a suspend/resume. Keep track of both current and previous state, and send that information to the userland programs. [ XXX - This breaks binary compatability with older pccardd programs, but they don't work reliably. :( ]
Notes
Notes: svn path=/head/; revision=35345
Diffstat (limited to 'sys/pccard/cardinfo.h')
-rw-r--r--sys/pccard/cardinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pccard/cardinfo.h b/sys/pccard/cardinfo.h
index 3fef4f429d80..ba9828374153 100644
--- a/sys/pccard/cardinfo.h
+++ b/sys/pccard/cardinfo.h
@@ -115,6 +115,7 @@ struct pcic_reg {
*/
struct slotstate {
enum cardstate state; /* Current state of slot */
+ enum cardstate laststate; /* Previous state of slot */
int maxmem; /* Max allowed memory windows */
int maxio; /* Max allowed I/O windows */
int irqs; /* Bitmap of IRQs allowed */