diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-25 17:32:37 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2008-08-25 17:38:09 -0400 |
commit | b60a5ede1e3a6a09a881c3ff014164fbe4d481b4 (patch) | |
tree | b29e5890aa39ab7bc25ec2d6f1b5a0948c948ae5 /drivers/pcmcia | |
parent | dc953e550bf1624a17465b9deb15487fdde98869 (diff) |
pcmcia: merge ds_internal.h into cs_internal.h
Merge ds_internal.c into cs_internal.h.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 40 | ||||
-rw-r--r-- | drivers/pcmcia/ds.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/ds_internal.h | 29 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 1 |
5 files changed, 40 insertions, 32 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index 95297c57cdb1..8e43c4d563d1 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h | |||
@@ -177,4 +177,44 @@ struct resource *pcmcia_find_mem_region(u_long base, | |||
177 | int low, | 177 | int low, |
178 | struct pcmcia_socket *s); | 178 | struct pcmcia_socket *s); |
179 | 179 | ||
180 | /* | ||
181 | * Stuff internal to module "pcmcia". | ||
182 | */ | ||
183 | /* ds.c */ | ||
184 | extern struct bus_type pcmcia_bus_type; | ||
185 | |||
186 | /* pcmcia_resource.c */ | ||
187 | extern int pcmcia_release_configuration(struct pcmcia_device *p_dev); | ||
188 | |||
189 | #ifdef CONFIG_PCMCIA_IOCTL | ||
190 | /* ds.c */ | ||
191 | extern spinlock_t pcmcia_dev_list_lock; | ||
192 | |||
193 | extern struct pcmcia_device *pcmcia_get_dev(struct pcmcia_device *p_dev); | ||
194 | extern void pcmcia_put_dev(struct pcmcia_device *p_dev); | ||
195 | |||
196 | struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s, | ||
197 | unsigned int function); | ||
198 | |||
199 | /* pcmcia_ioctl.c */ | ||
200 | extern void __init pcmcia_setup_ioctl(void); | ||
201 | extern void __exit pcmcia_cleanup_ioctl(void); | ||
202 | extern void handle_event(struct pcmcia_socket *s, event_t event); | ||
203 | extern int handle_request(struct pcmcia_socket *s, event_t event); | ||
204 | |||
205 | #else /* CONFIG_PCMCIA_IOCTL */ | ||
206 | |||
207 | static inline void __init pcmcia_setup_ioctl(void) { return; } | ||
208 | static inline void __exit pcmcia_cleanup_ioctl(void) { return; } | ||
209 | static inline void handle_event(struct pcmcia_socket *s, event_t event) | ||
210 | { | ||
211 | return; | ||
212 | } | ||
213 | static inline int handle_request(struct pcmcia_socket *s, event_t event) | ||
214 | { | ||
215 | return 0; | ||
216 | } | ||
217 | |||
218 | #endif /* CONFIG_PCMCIA_IOCTL */ | ||
219 | |||
180 | #endif /* _LINUX_CS_INTERNAL_H */ | 220 | #endif /* _LINUX_CS_INTERNAL_H */ |
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index e0624a8fb6e3..604249a170c5 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <pcmcia/ss.h> | 32 | #include <pcmcia/ss.h> |
33 | 33 | ||
34 | #include "cs_internal.h" | 34 | #include "cs_internal.h" |
35 | #include "ds_internal.h" | ||
36 | 35 | ||
37 | /*====================================================================*/ | 36 | /*====================================================================*/ |
38 | 37 | ||
diff --git a/drivers/pcmcia/ds_internal.h b/drivers/pcmcia/ds_internal.h deleted file mode 100644 index 14bc55aa1426..000000000000 --- a/drivers/pcmcia/ds_internal.h +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* ds_internal.h - internal header for 16-bit PCMCIA devices management */ | ||
2 | |||
3 | extern spinlock_t pcmcia_dev_list_lock; | ||
4 | extern struct bus_type pcmcia_bus_type; | ||
5 | |||
6 | extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev); | ||
7 | extern void pcmcia_put_dev(struct pcmcia_device *p_dev); | ||
8 | |||
9 | struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int function); | ||
10 | |||
11 | extern int pcmcia_release_configuration(struct pcmcia_device *p_dev); | ||
12 | |||
13 | #ifdef CONFIG_PCMCIA_IOCTL | ||
14 | extern void __init pcmcia_setup_ioctl(void); | ||
15 | extern void __exit pcmcia_cleanup_ioctl(void); | ||
16 | extern void handle_event(struct pcmcia_socket *s, event_t event); | ||
17 | extern int handle_request(struct pcmcia_socket *s, event_t event); | ||
18 | #else | ||
19 | static inline void __init pcmcia_setup_ioctl(void) { return; } | ||
20 | static inline void __exit pcmcia_cleanup_ioctl(void) { return; } | ||
21 | static inline void handle_event(struct pcmcia_socket *s, event_t event) | ||
22 | { | ||
23 | return; | ||
24 | } | ||
25 | static inline int handle_request(struct pcmcia_socket *s, event_t event) | ||
26 | { | ||
27 | return 0; | ||
28 | } | ||
29 | #endif | ||
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index d4c3f9aa3d83..c400872f5d3b 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include <pcmcia/ss.h> | 38 | #include <pcmcia/ss.h> |
39 | 39 | ||
40 | #include "cs_internal.h" | 40 | #include "cs_internal.h" |
41 | #include "ds_internal.h" | ||
42 | 41 | ||
43 | static int major_dev = -1; | 42 | static int major_dev = -1; |
44 | 43 | ||
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index de13c424101c..93a270e15cea 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <pcmcia/ds.h> | 29 | #include <pcmcia/ds.h> |
30 | 30 | ||
31 | #include "cs_internal.h" | 31 | #include "cs_internal.h" |
32 | #include "ds_internal.h" | ||
33 | 32 | ||
34 | 33 | ||
35 | /* Access speed for IO windows */ | 34 | /* Access speed for IO windows */ |