diff options
Diffstat (limited to 'include/pcmcia/ds.h')
-rw-r--r-- | include/pcmcia/ds.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 2b52553f2d94..0190e766e1a7 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -49,7 +49,6 @@ typedef struct mtd_info_t { | |||
49 | } mtd_info_t; | 49 | } mtd_info_t; |
50 | 50 | ||
51 | typedef union ds_ioctl_arg_t { | 51 | typedef union ds_ioctl_arg_t { |
52 | servinfo_t servinfo; | ||
53 | adjust_t adjust; | 52 | adjust_t adjust; |
54 | config_info_t config; | 53 | config_info_t config; |
55 | tuple_t tuple; | 54 | tuple_t tuple; |
@@ -65,7 +64,6 @@ typedef union ds_ioctl_arg_t { | |||
65 | cisdump_t cisdump; | 64 | cisdump_t cisdump; |
66 | } ds_ioctl_arg_t; | 65 | } ds_ioctl_arg_t; |
67 | 66 | ||
68 | #define DS_GET_CARD_SERVICES_INFO _IOR ('d', 1, servinfo_t) | ||
69 | #define DS_ADJUST_RESOURCE_INFO _IOWR('d', 2, adjust_t) | 67 | #define DS_ADJUST_RESOURCE_INFO _IOWR('d', 2, adjust_t) |
70 | #define DS_GET_CONFIGURATION_INFO _IOWR('d', 3, config_info_t) | 68 | #define DS_GET_CONFIGURATION_INFO _IOWR('d', 3, config_info_t) |
71 | #define DS_GET_FIRST_TUPLE _IOWR('d', 4, tuple_t) | 69 | #define DS_GET_FIRST_TUPLE _IOWR('d', 4, tuple_t) |
@@ -133,6 +131,8 @@ struct pcmcia_socket; | |||
133 | 131 | ||
134 | struct pcmcia_driver { | 132 | struct pcmcia_driver { |
135 | dev_link_t *(*attach)(void); | 133 | dev_link_t *(*attach)(void); |
134 | int (*event) (event_t event, int priority, | ||
135 | event_callback_args_t *); | ||
136 | void (*detach)(dev_link_t *); | 136 | void (*detach)(dev_link_t *); |
137 | struct module *owner; | 137 | struct module *owner; |
138 | struct pcmcia_device_id *id_table; | 138 | struct pcmcia_device_id *id_table; |
@@ -159,16 +159,8 @@ struct pcmcia_device { | |||
159 | /* deprecated, a cleaned up version will be moved into this | 159 | /* deprecated, a cleaned up version will be moved into this |
160 | struct soon */ | 160 | struct soon */ |
161 | dev_link_t *instance; | 161 | dev_link_t *instance; |
162 | struct client_t { | 162 | event_callback_args_t event_callback_args; |
163 | u_short client_magic; | 163 | u_int state; |
164 | struct pcmcia_socket *Socket; | ||
165 | u_char Function; | ||
166 | u_int state; | ||
167 | event_t EventMask; | ||
168 | int (*event_handler) (event_t event, int priority, | ||
169 | event_callback_args_t *); | ||
170 | event_callback_args_t event_callback_args; | ||
171 | } client; | ||
172 | 164 | ||
173 | /* information about this device */ | 165 | /* information about this device */ |
174 | u8 has_manf_id:1; | 166 | u8 has_manf_id:1; |
@@ -193,8 +185,8 @@ struct pcmcia_device { | |||
193 | #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) | 185 | #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) |
194 | #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) | 186 | #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) |
195 | 187 | ||
196 | #define handle_to_pdev(handle) container_of(handle, struct pcmcia_device, client); | 188 | #define handle_to_pdev(handle) (handle) |
197 | #define handle_to_dev(handle) ((container_of(handle, struct pcmcia_device, client))->dev) | 189 | #define handle_to_dev(handle) (handle->dev) |
198 | 190 | ||
199 | /* error reporting */ | 191 | /* error reporting */ |
200 | void cs_error(client_handle_t handle, int func, int ret); | 192 | void cs_error(client_handle_t handle, int func, int ret); |