diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-17 12:31:34 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-02-17 11:48:22 -0500 |
commit | 94a819f80297e1f635a7cde4ed5317612e512ba7 (patch) | |
tree | 9bbb1eab3a0f0c722fe40295fb512d99cc0190d9 /Documentation | |
parent | 3d068261854b00c930df4516cd617900935e7706 (diff) |
pcmcia: assert locking to struct pcmcia_device
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/pcmcia/locking.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/pcmcia/locking.txt b/Documentation/pcmcia/locking.txt index 5f25de4cdb42..d6251056128f 100644 --- a/Documentation/pcmcia/locking.txt +++ b/Documentation/pcmcia/locking.txt | |||
@@ -90,3 +90,28 @@ or single-use fields not mentioned): | |||
90 | struct list_head devices_list; | 90 | struct list_head devices_list; |
91 | u8 device_count; | 91 | u8 device_count; |
92 | struct pcmcia_state; | 92 | struct pcmcia_state; |
93 | |||
94 | |||
95 | 3. Per PCMCIA-device Data: | ||
96 | -------------------------- | ||
97 | |||
98 | The "main" struct pcmcia_devie is protected as follows (read-only fields | ||
99 | or single-use fields not mentioned): | ||
100 | |||
101 | |||
102 | - by pcmcia_socket->ops_mutex: | ||
103 | struct list_head socket_device_list; | ||
104 | struct config_t *function_config; | ||
105 | u16 _irq:1; | ||
106 | u16 _io:1; | ||
107 | u16 _win:4; | ||
108 | u16 _locked:1; | ||
109 | u16 allow_func_id_match:1; | ||
110 | u16 suspended:1; | ||
111 | u16 _removed:1; | ||
112 | |||
113 | - by the PCMCIA driver: | ||
114 | io_req_t io; | ||
115 | irq_req_t irq; | ||
116 | config_req_t conf; | ||
117 | window_handle_t win; | ||