aboutsummaryrefslogtreecommitdiffstats
path: root/include/pcmcia/ss.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pcmcia/ss.h')
-rw-r--r--include/pcmcia/ss.h32
1 files changed, 6 insertions, 26 deletions
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h
index 344705cb42f4..626b63c33d9e 100644
--- a/include/pcmcia/ss.h
+++ b/include/pcmcia/ss.h
@@ -19,7 +19,6 @@
19#include <linux/sched.h> /* task_struct, completion */ 19#include <linux/sched.h> /* task_struct, completion */
20#include <linux/mutex.h> 20#include <linux/mutex.h>
21 21
22#include <pcmcia/cs_types.h>
23#include <pcmcia/cs.h> 22#include <pcmcia/cs.h>
24#ifdef CONFIG_CARDBUS 23#ifdef CONFIG_CARDBUS
25#include <linux/pci.h> 24#include <linux/pci.h>
@@ -141,10 +140,6 @@ struct pcmcia_socket {
141 u_short lock_count; 140 u_short lock_count;
142 pccard_mem_map cis_mem; 141 pccard_mem_map cis_mem;
143 void __iomem *cis_virt; 142 void __iomem *cis_virt;
144 struct {
145 u_int AssignedIRQ;
146 u_int Config;
147 } irq;
148 io_window_t io[MAX_IO_WIN]; 143 io_window_t io[MAX_IO_WIN];
149 pccard_mem_map win[MAX_WIN]; 144 pccard_mem_map win[MAX_WIN];
150 struct list_head cis_cache; 145 struct list_head cis_cache;
@@ -166,17 +161,10 @@ struct pcmcia_socket {
166 u_int pci_irq; 161 u_int pci_irq;
167 struct pci_dev *cb_dev; 162 struct pci_dev *cb_dev;
168 163
169
170 /* socket setup is done so resources should be able to be allocated. 164 /* socket setup is done so resources should be able to be allocated.
171 * Only if set to 1, calls to find_{io,mem}_region are handled, and 165 * Only if set to 1, calls to find_{io,mem}_region are handled, and
172 * insertio events are actually managed by the PCMCIA layer.*/ 166 * insertio events are actually managed by the PCMCIA layer.*/
173 u8 resource_setup_done:1; 167 u8 resource_setup_done;
174
175 /* It's old if resource setup is done using adjust_resource_info() */
176 u8 resource_setup_old:1;
177 u8 resource_setup_new:1;
178
179 u8 reserved:5;
180 168
181 /* socket operations */ 169 /* socket operations */
182 struct pccard_operations *ops; 170 struct pccard_operations *ops;
@@ -222,23 +210,15 @@ struct pcmcia_socket {
222 * incorrectness and change */ 210 * incorrectness and change */
223 u8 device_count; 211 u8 device_count;
224 212
225 /* 16-bit state: */ 213 /* does the PCMCIA card consist of two pseudo devices? */
226 struct { 214 u8 pcmcia_pfc;
227 /* "master" ioctl is used */
228 u8 busy:1;
229 /* the PCMCIA card consists of two pseudo devices */
230 u8 has_pfc:1;
231
232 u8 reserved:6;
233 } pcmcia_state;
234 215
235 /* non-zero if PCMCIA card is present */ 216 /* non-zero if PCMCIA card is present */
236 atomic_t present; 217 atomic_t present;
237 218
238#ifdef CONFIG_PCMCIA_IOCTL 219 /* IRQ to be used by PCMCIA devices. May not be IRQ 0. */
239 struct user_info_t *user; 220 unsigned int pcmcia_irq;
240 wait_queue_head_t queue; 221
241#endif /* CONFIG_PCMCIA_IOCTL */
242#endif /* CONFIG_PCMCIA */ 222#endif /* CONFIG_PCMCIA */
243 223
244 /* socket device */ 224 /* socket device */