diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/pcmcia/bulkmem.h | 41 | ||||
-rw-r--r-- | include/pcmcia/cistpl.h | 2 | ||||
-rw-r--r-- | include/pcmcia/cs.h | 3 | ||||
-rw-r--r-- | include/pcmcia/cs_types.h | 6 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 19 | ||||
-rw-r--r-- | include/pcmcia/ss.h | 12 | ||||
-rw-r--r-- | include/pcmcia/version.h | 3 |
7 files changed, 29 insertions, 57 deletions
diff --git a/include/pcmcia/bulkmem.h b/include/pcmcia/bulkmem.h deleted file mode 100644 index 6bc7472293b2..000000000000 --- a/include/pcmcia/bulkmem.h +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /* | ||
2 | * bulkmem.h -- Definitions for bulk memory services | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * The initial developer of the original code is David A. Hinds | ||
9 | * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds | ||
10 | * are Copyright (C) 1999 David A. Hinds. All Rights Reserved. | ||
11 | * | ||
12 | * (C) 1999 David A. Hinds | ||
13 | */ | ||
14 | |||
15 | #ifndef _LINUX_BULKMEM_H | ||
16 | #define _LINUX_BULKMEM_H | ||
17 | |||
18 | /* For GetFirstRegion and GetNextRegion */ | ||
19 | typedef struct region_info_t { | ||
20 | u_int Attributes; | ||
21 | u_int CardOffset; | ||
22 | u_int RegionSize; | ||
23 | u_int AccessSpeed; | ||
24 | u_int BlockSize; | ||
25 | u_int PartMultiple; | ||
26 | u_char JedecMfr, JedecInfo; | ||
27 | memory_handle_t next; | ||
28 | } region_info_t; | ||
29 | |||
30 | #define REGION_TYPE 0x0001 | ||
31 | #define REGION_TYPE_CM 0x0000 | ||
32 | #define REGION_TYPE_AM 0x0001 | ||
33 | #define REGION_PREFETCH 0x0008 | ||
34 | #define REGION_CACHEABLE 0x0010 | ||
35 | #define REGION_BAR_MASK 0xe000 | ||
36 | #define REGION_BAR_SHIFT 13 | ||
37 | |||
38 | int pcmcia_get_first_region(struct pcmcia_device *handle, region_info_t *rgn); | ||
39 | int pcmcia_get_next_region(struct pcmcia_device *handle, region_info_t *rgn); | ||
40 | |||
41 | #endif /* _LINUX_BULKMEM_H */ | ||
diff --git a/include/pcmcia/cistpl.h b/include/pcmcia/cistpl.h index d3bbb19caf81..e2e10c1e9a06 100644 --- a/include/pcmcia/cistpl.h +++ b/include/pcmcia/cistpl.h | |||
@@ -595,7 +595,7 @@ int pccard_get_first_tuple(struct pcmcia_socket *s, unsigned int function, tuple | |||
595 | int pccard_get_tuple_data(struct pcmcia_socket *s, tuple_t *tuple); | 595 | int pccard_get_tuple_data(struct pcmcia_socket *s, tuple_t *tuple); |
596 | int pccard_parse_tuple(tuple_t *tuple, cisparse_t *parse); | 596 | int pccard_parse_tuple(tuple_t *tuple, cisparse_t *parse); |
597 | 597 | ||
598 | int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, cisinfo_t *info); | 598 | int pccard_validate_cis(struct pcmcia_socket *s, unsigned int function, unsigned int *count); |
599 | 599 | ||
600 | /* ... but use these wrappers instead */ | 600 | /* ... but use these wrappers instead */ |
601 | #define pcmcia_get_first_tuple(p_dev, tuple) \ | 601 | #define pcmcia_get_first_tuple(p_dev, tuple) \ |
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index 87a260e3699e..45d84b275789 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
@@ -373,9 +373,6 @@ struct pcmcia_socket; | |||
373 | 373 | ||
374 | int pcmcia_access_configuration_register(struct pcmcia_device *p_dev, conf_reg_t *reg); | 374 | int pcmcia_access_configuration_register(struct pcmcia_device *p_dev, conf_reg_t *reg); |
375 | int pcmcia_get_configuration_info(struct pcmcia_device *p_dev, config_info_t *config); | 375 | int pcmcia_get_configuration_info(struct pcmcia_device *p_dev, config_info_t *config); |
376 | int pcmcia_get_first_window(window_handle_t *win, win_req_t *req); | ||
377 | int pcmcia_get_next_window(window_handle_t *win, win_req_t *req); | ||
378 | int pcmcia_get_status(struct pcmcia_device *p_dev, cs_status_t *status); | ||
379 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); | 376 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); |
380 | int pcmcia_map_mem_page(window_handle_t win, memreq_t *req); | 377 | int pcmcia_map_mem_page(window_handle_t win, memreq_t *req); |
381 | int pcmcia_modify_configuration(struct pcmcia_device *p_dev, modconf_t *mod); | 378 | int pcmcia_modify_configuration(struct pcmcia_device *p_dev, modconf_t *mod); |
diff --git a/include/pcmcia/cs_types.h b/include/pcmcia/cs_types.h index 9a6bcc4952f0..f402a0f435b4 100644 --- a/include/pcmcia/cs_types.h +++ b/include/pcmcia/cs_types.h | |||
@@ -21,7 +21,8 @@ | |||
21 | #include <sys/types.h> | 21 | #include <sys/types.h> |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #if defined(__arm__) || defined(__mips__) || defined(__avr32__) | 24 | #if defined(__arm__) || defined(__mips__) || defined(__avr32__) || \ |
25 | defined(__bfin__) | ||
25 | /* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */ | 26 | /* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */ |
26 | typedef u_int ioaddr_t; | 27 | typedef u_int ioaddr_t; |
27 | #else | 28 | #else |
@@ -33,9 +34,6 @@ typedef u_int event_t; | |||
33 | typedef u_char cisdata_t; | 34 | typedef u_char cisdata_t; |
34 | typedef u_short page_t; | 35 | typedef u_short page_t; |
35 | 36 | ||
36 | struct pcmcia_device; | ||
37 | typedef struct pcmcia_device *client_handle_t; | ||
38 | |||
39 | struct window_t; | 37 | struct window_t; |
40 | typedef struct window_t *window_handle_t; | 38 | typedef struct window_t *window_handle_t; |
41 | 39 | ||
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index f047a1fd64f8..b316027c853d 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/mod_devicetable.h> | 20 | #include <linux/mod_devicetable.h> |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | #include <pcmcia/bulkmem.h> | ||
24 | #include <pcmcia/cs_types.h> | 23 | #include <pcmcia/cs_types.h> |
25 | #include <pcmcia/device_id.h> | 24 | #include <pcmcia/device_id.h> |
26 | 25 | ||
@@ -51,6 +50,24 @@ typedef struct mtd_info_t { | |||
51 | u_int CardOffset; | 50 | u_int CardOffset; |
52 | } mtd_info_t; | 51 | } mtd_info_t; |
53 | 52 | ||
53 | typedef struct region_info_t { | ||
54 | u_int Attributes; | ||
55 | u_int CardOffset; | ||
56 | u_int RegionSize; | ||
57 | u_int AccessSpeed; | ||
58 | u_int BlockSize; | ||
59 | u_int PartMultiple; | ||
60 | u_char JedecMfr, JedecInfo; | ||
61 | memory_handle_t next; | ||
62 | } region_info_t; | ||
63 | #define REGION_TYPE 0x0001 | ||
64 | #define REGION_TYPE_CM 0x0000 | ||
65 | #define REGION_TYPE_AM 0x0001 | ||
66 | #define REGION_PREFETCH 0x0008 | ||
67 | #define REGION_CACHEABLE 0x0010 | ||
68 | #define REGION_BAR_MASK 0xe000 | ||
69 | #define REGION_BAR_SHIFT 13 | ||
70 | |||
54 | typedef union ds_ioctl_arg_t { | 71 | typedef union ds_ioctl_arg_t { |
55 | adjust_t adjust; | 72 | adjust_t adjust; |
56 | config_info_t config; | 73 | config_info_t config; |
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h index f95dca077c1c..ed919dd9bb5c 100644 --- a/include/pcmcia/ss.h +++ b/include/pcmcia/ss.h | |||
@@ -21,7 +21,6 @@ | |||
21 | 21 | ||
22 | #include <pcmcia/cs_types.h> | 22 | #include <pcmcia/cs_types.h> |
23 | #include <pcmcia/cs.h> | 23 | #include <pcmcia/cs.h> |
24 | #include <pcmcia/bulkmem.h> | ||
25 | #ifdef CONFIG_CARDBUS | 24 | #ifdef CONFIG_CARDBUS |
26 | #include <linux/pci.h> | 25 | #include <linux/pci.h> |
27 | #endif | 26 | #endif |
@@ -136,8 +135,14 @@ struct pccard_resource_ops { | |||
136 | struct resource* (*find_mem) (unsigned long base, unsigned long num, | 135 | struct resource* (*find_mem) (unsigned long base, unsigned long num, |
137 | unsigned long align, int low, | 136 | unsigned long align, int low, |
138 | struct pcmcia_socket *s); | 137 | struct pcmcia_socket *s); |
139 | int (*adjust_resource) (struct pcmcia_socket *s, | 138 | int (*add_io) (struct pcmcia_socket *s, |
140 | adjust_t *adj); | 139 | unsigned int action, |
140 | unsigned long r_start, | ||
141 | unsigned long r_end); | ||
142 | int (*add_mem) (struct pcmcia_socket *s, | ||
143 | unsigned int action, | ||
144 | unsigned long r_start, | ||
145 | unsigned long r_end); | ||
141 | int (*init) (struct pcmcia_socket *s); | 146 | int (*init) (struct pcmcia_socket *s); |
142 | void (*exit) (struct pcmcia_socket *s); | 147 | void (*exit) (struct pcmcia_socket *s); |
143 | }; | 148 | }; |
@@ -245,7 +250,6 @@ struct pcmcia_socket { | |||
245 | 250 | ||
246 | struct task_struct *thread; | 251 | struct task_struct *thread; |
247 | struct completion thread_done; | 252 | struct completion thread_done; |
248 | wait_queue_head_t thread_wait; | ||
249 | spinlock_t thread_lock; /* protects thread_events */ | 253 | spinlock_t thread_lock; /* protects thread_events */ |
250 | unsigned int thread_events; | 254 | unsigned int thread_events; |
251 | 255 | ||
diff --git a/include/pcmcia/version.h b/include/pcmcia/version.h deleted file mode 100644 index 5ad9c5e198b6..000000000000 --- a/include/pcmcia/version.h +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | /* version.h 1.94 2000/10/03 17:55:48 (David Hinds) */ | ||
2 | |||
3 | /* This file will be removed, please don't include it */ | ||