aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/cs_internal.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2006-01-10 14:50:39 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2006-03-31 10:02:06 -0500
commit360b65b95bae96f854a2413093ee9b79c31203ae (patch)
treeff5f2dea6055c9616fdec44b7309fc81b8f116ed /drivers/pcmcia/cs_internal.h
parent855cdf134dfcf2ecb92ac4ad675cf655d8ceb678 (diff)
[PATCH] pcmcia: make config_t independent, add reference counting
Handle config_t structs independent of struct pcmcia_socket, and add reference counting for them. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r--drivers/pcmcia/cs_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h
index 88c96aee0f45..01c32af559bf 100644
--- a/drivers/pcmcia/cs_internal.h
+++ b/drivers/pcmcia/cs_internal.h
@@ -16,6 +16,7 @@
16#define _LINUX_CS_INTERNAL_H 16#define _LINUX_CS_INTERNAL_H
17 17
18#include <linux/config.h> 18#include <linux/config.h>
19#include <linux/kref.h>
19 20
20/* Flags in client state */ 21/* Flags in client state */
21#define CLIENT_CONFIG_LOCKED 0x0001 22#define CLIENT_CONFIG_LOCKED 0x0001
@@ -40,6 +41,7 @@ typedef struct region_t {
40 41
41/* Each card function gets one of these guys */ 42/* Each card function gets one of these guys */
42typedef struct config_t { 43typedef struct config_t {
44 struct kref ref;
43 u_int state; 45 u_int state;
44 u_int Attributes; 46 u_int Attributes;
45 u_int IntType; 47 u_int IntType;