• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CPAS_H__
20 #define __UAPI_CAM_CPAS_H__
21 #include <media/cam_defs.h>
22 #define CAM_FAMILY_CAMERA_SS 1
23 #define CAM_FAMILY_CPAS_SS 2
24 #define CAM_AXI_BW_VOTING_V2 2
25 #define CAM_AXI_TRANSACTION_READ 0
26 #define CAM_AXI_TRANSACTION_WRITE 1
27 #define CAM_AXI_PATH_DATA_IFE_START_OFFSET 0
28 #define CAM_AXI_PATH_DATA_IFE_LINEAR (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 0)
29 #define CAM_AXI_PATH_DATA_IFE_VID (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 1)
30 #define CAM_AXI_PATH_DATA_IFE_DISP (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 2)
31 #define CAM_AXI_PATH_DATA_IFE_STATS (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 3)
32 #define CAM_AXI_PATH_DATA_IFE_RDI0 (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 4)
33 #define CAM_AXI_PATH_DATA_IFE_RDI1 (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 5)
34 #define CAM_AXI_PATH_DATA_IFE_RDI2 (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 6)
35 #define CAM_AXI_PATH_DATA_IFE_RDI3 (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 7)
36 #define CAM_AXI_PATH_DATA_IFE_PDAF (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 8)
37 #define CAM_AXI_PATH_DATA_IFE_PIXEL_RAW (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 9)
38 #define CAM_AXI_PATH_DATA_IFE_MAX_OFFSET (CAM_AXI_PATH_DATA_IFE_START_OFFSET + 31)
39 #define CAM_AXI_PATH_DATA_IPE_START_OFFSET 32
40 #define CAM_AXI_PATH_DATA_IPE_RD_IN (CAM_AXI_PATH_DATA_IPE_START_OFFSET + 0)
41 #define CAM_AXI_PATH_DATA_IPE_RD_REF (CAM_AXI_PATH_DATA_IPE_START_OFFSET + 1)
42 #define CAM_AXI_PATH_DATA_IPE_WR_VID (CAM_AXI_PATH_DATA_IPE_START_OFFSET + 2)
43 #define CAM_AXI_PATH_DATA_IPE_WR_DISP (CAM_AXI_PATH_DATA_IPE_START_OFFSET + 3)
44 #define CAM_AXI_PATH_DATA_IPE_WR_REF (CAM_AXI_PATH_DATA_IPE_START_OFFSET + 4)
45 #define CAM_AXI_PATH_DATA_IPE_MAX_OFFSET (CAM_AXI_PATH_DATA_IPE_START_OFFSET + 31)
46 #define CAM_AXI_PATH_DATA_ALL 256
47 struct cam_cpas_query_cap {
48   uint32_t camera_family;
49   uint32_t reserved;
50   struct cam_hw_version camera_version;
51   struct cam_hw_version cpas_version;
52 };
53 struct cam_axi_per_path_bw_vote {
54   uint32_t usage_data;
55   uint32_t transac_type;
56   uint32_t path_data_type;
57   uint32_t reserved;
58   uint64_t camnoc_bw;
59   uint64_t mnoc_ab_bw;
60   uint64_t mnoc_ib_bw;
61   uint64_t ddr_ab_bw;
62   uint64_t ddr_ib_bw;
63 };
64 #endif
65