blob: 3a2b25e6ed7325541f4b7659aee51c034467c746 [file] [log] [blame]
Dominik Brodowskie7a480d2005-06-27 16:28:47 -07001/* ds_internal.h - internal header for 16-bit PCMCIA devices management */
2
Dominik Brodowskie7a480d2005-06-27 16:28:47 -07003extern spinlock_t pcmcia_dev_list_lock;
Dominik Brodowskie7a480d2005-06-27 16:28:47 -07004extern struct bus_type pcmcia_bus_type;
5
Dominik Brodowskie7a480d2005-06-27 16:28:47 -07006extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev);
7extern void pcmcia_put_dev(struct pcmcia_device *p_dev);
8
Dominik Brodowskidc109492005-06-27 16:28:50 -07009struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int function);
Dominik Brodowskie7a480d2005-06-27 16:28:47 -070010
Dominik Brodowski4bbed522006-01-15 11:18:12 +010011extern int pcmcia_release_configuration(struct pcmcia_device *p_dev);
12
Dominik Brodowskie7a480d2005-06-27 16:28:47 -070013#ifdef CONFIG_PCMCIA_IOCTL
14extern void __init pcmcia_setup_ioctl(void);
15extern void __exit pcmcia_cleanup_ioctl(void);
Dominik Brodowskidc109492005-06-27 16:28:50 -070016extern void handle_event(struct pcmcia_socket *s, event_t event);
17extern int handle_request(struct pcmcia_socket *s, event_t event);
Dominik Brodowskie7a480d2005-06-27 16:28:47 -070018#else
19static inline void __init pcmcia_setup_ioctl(void) { return; }
Dominik Brodowski0e0fad82006-01-15 01:14:31 +010020static inline void __exit pcmcia_cleanup_ioctl(void) { return; }
Dominik Brodowskidc109492005-06-27 16:28:50 -070021static inline void handle_event(struct pcmcia_socket *s, event_t event) { return; }
22static inline int handle_request(struct pcmcia_socket *s, event_t event) { return CS_SUCCESS; }
Dominik Brodowskie7a480d2005-06-27 16:28:47 -070023#endif