Pratap Nirujogi | 6e75991 | 2018-01-17 17:51:17 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | #ifndef __MSM_FD__ |
| 13 | #define __MSM_FD__ |
| 14 | |
| 15 | #include <uapi/media/msm_fd.h> |
| 16 | #include <linux/compat.h> |
| 17 | |
| 18 | #ifdef CONFIG_COMPAT |
| 19 | /* |
| 20 | * struct msm_fd_result32 - Compat structure contain detected faces result. |
| 21 | * @frame_id: Frame id of requested result. |
| 22 | * @face_cnt: Number of result faces, driver can modify this value (to smaller) |
| 23 | * @face_data: Pointer to array of face data structures. |
| 24 | * Array size should not be smaller then face_cnt. |
| 25 | */ |
| 26 | struct msm_fd_result32 { |
| 27 | __u32 frame_id; |
| 28 | __u32 face_cnt; |
| 29 | compat_uptr_t face_data; |
| 30 | }; |
| 31 | |
| 32 | /* MSM FD compat private ioctl ID */ |
| 33 | #define VIDIOC_MSM_FD_GET_RESULT32 \ |
| 34 | _IOWR('V', BASE_VIDIOC_PRIVATE, struct msm_fd_result32) |
| 35 | #endif |
| 36 | |
| 37 | #endif /* __MSM_FD__ */ |