aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/cs_internal.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-25 17:32:37 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-25 17:38:09 -0400
commitb60a5ede1e3a6a09a881c3ff014164fbe4d481b4 (patch)
treeb29e5890aa39ab7bc25ec2d6f1b5a0948c948ae5 /drivers/pcmcia/cs_internal.h
parentdc953e550bf1624a17465b9deb15487fdde98869 (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/cs_internal.h')
-rw-r--r--drivers/pcmcia/cs_internal.h40
1 files changed, 40 insertions, 0 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 */
184extern struct bus_type pcmcia_bus_type;
185
186/* pcmcia_resource.c */
187extern int pcmcia_release_configuration(struct pcmcia_device *p_dev);
188
189#ifdef CONFIG_PCMCIA_IOCTL
190/* ds.c */
191extern spinlock_t pcmcia_dev_list_lock;
192
193extern struct pcmcia_device *pcmcia_get_dev(struct pcmcia_device *p_dev);
194extern void pcmcia_put_dev(struct pcmcia_device *p_dev);
195
196struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s,
197 unsigned int function);
198
199/* pcmcia_ioctl.c */
200extern void __init pcmcia_setup_ioctl(void);
201extern void __exit pcmcia_cleanup_ioctl(void);
202extern void handle_event(struct pcmcia_socket *s, event_t event);
203extern int handle_request(struct pcmcia_socket *s, event_t event);
204
205#else /* CONFIG_PCMCIA_IOCTL */
206
207static inline void __init pcmcia_setup_ioctl(void) { return; }
208static inline void __exit pcmcia_cleanup_ioctl(void) { return; }
209static inline void handle_event(struct pcmcia_socket *s, event_t event)
210{
211 return;
212}
213static 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 */