This adds a header file for use by userspace programs wanting to interact with the i.MX media driver. It defines custom events and v4l2 controls for the i.MX v4l2 subdevices.
Unified · Split
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2014-2017 Mentor Graphics Inc. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by the | ||
| 6 | * Free Software Foundation; either version 2 of the | ||
| 7 | * License, or (at your option) any later version | ||
| 8 | */ | ||
| 9 | |||
| 10 | #ifndef __LINUX_IMX_MEDIA_H__ | ||
| 11 | #define __LINUX_IMX_MEDIA_H__ | ||
| 12 | |||
| 13 | /* | ||
| 14 | * events from the subdevs | ||
| 15 | */ | ||
| 16 | #define V4L2_EVENT_IMX_CLASS V4L2_EVENT_PRIVATE_START | ||
| 17 | #define V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR (V4L2_EVENT_IMX_CLASS + 1) | ||
| 18 | |||
| 19 | enum imx_ctrl_id { | ||
| 20 | V4L2_CID_IMX_FIM_ENABLE = (V4L2_CID_USER_IMX_BASE + 0), | ||
| 21 | V4L2_CID_IMX_FIM_NUM, | ||
| 22 | V4L2_CID_IMX_FIM_TOLERANCE_MIN, | ||
| 23 | V4L2_CID_IMX_FIM_TOLERANCE_MAX, | ||
| 24 | V4L2_CID_IMX_FIM_NUM_SKIP, | ||
| 25 | V4L2_CID_IMX_FIM_ICAP_EDGE, | ||
| 26 | V4L2_CID_IMX_FIM_ICAP_CHANNEL, | ||
| 27 | }; | ||
| 28 | |||
| 29 | #endif | ||