diff options
Diffstat (limited to 'include/pcmcia')
-rw-r--r-- | include/pcmcia/cs.h | 42 | ||||
-rw-r--r-- | include/pcmcia/cs_types.h | 4 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 25 | ||||
-rw-r--r-- | include/pcmcia/version.h | 3 |
4 files changed, 28 insertions, 46 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index b42ddc0c1143..2cab39f49eb2 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
@@ -68,21 +68,9 @@ typedef struct adjust_t { | |||
68 | #define RES_ALLOCATED 0x20 | 68 | #define RES_ALLOCATED 0x20 |
69 | #define RES_REMOVED 0x40 | 69 | #define RES_REMOVED 0x40 |
70 | 70 | ||
71 | typedef struct servinfo_t { | ||
72 | char Signature[2]; | ||
73 | u_int Count; | ||
74 | u_int Revision; | ||
75 | u_int CSLevel; | ||
76 | char *VendorString; | ||
77 | } servinfo_t; | ||
78 | |||
79 | typedef struct event_callback_args_t { | 71 | typedef struct event_callback_args_t { |
80 | client_handle_t client_handle; | 72 | struct pcmcia_device *client_handle; |
81 | void *info; | 73 | void *client_data; |
82 | void *mtdrequest; | ||
83 | void *buffer; | ||
84 | void *misc; | ||
85 | void *client_data; | ||
86 | } event_callback_args_t; | 74 | } event_callback_args_t; |
87 | 75 | ||
88 | /* for GetConfigurationInfo */ | 76 | /* for GetConfigurationInfo */ |
@@ -393,25 +381,25 @@ enum service { | |||
393 | 381 | ||
394 | struct pcmcia_socket; | 382 | struct pcmcia_socket; |
395 | 383 | ||
396 | int pcmcia_access_configuration_register(client_handle_t handle, conf_reg_t *reg); | 384 | int pcmcia_access_configuration_register(struct pcmcia_device *p_dev, conf_reg_t *reg); |
397 | int pcmcia_deregister_client(client_handle_t handle); | 385 | int pcmcia_deregister_client(struct pcmcia_device *p_dev); |
398 | int pcmcia_get_configuration_info(client_handle_t handle, config_info_t *config); | 386 | int pcmcia_get_configuration_info(struct pcmcia_device *p_dev, config_info_t *config); |
399 | int pcmcia_get_first_window(window_handle_t *win, win_req_t *req); | 387 | int pcmcia_get_first_window(window_handle_t *win, win_req_t *req); |
400 | int pcmcia_get_next_window(window_handle_t *win, win_req_t *req); | 388 | int pcmcia_get_next_window(window_handle_t *win, win_req_t *req); |
401 | int pcmcia_get_status(client_handle_t handle, cs_status_t *status); | 389 | int pcmcia_get_status(struct pcmcia_device *p_dev, cs_status_t *status); |
402 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); | 390 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); |
403 | int pcmcia_map_mem_page(window_handle_t win, memreq_t *req); | 391 | int pcmcia_map_mem_page(window_handle_t win, memreq_t *req); |
404 | int pcmcia_modify_configuration(client_handle_t handle, modconf_t *mod); | 392 | int pcmcia_modify_configuration(struct pcmcia_device *p_dev, modconf_t *mod); |
405 | int pcmcia_register_client(client_handle_t *handle, client_reg_t *req); | 393 | int pcmcia_register_client(client_handle_t *handle, client_reg_t *req); |
406 | int pcmcia_release_configuration(client_handle_t handle); | 394 | int pcmcia_release_configuration(struct pcmcia_device *p_dev); |
407 | int pcmcia_release_io(client_handle_t handle, io_req_t *req); | 395 | int pcmcia_release_io(struct pcmcia_device *p_dev, io_req_t *req); |
408 | int pcmcia_release_irq(client_handle_t handle, irq_req_t *req); | 396 | int pcmcia_release_irq(struct pcmcia_device *p_dev, irq_req_t *req); |
409 | int pcmcia_release_window(window_handle_t win); | 397 | int pcmcia_release_window(window_handle_t win); |
410 | int pcmcia_request_configuration(client_handle_t handle, config_req_t *req); | 398 | int pcmcia_request_configuration(struct pcmcia_device *p_dev, config_req_t *req); |
411 | int pcmcia_request_io(client_handle_t handle, io_req_t *req); | 399 | int pcmcia_request_io(struct pcmcia_device *p_dev, io_req_t *req); |
412 | int pcmcia_request_irq(client_handle_t handle, irq_req_t *req); | 400 | int pcmcia_request_irq(struct pcmcia_device *p_dev, irq_req_t *req); |
413 | int pcmcia_request_window(client_handle_t *handle, win_req_t *req, window_handle_t *wh); | 401 | int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, window_handle_t *wh); |
414 | int pcmcia_reset_card(client_handle_t handle, client_req_t *req); | 402 | int pcmcia_reset_card(struct pcmcia_device *p_dev, client_req_t *req); |
415 | int pcmcia_suspend_card(struct pcmcia_socket *skt); | 403 | int pcmcia_suspend_card(struct pcmcia_socket *skt); |
416 | int pcmcia_resume_card(struct pcmcia_socket *skt); | 404 | int pcmcia_resume_card(struct pcmcia_socket *skt); |
417 | int pcmcia_eject_card(struct pcmcia_socket *skt); | 405 | int pcmcia_eject_card(struct pcmcia_socket *skt); |
diff --git a/include/pcmcia/cs_types.h b/include/pcmcia/cs_types.h index 7881d40aac8d..c1d1629fcd27 100644 --- a/include/pcmcia/cs_types.h +++ b/include/pcmcia/cs_types.h | |||
@@ -34,8 +34,8 @@ typedef u_int event_t; | |||
34 | typedef u_char cisdata_t; | 34 | typedef u_char cisdata_t; |
35 | typedef u_short page_t; | 35 | typedef u_short page_t; |
36 | 36 | ||
37 | struct client_t; | 37 | struct pcmcia_device; |
38 | typedef struct client_t *client_handle_t; | 38 | typedef struct pcmcia_device *client_handle_t; |
39 | 39 | ||
40 | struct window_t; | 40 | struct window_t; |
41 | typedef struct window_t *window_handle_t; | 41 | typedef struct window_t *window_handle_t; |
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 2b52553f2d94..b707a603351b 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -16,10 +16,13 @@ | |||
16 | #ifndef _LINUX_DS_H | 16 | #ifndef _LINUX_DS_H |
17 | #define _LINUX_DS_H | 17 | #define _LINUX_DS_H |
18 | 18 | ||
19 | #ifdef __KERNEL__ | ||
20 | #include <linux/mod_devicetable.h> | ||
21 | #endif | ||
22 | |||
19 | #include <pcmcia/bulkmem.h> | 23 | #include <pcmcia/bulkmem.h> |
20 | #include <pcmcia/cs_types.h> | 24 | #include <pcmcia/cs_types.h> |
21 | #include <pcmcia/device_id.h> | 25 | #include <pcmcia/device_id.h> |
22 | #include <linux/mod_devicetable.h> | ||
23 | 26 | ||
24 | typedef struct tuple_parse_t { | 27 | typedef struct tuple_parse_t { |
25 | tuple_t tuple; | 28 | tuple_t tuple; |
@@ -49,7 +52,6 @@ typedef struct mtd_info_t { | |||
49 | } mtd_info_t; | 52 | } mtd_info_t; |
50 | 53 | ||
51 | typedef union ds_ioctl_arg_t { | 54 | typedef union ds_ioctl_arg_t { |
52 | servinfo_t servinfo; | ||
53 | adjust_t adjust; | 55 | adjust_t adjust; |
54 | config_info_t config; | 56 | config_info_t config; |
55 | tuple_t tuple; | 57 | tuple_t tuple; |
@@ -65,7 +67,6 @@ typedef union ds_ioctl_arg_t { | |||
65 | cisdump_t cisdump; | 67 | cisdump_t cisdump; |
66 | } ds_ioctl_arg_t; | 68 | } ds_ioctl_arg_t; |
67 | 69 | ||
68 | #define DS_GET_CARD_SERVICES_INFO _IOR ('d', 1, servinfo_t) | ||
69 | #define DS_ADJUST_RESOURCE_INFO _IOWR('d', 2, adjust_t) | 70 | #define DS_ADJUST_RESOURCE_INFO _IOWR('d', 2, adjust_t) |
70 | #define DS_GET_CONFIGURATION_INFO _IOWR('d', 3, config_info_t) | 71 | #define DS_GET_CONFIGURATION_INFO _IOWR('d', 3, config_info_t) |
71 | #define DS_GET_FIRST_TUPLE _IOWR('d', 4, tuple_t) | 72 | #define DS_GET_FIRST_TUPLE _IOWR('d', 4, tuple_t) |
@@ -133,6 +134,8 @@ struct pcmcia_socket; | |||
133 | 134 | ||
134 | struct pcmcia_driver { | 135 | struct pcmcia_driver { |
135 | dev_link_t *(*attach)(void); | 136 | dev_link_t *(*attach)(void); |
137 | int (*event) (event_t event, int priority, | ||
138 | event_callback_args_t *); | ||
136 | void (*detach)(dev_link_t *); | 139 | void (*detach)(dev_link_t *); |
137 | struct module *owner; | 140 | struct module *owner; |
138 | struct pcmcia_device_id *id_table; | 141 | struct pcmcia_device_id *id_table; |
@@ -159,16 +162,8 @@ struct pcmcia_device { | |||
159 | /* deprecated, a cleaned up version will be moved into this | 162 | /* deprecated, a cleaned up version will be moved into this |
160 | struct soon */ | 163 | struct soon */ |
161 | dev_link_t *instance; | 164 | dev_link_t *instance; |
162 | struct client_t { | 165 | event_callback_args_t event_callback_args; |
163 | u_short client_magic; | 166 | 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 | 167 | ||
173 | /* information about this device */ | 168 | /* information about this device */ |
174 | u8 has_manf_id:1; | 169 | u8 has_manf_id:1; |
@@ -193,8 +188,8 @@ struct pcmcia_device { | |||
193 | #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) | 188 | #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) | 189 | #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) |
195 | 190 | ||
196 | #define handle_to_pdev(handle) container_of(handle, struct pcmcia_device, client); | 191 | #define handle_to_pdev(handle) (handle) |
197 | #define handle_to_dev(handle) ((container_of(handle, struct pcmcia_device, client))->dev) | 192 | #define handle_to_dev(handle) (handle->dev) |
198 | 193 | ||
199 | /* error reporting */ | 194 | /* error reporting */ |
200 | void cs_error(client_handle_t handle, int func, int ret); | 195 | void cs_error(client_handle_t handle, int func, int ret); |
diff --git a/include/pcmcia/version.h b/include/pcmcia/version.h index eb88263fc8d5..5ad9c5e198b6 100644 --- a/include/pcmcia/version.h +++ b/include/pcmcia/version.h | |||
@@ -1,4 +1,3 @@ | |||
1 | /* version.h 1.94 2000/10/03 17:55:48 (David Hinds) */ | 1 | /* version.h 1.94 2000/10/03 17:55:48 (David Hinds) */ |
2 | 2 | ||
3 | #define CS_RELEASE "3.1.22" | 3 | /* This file will be removed, please don't include it */ |
4 | #define CS_RELEASE_CODE 0x3116 | ||