diff options
Diffstat (limited to 'drivers/pcmcia/ds_internal.h')
-rw-r--r-- | drivers/pcmcia/ds_internal.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/pcmcia/ds_internal.h b/drivers/pcmcia/ds_internal.h index b05bc39d9cd6..2c3bb189dec6 100644 --- a/drivers/pcmcia/ds_internal.h +++ b/drivers/pcmcia/ds_internal.h | |||
@@ -5,7 +5,6 @@ struct user_info_t; | |||
5 | /* Socket state information */ | 5 | /* Socket state information */ |
6 | struct pcmcia_bus_socket { | 6 | struct pcmcia_bus_socket { |
7 | struct kref refcount; | 7 | struct kref refcount; |
8 | int state; | ||
9 | struct pcmcia_socket *parent; | 8 | struct pcmcia_socket *parent; |
10 | 9 | ||
11 | /* the PCMCIA devices connected to this socket (normally one, more | 10 | /* the PCMCIA devices connected to this socket (normally one, more |
@@ -15,7 +14,14 @@ struct pcmcia_bus_socket { | |||
15 | * only internally and subject | 14 | * only internally and subject |
16 | * to incorrectness and change */ | 15 | * to incorrectness and change */ |
17 | 16 | ||
18 | u8 device_add_pending; | 17 | struct { |
18 | u8 present:1, | ||
19 | busy:1, | ||
20 | dead:1, | ||
21 | device_add_pending:1, | ||
22 | reserved:4; | ||
23 | } pcmcia_state; | ||
24 | |||
19 | struct work_struct device_add; | 25 | struct work_struct device_add; |
20 | 26 | ||
21 | 27 | ||
@@ -29,10 +35,6 @@ extern spinlock_t pcmcia_dev_list_lock; | |||
29 | extern struct bus_type pcmcia_bus_type; | 35 | extern struct bus_type pcmcia_bus_type; |
30 | 36 | ||
31 | 37 | ||
32 | #define DS_SOCKET_PRESENT 0x01 | ||
33 | #define DS_SOCKET_BUSY 0x02 | ||
34 | #define DS_SOCKET_DEAD 0x80 | ||
35 | |||
36 | extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev); | 38 | extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev); |
37 | extern void pcmcia_put_dev(struct pcmcia_device *p_dev); | 39 | extern void pcmcia_put_dev(struct pcmcia_device *p_dev); |
38 | 40 | ||