blob: d8e736f605229945913404710c49da95759926e6 [file] [log] [blame]
Jonathan Cameron847ec802009-08-18 18:06:19 +01001/* The industrial I/O core - character device related
2 *
3 * Copyright (c) 2008 Jonathan Cameron
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
8 */
9
10#ifndef _IIO_CHRDEV_H_
11#define _IIO_CHRDEV_H_
Jonathan Cameron847ec802009-08-18 18:06:19 +010012
13/**
Jonathan Cameron847ec802009-08-18 18:06:19 +010014 * struct iio_event_data - The actual event being pushed to userspace
15 * @id: event identifier
Lucas De Marchi25985ed2011-03-30 22:57:33 -030016 * @timestamp: best estimate of time of event occurrence (often from
Jonathan Cameron847ec802009-08-18 18:06:19 +010017 * the interrupt handler)
18 */
19struct iio_event_data {
Jonathan Cameron330c6c52011-09-02 17:14:39 +010020 u64 id;
Jonathan Cameron847ec802009-08-18 18:06:19 +010021 s64 timestamp;
22};
23
Jonathan Cameron8e7d9672011-08-30 12:32:45 +010024#define IIO_GET_EVENT_FD_IOCTL _IOR('i', 0x90, int)
Jonathan Cameron847ec802009-08-18 18:06:19 +010025#endif