Lines Matching +full:retain +full:- +full:state +full:- +full:suspended
4 *-------------------------------------------------------------------------
6 /*-
7 * SPDX-License-Identifier: BSD-3-Clause
14 * 1. Redistributions of source code must retain the above copyright
43 #define PIOCGSTATE _IOR('P', 1, struct slotstate) /* Get slot state */
64 * Here's a state diagram of all the possible states:
67 * -------------------
70 * resume +----------+ power x 0 +----------+
71 * ------->| inactive |<--------------| filled |
72 * / +----------+ +----------+
74 * nil <--------- \ insert or | | suspend or
77 * \ +----------+
78 * ----------->| empty |
79 * eject +----------+
81 * Note, the above diagram is for the state. On suspend, the laststate
82 * gets set to suspend to tell pccardd what happened. Also the nil state
83 * means that when the no state change has happened. Note: if you eject
84 * while suspended in the inactive state, you will return to the
85 * empty state if you do not insert a new card and to the inactive state
89 * eject/insert shouldn't take it out of that state. They might be
91 * state. They might be right. They both can't be right. The above
95 * we were suspended. Others do not. We make no use of this functionality
104 int window; /* Memory map window number (0-4) */
105 int flags; /* Flags - see below */
113 #define MDF_WS0 0x04 /* Wait state flags */
117 #define MDF_ACTIVE 0x40 /* Context active (read-only) */
123 int window; /* I/O map number (0-1) */
124 int flags; /* Flags - see below */
133 #define IODF_ACTIVE 0x10 /* Context active (read-only) */
169 enum cardstate state; /* Current state of slot */ member
170 enum cardstate laststate; /* Previous state of slot */
186 * The PC-Card resource IOC_GET_RESOURCE_RANGE