Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Industrial I/O in kernel access map interface. |
| 3 | * |
| 4 | * Copyright (c) 2011 Jonathan Cameron |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License version 2 as published by |
| 8 | * the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #ifndef _IIO_INKERN_H_ |
| 12 | #define _IIO_INKERN_H_ |
| 13 | |
| 14 | struct iio_map; |
| 15 | |
| 16 | /** |
| 17 | * iio_map_array_register() - tell the core about inkernel consumers |
| 18 | * @indio_dev: provider device |
| 19 | * @map: array of mappings specifying association of channel with client |
| 20 | */ |
| 21 | int iio_map_array_register(struct iio_dev *indio_dev, |
| 22 | struct iio_map *map); |
| 23 | |
| 24 | /** |
Guenter Roeck | 6cb2afd | 2013-01-31 21:43:00 +0000 | [diff] [blame] | 25 | * iio_map_array_unregister() - tell the core to remove consumer mappings for |
| 26 | * the given provider device |
Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 27 | * @indio_dev: provider device |
Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 28 | */ |
Guenter Roeck | 6cb2afd | 2013-01-31 21:43:00 +0000 | [diff] [blame] | 29 | int iio_map_array_unregister(struct iio_dev *indio_dev); |
Jonathan Cameron | e27d75d | 2012-02-15 19:48:01 +0000 | [diff] [blame] | 30 | |
| 31 | #endif |