-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dominik Brodowski
authored and
Linus Torvalds
committed
Jun 28, 2005
1 parent
e8482c2
commit da028f0
Showing
5 changed files
with
119 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: b5e43913cfe95a18ad8929585a0bb58e46cf3390 | ||
refs/heads/master: dc109497bd5799770fedfc6503119808497b3677 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,21 @@ | ||
/* ds_internal.h - internal header for 16-bit PCMCIA devices management */ | ||
|
||
struct user_info_t; | ||
|
||
/* Socket state information */ | ||
struct pcmcia_bus_socket { | ||
struct kref refcount; | ||
struct pcmcia_socket *parent; | ||
|
||
/* the PCMCIA devices connected to this socket (normally one, more | ||
* for multifunction devices: */ | ||
struct list_head devices_list; | ||
u8 device_count; /* the number of devices, used | ||
* only internally and subject | ||
* to incorrectness and change */ | ||
|
||
struct { | ||
u8 present:1, | ||
busy:1, | ||
dead:1, | ||
device_add_pending:1, | ||
reserved:4; | ||
} pcmcia_state; | ||
|
||
struct work_struct device_add; | ||
|
||
|
||
#ifdef CONFIG_PCMCIA_IOCTL | ||
struct user_info_t *user; | ||
wait_queue_head_t queue; | ||
#endif | ||
}; | ||
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); | ||
|
||
struct pcmcia_bus_socket *pcmcia_get_bus_socket(struct pcmcia_bus_socket *s); | ||
void pcmcia_put_bus_socket(struct pcmcia_bus_socket *s); | ||
|
||
struct pcmcia_device * pcmcia_device_add(struct pcmcia_bus_socket *s, unsigned int function); | ||
struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int function); | ||
|
||
#ifdef CONFIG_PCMCIA_IOCTL | ||
extern void __init pcmcia_setup_ioctl(void); | ||
extern void __exit pcmcia_cleanup_ioctl(void); | ||
extern void handle_event(struct pcmcia_bus_socket *s, event_t event); | ||
extern int handle_request(struct pcmcia_bus_socket *s, event_t event); | ||
extern void handle_event(struct pcmcia_socket *s, event_t event); | ||
extern int handle_request(struct pcmcia_socket *s, event_t event); | ||
#else | ||
static inline void __init pcmcia_setup_ioctl(void) { return; } | ||
static inline void __init pcmcia_cleanup_ioctl(void) { return; } | ||
static inline void handle_event(struct pcmcia_bus_socket *s, event_t event) { return; } | ||
static inline int handle_request(struct pcmcia_bus_socket *s, event_t event) { return CS_SUCCESS; } | ||
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; } | ||
#endif |
Oops, something went wrong.