diff options
Diffstat (limited to 'include/linux/videodev2.h')
| -rw-r--r-- | include/linux/videodev2.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 0f627c5b986b..b5121bec1bd9 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
| @@ -1640,9 +1640,21 @@ struct v4l2_streamparm { | |||
| 1640 | * E V E N T S | 1640 | * E V E N T S |
| 1641 | */ | 1641 | */ |
| 1642 | 1642 | ||
| 1643 | #define V4L2_EVENT_ALL 0 | ||
| 1644 | #define V4L2_EVENT_VSYNC 1 | ||
| 1645 | #define V4L2_EVENT_EOS 2 | ||
| 1646 | #define V4L2_EVENT_PRIVATE_START 0x08000000 | ||
| 1647 | |||
| 1648 | /* Payload for V4L2_EVENT_VSYNC */ | ||
| 1649 | struct v4l2_event_vsync { | ||
| 1650 | /* Can be V4L2_FIELD_ANY, _NONE, _TOP or _BOTTOM */ | ||
| 1651 | __u8 field; | ||
| 1652 | } __attribute__ ((packed)); | ||
| 1653 | |||
| 1643 | struct v4l2_event { | 1654 | struct v4l2_event { |
| 1644 | __u32 type; | 1655 | __u32 type; |
| 1645 | union { | 1656 | union { |
| 1657 | struct v4l2_event_vsync vsync; | ||
| 1646 | __u8 data[64]; | 1658 | __u8 data[64]; |
| 1647 | } u; | 1659 | } u; |
| 1648 | __u32 pending; | 1660 | __u32 pending; |
| @@ -1656,9 +1668,6 @@ struct v4l2_event_subscription { | |||
| 1656 | __u32 reserved[7]; | 1668 | __u32 reserved[7]; |
| 1657 | }; | 1669 | }; |
| 1658 | 1670 | ||
| 1659 | #define V4L2_EVENT_ALL 0 | ||
| 1660 | #define V4L2_EVENT_PRIVATE_START 0x08000000 | ||
| 1661 | |||
| 1662 | /* | 1671 | /* |
| 1663 | * A D V A N C E D D E B U G G I N G | 1672 | * A D V A N C E D D E B U G G I N G |
| 1664 | * | 1673 | * |
