aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ds_internal.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-06-27 19:28:50 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 21:03:19 -0400
commitb5e43913cfe95a18ad8929585a0bb58e46cf3390 (patch)
tree2dbdcf979e3a300141c1ffdaf96e03127675cb1e /drivers/pcmcia/ds_internal.h
parent90c6cdd1fa8dd4d69af792541a37b38576aa9b5a (diff)
[PATCH] pcmcia: make PCMCIA status a bitfield
make pcmcia_bus_socket->state a bitfield, and rename it pcmcia_state to prepare for struct pcmcia_bus_socket integration 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 'drivers/pcmcia/ds_internal.h')
-rw-r--r--drivers/pcmcia/ds_internal.h14
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 */
6struct pcmcia_bus_socket { 6struct 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;
29extern struct bus_type pcmcia_bus_type; 35extern 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
36extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev); 38extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev);
37extern void pcmcia_put_dev(struct pcmcia_device *p_dev); 39extern void pcmcia_put_dev(struct pcmcia_device *p_dev);
38 40