msm: camera: uapi: Support for UAPI_HEADER_TEST config
Aligns the uapi header types and includes to be in-line with upstream kernel formatting. The errors are given by enabling the UAPI_HEADER_TEST config, which is now enabled in GKI builds. CRs-Fixed: 2679250 Change-Id: I195fb2aab9251043fc63d79dd31f2db53b1228f5 Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
||||
/*
|
||||
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __UAPI_OPE_H__
|
||||
#define __UAPI_OPE_H__
|
||||
|
||||
#include "cam_defs.h"
|
||||
#include "cam_cpas.h"
|
||||
#include <camera/media/cam_defs.h>
|
||||
#include <camera/media/cam_cpas.h>
|
||||
|
||||
#define OPE_DEV_NAME_SIZE 128
|
||||
|
||||
@@ -88,12 +88,12 @@
|
||||
*
|
||||
*/
|
||||
struct ope_stripe_info {
|
||||
uint32_t offset;
|
||||
uint32_t x_init;
|
||||
uint32_t stripe_location;
|
||||
uint32_t width;
|
||||
uint32_t disable_bus;
|
||||
uint32_t reserved;
|
||||
__u32 offset;
|
||||
__u32 x_init;
|
||||
__u32 stripe_location;
|
||||
__u32 width;
|
||||
__u32 disable_bus;
|
||||
__u32 reserved;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -115,18 +115,18 @@ struct ope_stripe_info {
|
||||
*
|
||||
*/
|
||||
struct ope_io_buf_info {
|
||||
uint32_t direction;
|
||||
uint32_t resource_type;
|
||||
uint32_t num_planes;
|
||||
uint32_t reserved;
|
||||
uint32_t num_stripes[OPE_MAX_PLANES];
|
||||
uint32_t mem_handle[OPE_MAX_PLANES];
|
||||
uint32_t plane_offset[OPE_MAX_PLANES];
|
||||
uint32_t length[OPE_MAX_PLANES];
|
||||
uint32_t plane_stride[OPE_MAX_PLANES];
|
||||
uint32_t height[OPE_MAX_PLANES];
|
||||
uint32_t format;
|
||||
uint32_t fence;
|
||||
__u32 direction;
|
||||
__u32 resource_type;
|
||||
__u32 num_planes;
|
||||
__u32 reserved;
|
||||
__u32 num_stripes[OPE_MAX_PLANES];
|
||||
__u32 mem_handle[OPE_MAX_PLANES];
|
||||
__u32 plane_offset[OPE_MAX_PLANES];
|
||||
__u32 length[OPE_MAX_PLANES];
|
||||
__u32 plane_stride[OPE_MAX_PLANES];
|
||||
__u32 height[OPE_MAX_PLANES];
|
||||
__u32 format;
|
||||
__u32 fence;
|
||||
struct ope_stripe_info stripe_info[OPE_MAX_PLANES][OPE_MAX_STRIPES];
|
||||
};
|
||||
|
||||
@@ -139,8 +139,8 @@ struct ope_io_buf_info {
|
||||
*
|
||||
*/
|
||||
struct ope_frame_set {
|
||||
uint32_t num_io_bufs;
|
||||
uint32_t reserved;
|
||||
__u32 num_io_bufs;
|
||||
__u32 reserved;
|
||||
struct ope_io_buf_info io_buf[OPE_MAX_IO_BUFS];
|
||||
};
|
||||
|
||||
@@ -161,17 +161,17 @@ struct ope_frame_set {
|
||||
*/
|
||||
|
||||
struct ope_cmd_buf_info {
|
||||
uint32_t mem_handle;
|
||||
uint32_t offset;
|
||||
uint32_t size;
|
||||
uint32_t length;
|
||||
uint32_t cmd_buf_scope;
|
||||
uint32_t type;
|
||||
uint32_t cmd_buf_usage;
|
||||
uint32_t cmd_buf_buffered;
|
||||
uint32_t stripe_idx;
|
||||
uint32_t cmd_buf_pass_idx;
|
||||
uint32_t prefetch_disable;
|
||||
__u32 mem_handle;
|
||||
__u32 offset;
|
||||
__u32 size;
|
||||
__u32 length;
|
||||
__u32 cmd_buf_scope;
|
||||
__u32 type;
|
||||
__u32 cmd_buf_usage;
|
||||
__u32 cmd_buf_buffered;
|
||||
__u32 stripe_idx;
|
||||
__u32 cmd_buf_pass_idx;
|
||||
__u32 prefetch_disable;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -184,8 +184,8 @@ struct ope_cmd_buf_info {
|
||||
*
|
||||
*/
|
||||
struct ope_frame_process {
|
||||
uint32_t num_cmd_bufs[OPE_MAX_BATCH_SIZE];
|
||||
uint32_t batch_size;
|
||||
__u32 num_cmd_bufs[OPE_MAX_BATCH_SIZE];
|
||||
__u32 batch_size;
|
||||
struct ope_cmd_buf_info cmd_buf[OPE_MAX_BATCH_SIZE][OPE_MAX_CMD_BUFS];
|
||||
struct ope_frame_set frame_set[OPE_MAX_BATCH_SIZE];
|
||||
};
|
||||
@@ -201,11 +201,11 @@ struct ope_frame_process {
|
||||
*
|
||||
*/
|
||||
struct ope_clk_bw_request_v2 {
|
||||
uint64_t budget_ns;
|
||||
uint32_t frame_cycles;
|
||||
uint32_t rt_flag;
|
||||
uint32_t reserved;
|
||||
uint32_t num_paths;
|
||||
__u64 budget_ns;
|
||||
__u32 frame_cycles;
|
||||
__u32 rt_flag;
|
||||
__u32 reserved;
|
||||
__u32 num_paths;
|
||||
struct cam_axi_per_path_bw_vote axi_path[1];
|
||||
};
|
||||
|
||||
@@ -221,8 +221,8 @@ struct ope_clk_bw_request_v2 {
|
||||
*
|
||||
*/
|
||||
struct ope_hw_ver {
|
||||
uint32_t hw_type;
|
||||
uint32_t reserved;
|
||||
__u32 hw_type;
|
||||
__u32 reserved;
|
||||
struct cam_hw_version hw_ver;
|
||||
};
|
||||
|
||||
@@ -238,8 +238,8 @@ struct ope_hw_ver {
|
||||
struct ope_query_cap_cmd {
|
||||
struct cam_iommu_handle dev_iommu_handle;
|
||||
struct cam_iommu_handle cdm_iommu_handle;
|
||||
uint32_t num_ope;
|
||||
uint32_t reserved;
|
||||
__u32 num_ope;
|
||||
__u32 reserved;
|
||||
struct ope_hw_ver hw_ver[OPE_DEV_TYPE_MAX];
|
||||
};
|
||||
|
||||
@@ -259,16 +259,16 @@ struct ope_query_cap_cmd {
|
||||
*
|
||||
*/
|
||||
struct ope_out_res_info {
|
||||
uint32_t res_id;
|
||||
uint32_t format;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint32_t alignment;
|
||||
uint32_t packer_format;
|
||||
uint32_t subsample_period;
|
||||
uint32_t subsample_pattern;
|
||||
uint32_t pixel_pattern;
|
||||
uint32_t reserved;
|
||||
__u32 res_id;
|
||||
__u32 format;
|
||||
__u32 width;
|
||||
__u32 height;
|
||||
__u32 alignment;
|
||||
__u32 packer_format;
|
||||
__u32 subsample_period;
|
||||
__u32 subsample_pattern;
|
||||
__u32 pixel_pattern;
|
||||
__u32 reserved;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -287,16 +287,16 @@ struct ope_out_res_info {
|
||||
*
|
||||
*/
|
||||
struct ope_in_res_info {
|
||||
uint32_t res_id;
|
||||
uint32_t format;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint32_t pixel_pattern;
|
||||
uint32_t alignment;
|
||||
uint32_t unpacker_format;
|
||||
uint32_t max_stripe_size;
|
||||
uint32_t fps;
|
||||
uint32_t reserved;
|
||||
__u32 res_id;
|
||||
__u32 format;
|
||||
__u32 width;
|
||||
__u32 height;
|
||||
__u32 pixel_pattern;
|
||||
__u32 alignment;
|
||||
__u32 unpacker_format;
|
||||
__u32 max_stripe_size;
|
||||
__u32 fps;
|
||||
__u32 reserved;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -317,17 +317,17 @@ struct ope_in_res_info {
|
||||
*
|
||||
*/
|
||||
struct ope_acquire_dev_info {
|
||||
uint32_t hw_type;
|
||||
uint32_t dev_type;
|
||||
char dev_name[OPE_DEV_NAME_SIZE];
|
||||
uint32_t nrt_stripes_for_arb;
|
||||
uint32_t secure_mode;
|
||||
uint32_t batch_size;
|
||||
uint32_t num_in_res;
|
||||
struct ope_in_res_info in_res[OPE_IN_RES_MAX];
|
||||
uint32_t num_out_res;
|
||||
uint32_t reserved;
|
||||
struct ope_out_res_info out_res[OPE_OUT_RES_MAX];
|
||||
__u32 hw_type;
|
||||
__u32 dev_type;
|
||||
char dev_name[OPE_DEV_NAME_SIZE];
|
||||
__u32 nrt_stripes_for_arb;
|
||||
__u32 secure_mode;
|
||||
__u32 batch_size;
|
||||
__u32 num_in_res;
|
||||
struct ope_in_res_info in_res[OPE_IN_RES_MAX];
|
||||
__u32 num_out_res;
|
||||
__u32 reserved;
|
||||
struct ope_out_res_info out_res[OPE_OUT_RES_MAX];
|
||||
} __attribute__((__packed__));
|
||||
|
||||
#endif /* __UAPI_OPE_H__ */
|
||||
|
Reference in New Issue
Block a user