diff options
author | Evgeniy Polyakov <johnpol@2ka.mipt.ru> | 2006-03-23 11:11:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-22 14:22:50 -0400 |
commit | 12003375acd879e498c6c511faf27531296f9640 (patch) | |
tree | f69001169d28c6e56e1a12e04420683620e31d79 /drivers/w1/w1_io.c | |
parent | 81f6075ebcf3b0800321b7d81e4845d6ad9566d8 (diff) |
[PATCH] w1: Userspace communication protocol over connector.
There are three types of messages between w1 core and userspace:
1. Events. They are generated each time new master or slave device found
either due to automatic or requested search.
2. Userspace commands. Includes read/write and search/alarm search comamnds.
3. Replies to userspace commands.
From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/w1_io.c')
-rw-r--r-- | drivers/w1/w1_io.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/w1/w1_io.c b/drivers/w1/w1_io.c index f7f7e8bec30e..a6eb9db73591 100644 --- a/drivers/w1/w1_io.c +++ b/drivers/w1/w1_io.c | |||
@@ -26,7 +26,6 @@ | |||
26 | 26 | ||
27 | #include "w1.h" | 27 | #include "w1.h" |
28 | #include "w1_log.h" | 28 | #include "w1_log.h" |
29 | #include "w1_io.h" | ||
30 | 29 | ||
31 | static int w1_delay_parm = 1; | 30 | static int w1_delay_parm = 1; |
32 | module_param_named(delay_coef, w1_delay_parm, int, 0); | 31 | module_param_named(delay_coef, w1_delay_parm, int, 0); |
@@ -268,13 +267,13 @@ u8 w1_calc_crc8(u8 * data, int len) | |||
268 | return crc; | 267 | return crc; |
269 | } | 268 | } |
270 | 269 | ||
271 | void w1_search_devices(struct w1_master *dev, w1_slave_found_callback cb) | 270 | void w1_search_devices(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb) |
272 | { | 271 | { |
273 | dev->attempts++; | 272 | dev->attempts++; |
274 | if (dev->bus_master->search) | 273 | if (dev->bus_master->search) |
275 | dev->bus_master->search(dev->bus_master->data, cb); | 274 | dev->bus_master->search(dev->bus_master->data, search_type, cb); |
276 | else | 275 | else |
277 | w1_search(dev, cb); | 276 | w1_search(dev, search_type, cb); |
278 | } | 277 | } |
279 | 278 | ||
280 | /** | 279 | /** |
@@ -300,13 +299,4 @@ int w1_reset_select_slave(struct w1_slave *sl) | |||
300 | return 0; | 299 | return 0; |
301 | } | 300 | } |
302 | 301 | ||
303 | EXPORT_SYMBOL(w1_touch_bit); | 302 | EXPORT_SYMBOL_GPL(w1_calc_crc8); |
304 | EXPORT_SYMBOL(w1_write_8); | ||
305 | EXPORT_SYMBOL(w1_read_8); | ||
306 | EXPORT_SYMBOL(w1_reset_bus); | ||
307 | EXPORT_SYMBOL(w1_calc_crc8); | ||
308 | EXPORT_SYMBOL(w1_delay); | ||
309 | EXPORT_SYMBOL(w1_read_block); | ||
310 | EXPORT_SYMBOL(w1_write_block); | ||
311 | EXPORT_SYMBOL(w1_search_devices); | ||
312 | EXPORT_SYMBOL(w1_reset_select_slave); | ||