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.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h
index e0f6feb8588c..cbfba885eb85 100644
--- a/include/pcmcia/ss.h
+++ b/include/pcmcia/ss.h
@@ -107,15 +107,6 @@ typedef struct io_window_t {
107 struct resource *res; 107 struct resource *res;
108} io_window_t; 108} io_window_t;
109 109
110#define WINDOW_MAGIC 0xB35C
111typedef struct window_t {
112 u_short magic;
113 u_short index;
114 struct pcmcia_device *handle;
115 struct pcmcia_socket *sock;
116 pccard_mem_map ctl;
117} window_t;
118
119/* Maximum number of IO windows per socket */ 110/* Maximum number of IO windows per socket */
120#define MAX_IO_WIN 2 111#define MAX_IO_WIN 2
121 112
@@ -155,7 +146,7 @@ struct pcmcia_socket {
155 u_int Config; 146 u_int Config;
156 } irq; 147 } irq;
157 io_window_t io[MAX_IO_WIN]; 148 io_window_t io[MAX_IO_WIN];
158 window_t win[MAX_WIN]; 149 pccard_mem_map win[MAX_WIN];
159 struct list_head cis_cache; 150 struct list_head cis_cache;
160 size_t fake_cis_len; 151 size_t fake_cis_len;
161 u8 *fake_cis; 152 u8 *fake_cis;
@@ -163,7 +154,7 @@ struct pcmcia_socket {
163 struct list_head socket_list; 154 struct list_head socket_list;
164 struct completion socket_released; 155 struct completion socket_released;
165 156
166 /* deprecated */ 157 /* deprecated */
167 unsigned int sock; /* socket number */ 158 unsigned int sock; /* socket number */
168 159
169 160
@@ -172,8 +163,8 @@ struct pcmcia_socket {
172 u_int irq_mask; 163 u_int irq_mask;
173 u_int map_size; 164 u_int map_size;
174 u_int io_offset; 165 u_int io_offset;
175 u_char pci_irq; 166 u_int pci_irq;
176 struct pci_dev * cb_dev; 167 struct pci_dev *cb_dev;
177 168
178 169
179 /* socket setup is done so resources should be able to be allocated. 170 /* socket setup is done so resources should be able to be allocated.
@@ -188,9 +179,9 @@ struct pcmcia_socket {
188 u8 reserved:5; 179 u8 reserved:5;
189 180
190 /* socket operations */ 181 /* socket operations */
191 struct pccard_operations * ops; 182 struct pccard_operations *ops;
192 struct pccard_resource_ops * resource_ops; 183 struct pccard_resource_ops *resource_ops;
193 void * resource_data; 184 void *resource_data;
194 185
195 /* Zoom video behaviour is so chip specific its not worth adding 186 /* Zoom video behaviour is so chip specific its not worth adding
196 this to _ops */ 187 this to _ops */
@@ -254,7 +245,7 @@ struct pcmcia_socket {
254 245
255 /* cardbus (32-bit) */ 246 /* cardbus (32-bit) */
256#ifdef CONFIG_CARDBUS 247#ifdef CONFIG_CARDBUS
257 struct resource * cb_cis_res; 248 struct resource *cb_cis_res;
258 void __iomem *cb_cis_virt; 249 void __iomem *cb_cis_virt;
259#endif /* CONFIG_CARDBUS */ 250#endif /* CONFIG_CARDBUS */
260 251