diff options
| author | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-06-27 19:28:50 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 21:03:19 -0400 |
| commit | dc109497bd5799770fedfc6503119808497b3677 (patch) | |
| tree | 04b2a219ab92511c2fe37220543405fa4ff86d49 /include/pcmcia | |
| parent | b5e43913cfe95a18ad8929585a0bb58e46cf3390 (diff) | |
[PATCH] pcmcia: merge struct pcmcia_bus_socket into struct pcmcia_socket
Merge struct pcmcia_bus_socket into struct pcmcia_socket.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/pcmcia')
| -rw-r--r-- | include/pcmcia/ss.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h index f8797767051d..0f7aacc33fe9 100644 --- a/include/pcmcia/ss.h +++ b/include/pcmcia/ss.h | |||
| @@ -15,10 +15,12 @@ | |||
| 15 | #ifndef _LINUX_SS_H | 15 | #ifndef _LINUX_SS_H |
| 16 | #define _LINUX_SS_H | 16 | #define _LINUX_SS_H |
| 17 | 17 | ||
| 18 | #include <linux/config.h> | ||
| 19 | #include <linux/device.h> | ||
| 20 | |||
| 18 | #include <pcmcia/cs_types.h> | 21 | #include <pcmcia/cs_types.h> |
| 19 | #include <pcmcia/cs.h> | 22 | #include <pcmcia/cs.h> |
| 20 | #include <pcmcia/bulkmem.h> | 23 | #include <pcmcia/bulkmem.h> |
| 21 | #include <linux/device.h> | ||
| 22 | 24 | ||
| 23 | /* Definitions for card status flags for GetStatus */ | 25 | /* Definitions for card status flags for GetStatus */ |
| 24 | #define SS_WRPROT 0x0001 | 26 | #define SS_WRPROT 0x0001 |
| @@ -171,7 +173,7 @@ typedef struct window_t { | |||
| 171 | 173 | ||
| 172 | struct config_t; | 174 | struct config_t; |
| 173 | struct pcmcia_callback; | 175 | struct pcmcia_callback; |
| 174 | 176 | struct user_info_t; | |
| 175 | 177 | ||
| 176 | struct pcmcia_socket { | 178 | struct pcmcia_socket { |
| 177 | struct module *owner; | 179 | struct module *owner; |
| @@ -242,9 +244,32 @@ struct pcmcia_socket { | |||
| 242 | unsigned int thread_events; | 244 | unsigned int thread_events; |
| 243 | 245 | ||
| 244 | /* pcmcia (16-bit) */ | 246 | /* pcmcia (16-bit) */ |
| 245 | struct pcmcia_bus_socket *pcmcia; | ||
| 246 | struct pcmcia_callback *callback; | 247 | struct pcmcia_callback *callback; |
| 247 | 248 | ||
| 249 | #if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE) | ||
| 250 | struct list_head devices_list; /* PCMCIA devices */ | ||
| 251 | u8 device_count; /* the number of devices, used | ||
| 252 | * only internally and subject | ||
| 253 | * to incorrectness and change */ | ||
| 254 | |||
| 255 | struct { | ||
| 256 | u8 present:1, /* PCMCIA card is present in socket */ | ||
| 257 | busy:1, /* "master" ioctl is used */ | ||
| 258 | dead:1, /* pcmcia module is being unloaded */ | ||
| 259 | device_add_pending:1, /* a pseudo-multifunction-device | ||
| 260 | * add event is pending */ | ||
| 261 | reserved:4; | ||
| 262 | } pcmcia_state; | ||
| 263 | |||
| 264 | struct work_struct device_add; /* for adding further pseudo-multifunction | ||
| 265 | * devices */ | ||
| 266 | |||
| 267 | #ifdef CONFIG_PCMCIA_IOCTL | ||
| 268 | struct user_info_t *user; | ||
| 269 | wait_queue_head_t queue; | ||
| 270 | #endif | ||
| 271 | #endif | ||
| 272 | |||
| 248 | /* cardbus (32-bit) */ | 273 | /* cardbus (32-bit) */ |
| 249 | #ifdef CONFIG_CARDBUS | 274 | #ifdef CONFIG_CARDBUS |
| 250 | struct resource * cb_cis_res; | 275 | struct resource * cb_cis_res; |
