blob: d359bd25a51cae5992925d3c04074abac6c7dd48 [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
11#ifdef CONFIG_PCMCIA_IOCTL
12extern void __init pcmcia_setup_ioctl(void);
13extern void __exit pcmcia_cleanup_ioctl(void);
Dominik Brodowskidc109492005-06-27 16:28:50 -070014extern void handle_event(struct pcmcia_socket *s, event_t event);
15extern int handle_request(struct pcmcia_socket *s, event_t event);
Dominik Brodowskie7a480d2005-06-27 16:28:47 -070016#else
17static inline void __init pcmcia_setup_ioctl(void) { return; }
18static inline void __init pcmcia_cleanup_ioctl(void) { return; }
Dominik Brodowskidc109492005-06-27 16:28:50 -070019static inline void handle_event(struct pcmcia_socket *s, event_t event) { return; }
20static inline int handle_request(struct pcmcia_socket *s, event_t event) { return CS_SUCCESS; }
Dominik Brodowskie7a480d2005-06-27 16:28:47 -070021#endif