diff options
| author | Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> | 2010-02-24 17:19:05 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:58:06 -0400 |
| commit | fda1021477b390506ebed0225eaa6d31a903e2b7 (patch) | |
| tree | ad76ba0cf4346ba917a6020aaa10852f15b8f467 /include/linux | |
| parent | 6cd84b78edc6f35b01603f85d8769cbb6c568306 (diff) | |
V4L/DVB: V4L: Events: Add new ioctls for events
This patch adds a set of new ioctls to the V4L2 API. The ioctls conform to
V4L2 Events RFC version 2.3:
<URL:http://www.spinics.net/lists/linux-media/msg12033.html>
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/videodev2.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index e878056952c7..0f627c5b986b 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
| @@ -1637,6 +1637,29 @@ struct v4l2_streamparm { | |||
| 1637 | }; | 1637 | }; |
| 1638 | 1638 | ||
| 1639 | /* | 1639 | /* |
| 1640 | * E V E N T S | ||
| 1641 | */ | ||
| 1642 | |||
| 1643 | struct v4l2_event { | ||
| 1644 | __u32 type; | ||
| 1645 | union { | ||
| 1646 | __u8 data[64]; | ||
| 1647 | } u; | ||
| 1648 | __u32 pending; | ||
| 1649 | __u32 sequence; | ||
| 1650 | struct timespec timestamp; | ||
| 1651 | __u32 reserved[9]; | ||
| 1652 | }; | ||
| 1653 | |||
| 1654 | struct v4l2_event_subscription { | ||
| 1655 | __u32 type; | ||
| 1656 | __u32 reserved[7]; | ||
| 1657 | }; | ||
| 1658 | |||
| 1659 | #define V4L2_EVENT_ALL 0 | ||
| 1660 | #define V4L2_EVENT_PRIVATE_START 0x08000000 | ||
| 1661 | |||
| 1662 | /* | ||
| 1640 | * A D V A N C E D D E B U G G I N G | 1663 | * A D V A N C E D D E B U G G I N G |
| 1641 | * | 1664 | * |
| 1642 | * NOTE: EXPERIMENTAL API, NEVER RELY ON THIS IN APPLICATIONS! | 1665 | * NOTE: EXPERIMENTAL API, NEVER RELY ON THIS IN APPLICATIONS! |
| @@ -1758,6 +1781,9 @@ struct v4l2_dbg_chip_ident { | |||
| 1758 | #define VIDIOC_QUERY_DV_PRESET _IOR('V', 86, struct v4l2_dv_preset) | 1781 | #define VIDIOC_QUERY_DV_PRESET _IOR('V', 86, struct v4l2_dv_preset) |
| 1759 | #define VIDIOC_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings) | 1782 | #define VIDIOC_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings) |
| 1760 | #define VIDIOC_G_DV_TIMINGS _IOWR('V', 88, struct v4l2_dv_timings) | 1783 | #define VIDIOC_G_DV_TIMINGS _IOWR('V', 88, struct v4l2_dv_timings) |
| 1784 | #define VIDIOC_DQEVENT _IOR('V', 89, struct v4l2_event) | ||
| 1785 | #define VIDIOC_SUBSCRIBE_EVENT _IOW('V', 90, struct v4l2_event_subscription) | ||
| 1786 | #define VIDIOC_UNSUBSCRIBE_EVENT _IOW('V', 91, struct v4l2_event_subscription) | ||
| 1761 | 1787 | ||
| 1762 | /* Reminder: when adding new ioctls please add support for them to | 1788 | /* Reminder: when adding new ioctls please add support for them to |
| 1763 | drivers/media/video/v4l2-compat-ioctl32.c as well! */ | 1789 | drivers/media/video/v4l2-compat-ioctl32.c as well! */ |
