1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __UAPI_CAM_LRME_H__
20 #define __UAPI_CAM_LRME_H__
21 #include "cam_defs.h"
22 enum CAM_LRME_IO_TYPE {
23   CAM_LRME_IO_TYPE_TAR,
24   CAM_LRME_IO_TYPE_REF,
25   CAM_LRME_IO_TYPE_RES,
26   CAM_LRME_IO_TYPE_DS2,
27 };
28 #define CAM_LRME_INPUT_PORT_TYPE_TAR (1 << 0)
29 #define CAM_LRME_INPUT_PORT_TYPE_REF (1 << 1)
30 #define CAM_LRME_OUTPUT_PORT_TYPE_DS2 (1 << 0)
31 #define CAM_LRME_OUTPUT_PORT_TYPE_RES (1 << 1)
32 #define CAM_LRME_DEV_MAX 1
33 struct cam_lrme_hw_version {
34   uint32_t gen;
35   uint32_t rev;
36   uint32_t step;
37 };
38 struct cam_lrme_dev_cap {
39   struct cam_lrme_hw_version clc_hw_version;
40   struct cam_lrme_hw_version bus_rd_hw_version;
41   struct cam_lrme_hw_version bus_wr_hw_version;
42   struct cam_lrme_hw_version top_hw_version;
43   struct cam_lrme_hw_version top_titan_version;
44 };
45 struct cam_lrme_query_cap_cmd {
46   struct cam_iommu_handle device_iommu;
47   struct cam_iommu_handle cdm_iommu;
48   uint32_t num_devices;
49   struct cam_lrme_dev_cap dev_caps[CAM_LRME_DEV_MAX];
50 };
51 struct cam_lrme_soc_info {
52   uint64_t clock_rate;
53   uint64_t bandwidth;
54   uint64_t reserved[4];
55 };
56 struct cam_lrme_acquire_args {
57   struct cam_lrme_soc_info lrme_soc_info;
58 };
59 #endif
60 
61