2005-06-28 01:28:47 +02:00
|
|
|
/* ds_internal.h - internal header for 16-bit PCMCIA devices management */
|
|
|
|
|
|
|
|
extern spinlock_t pcmcia_dev_list_lock;
|
|
|
|
extern struct bus_type pcmcia_bus_type;
|
|
|
|
|
|
|
|
extern struct pcmcia_device * pcmcia_get_dev(struct pcmcia_device *p_dev);
|
|
|
|
extern void pcmcia_put_dev(struct pcmcia_device *p_dev);
|
|
|
|
|
2005-06-28 01:28:50 +02:00
|
|
|
struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int function);
|
2005-06-28 01:28:47 +02:00
|
|
|
|
2006-01-15 11:18:12 +01:00
|
|
|
extern int pcmcia_release_configuration(struct pcmcia_device *p_dev);
|
|
|
|
|
2005-06-28 01:28:47 +02:00
|
|
|
#ifdef CONFIG_PCMCIA_IOCTL
|
|
|
|
extern void __init pcmcia_setup_ioctl(void);
|
|
|
|
extern void __exit pcmcia_cleanup_ioctl(void);
|
2005-06-28 01:28:50 +02:00
|
|
|
extern void handle_event(struct pcmcia_socket *s, event_t event);
|
|
|
|
extern int handle_request(struct pcmcia_socket *s, event_t event);
|
2005-06-28 01:28:47 +02:00
|
|
|
#else
|
|
|
|
static inline void __init pcmcia_setup_ioctl(void) { return; }
|
2006-01-15 01:14:31 +01:00
|
|
|
static inline void __exit pcmcia_cleanup_ioctl(void) { return; }
|
2005-06-28 01:28:50 +02:00
|
|
|
static inline void handle_event(struct pcmcia_socket *s, event_t event) { return; }
|
|
|
|
static inline int handle_request(struct pcmcia_socket *s, event_t event) { return CS_SUCCESS; }
|
2005-06-28 01:28:47 +02:00
|
|
|
#endif
|