Dominik Brodowski | e7a480d | 2005-06-27 16:28:47 -0700 | [diff] [blame] | 1 | /* ds_internal.h - internal header for 16-bit PCMCIA devices management */ |
| 2 | |
Dominik Brodowski | e7a480d | 2005-06-27 16:28:47 -0700 | [diff] [blame] | 3 | extern spinlock_t pcmcia_dev_list_lock; |
Dominik Brodowski | e7a480d | 2005-06-27 16:28:47 -0700 | [diff] [blame] | 4 | extern struct bus_type pcmcia_bus_type; |
| 5 | |
Dominik Brodowski | e7a480d | 2005-06-27 16:28:47 -0700 | [diff] [blame] | 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 | |
Dominik Brodowski | dc10949 | 2005-06-27 16:28:50 -0700 | [diff] [blame] | 9 | struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int function); |
Dominik Brodowski | e7a480d | 2005-06-27 16:28:47 -0700 | [diff] [blame] | 10 | |
| 11 | #ifdef CONFIG_PCMCIA_IOCTL |
| 12 | extern void __init pcmcia_setup_ioctl(void); |
| 13 | extern void __exit pcmcia_cleanup_ioctl(void); |
Dominik Brodowski | dc10949 | 2005-06-27 16:28:50 -0700 | [diff] [blame] | 14 | extern void handle_event(struct pcmcia_socket *s, event_t event); |
| 15 | extern int handle_request(struct pcmcia_socket *s, event_t event); |
Dominik Brodowski | e7a480d | 2005-06-27 16:28:47 -0700 | [diff] [blame] | 16 | #else |
| 17 | static inline void __init pcmcia_setup_ioctl(void) { return; } |
| 18 | static inline void __init pcmcia_cleanup_ioctl(void) { return; } |
Dominik Brodowski | dc10949 | 2005-06-27 16:28:50 -0700 | [diff] [blame] | 19 | static inline void handle_event(struct pcmcia_socket *s, event_t event) { return; } |
| 20 | static inline int handle_request(struct pcmcia_socket *s, event_t event) { return CS_SUCCESS; } |
Dominik Brodowski | e7a480d | 2005-06-27 16:28:47 -0700 | [diff] [blame] | 21 | #endif |