driver.h 832 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef _IIO_INKERN_H_
  11. #define _IIO_INKERN_H_
  12. struct iio_map;
  13. /**
  14. * iio_map_array_register() - tell the core about inkernel consumers
  15. * @indio_dev: provider device
  16. * @map: array of mappings specifying association of channel with client
  17. */
  18. int iio_map_array_register(struct iio_dev *indio_dev,
  19. struct iio_map *map);
  20. /**
  21. * iio_map_array_unregister() - tell the core to remove consumer mappings for
  22. * the given provider device
  23. * @indio_dev: provider device
  24. */
  25. int iio_map_array_unregister(struct iio_dev *indio_dev);
  26. #endif