1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef __UAPI_CAM_LRME_H__
8 #define __UAPI_CAM_LRME_H__
9 #include <media/cam_defs.h>
10 enum CAM_LRME_IO_TYPE {
11   CAM_LRME_IO_TYPE_TAR,
12   CAM_LRME_IO_TYPE_REF,
13   CAM_LRME_IO_TYPE_RES,
14   CAM_LRME_IO_TYPE_DS2,
15 };
16 #define CAM_LRME_INPUT_PORT_TYPE_TAR (1 << 0)
17 #define CAM_LRME_INPUT_PORT_TYPE_REF (1 << 1)
18 #define CAM_LRME_OUTPUT_PORT_TYPE_DS2 (1 << 0)
19 #define CAM_LRME_OUTPUT_PORT_TYPE_RES (1 << 1)
20 #define CAM_LRME_DEV_MAX 1
21 struct cam_lrme_hw_version {
22   uint32_t gen;
23   uint32_t rev;
24   uint32_t step;
25 };
26 struct cam_lrme_dev_cap {
27   struct cam_lrme_hw_version clc_hw_version;
28   struct cam_lrme_hw_version bus_rd_hw_version;
29   struct cam_lrme_hw_version bus_wr_hw_version;
30   struct cam_lrme_hw_version top_hw_version;
31   struct cam_lrme_hw_version top_titan_version;
32 };
33 struct cam_lrme_query_cap_cmd {
34   struct cam_iommu_handle device_iommu;
35   struct cam_iommu_handle cdm_iommu;
36   uint32_t num_devices;
37   struct cam_lrme_dev_cap dev_caps[CAM_LRME_DEV_MAX];
38 };
39 struct cam_lrme_soc_info {
40   uint64_t clock_rate;
41   uint64_t bandwidth;
42   uint64_t reserved[4];
43 };
44 struct cam_lrme_acquire_args {
45   struct cam_lrme_soc_info lrme_soc_info;
46 };
47 #endif
48